-
Notifications
You must be signed in to change notification settings - Fork 632
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
v5-rc1 - cloudflare_zero_trust_access_application for private destination. OpenApi spec producing a model that's not accepted by the upstream server #4938
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
2 similar comments
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
Thank you for reporting this issue! For maintainers to dig into issues it is required that all issues include the entirety of This issue has been marked with |
Confirmation
Terraform and Cloudflare provider version
Terraform v1.10.4
on darwin_arm64
Affected resource(s)
cloudflare_zero_trust_access_application
Terraform configuration files
Link to debug output
https://gist.github.com/robson83/0a0d2fd86c2d0de4dd9217cfa6c62bae
Panic output
No response
Expected output
Application to be created - following the same behavior that happens when using the frontend.
Actual output
errors": [
{
"code": 12130,
"message": "access.api.error.invalid_request: domain does not belong to zone"
}
]
Steps to reproduce
Additional factoids
Creating the application via dashboard, it works properly. Upon inspecting the json generated by the dashboard and sent to cloudflare API, noticed there is a difference from what the OpenAPI spec is generating via Stainless.
v5-rc1 generates a simple json containing type and uri. Previous versions of that json added other attributes, such as port_range, cidr.
#1 see (current tag):
terraform-provider-cloudflare/internal/services/zero_trust_access_application/model.go
Line 78 in b386b1f
#2 see (next branch):
terraform-provider-cloudflare/internal/services/zero_trust_access_application/model.go
Line 79 in e7965cd
I compiled the plugin locally and changed the models to the #2 format and everything works fine.
Now the question is if it's a bug, or if a simplified version of the api is coming, because of this comment in the current openapi spec.
Public destinations can include a domain and path with wildcards. Private destinations are an early access feature and gated behind a feature flag. Private destinations support private IPv4, IPv6, and Server Name Indications (SNI) with optional port ranges
Nevertheless, it's not working as it should.
References
No response
The text was updated successfully, but these errors were encountered: