-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: cloudflare_tunnel_config support for origin_request in ingress #2072
Comments
It doesn't seem to be documented, but it is supported in the public api. You can see this by using the dashboard and editing a tunnnel's "public hostname" values. Here's an example of what it sends: {
"config": {
"ingress": [
{
"hostname": "<hostname>",
"service": "ssh://localhost:22",
"originRequest": {
"noHappyEyeballs": false
}
},
{
"service": "tcp://localhost:2022",
"hostname": "<hostname>",
"originRequest": {
"noHappyEyeballs": false
}
},
{
"service": "http_status:404"
}
]
}
} It is critical that this be enabled in the provider and a default be provided or else cloudflare doesn't see any "origin configurations" and zero trust can't route to it. I had to manually modify a connection setting (like the no happy eyeballs one) save, and then reset it and save for the tunnel to start working properly. |
Any updates on this? In many cases absence of this feature is a hard blocker. |
This is even more problematic considering the terraform PUT replaces any previously-configured UI setting. Any chance of getting this fixed anytime soon? Hard blocker for me as well. Edit: This seems to be supported by the SDK https://github.com/cloudflare/cloudflared/blob/master/config/configuration.go#L177-L182. |
This functionality has been released in v4.7.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Current Terraform and Cloudflare provider version
latest as of writing this issue (
v3.29.0
).Description
Once Cloudflare API is updated in order to allow configuring origin_requests for the ingresses, then
cloudflare_tunnel_config
module should be also updated in order to support this functionality.Use cases
Once this is available we should be able to apply such configurations via Terraform (eg for
localhost:8002
).Potential Terraform configuration
References
cloudflare_tunnel_config
Feature: cloudflare_tunnel_config resource #1756 added inv.3.29.0
.The text was updated successfully, but these errors were encountered: