-
Notifications
You must be signed in to change notification settings - Fork 630
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
AUTH-6588 Support Access apps destinations
field
#4661
AUTH-6588 Support Access apps destinations
field
#4661
Conversation
a82ba3c
to
f76e7b3
Compare
return oldValue == newValue | ||
}, | ||
}, | ||
"destinations": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be named destination
(singular instead of plural) instead? It'll be used like this:
destinations {
uri = "example.com"
}
destinations {
uri = "foo.example.com"
}
destinations {
type = "private"
uri = "10.116.0.4"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw the Attributes as Blocks page but it's kind of confusing to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
destinations
makes sense. in v5, this makes a lot more sense as a collection of objects - https://github.com/cloudflare/terraform-provider-cloudflare/blob/next/internal/services/zero_trust_access_application/schema.go#L225-L244
This project handles dependency version bumps (including upstream changes from cloudflare-go) independently of the standard PR process using automation. This allows the dependency upgrades to land without causing merge conflicts in multiple branches and handled in a consistent way. The exception to this is security related dependency upgrades but they should be co-ordinated with the maintainer team privately. Please remove the changes to the |
changelog detected ✅ |
69985d4
to
a1e55e5
Compare
}, | ||
"destinations": { | ||
Type: schema.TypeList, | ||
Optional: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be Computed
as well? It's unclear what that actually does 🧐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it probably shouldn't be computed then, thanks!
go.mod
Outdated
@@ -4,7 +4,7 @@ go 1.23.3 | |||
|
|||
require ( | |||
github.com/agext/levenshtein v1.2.3 // indirect | |||
github.com/cloudflare/cloudflare-go v0.110.0 | |||
github.com/cloudflare/cloudflare-go v0.110.1-0.20241125012349-7c091bc8c0dd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should remove this and just shim it in locally.
internal/consts/provider.go
Outdated
@@ -110,4 +110,10 @@ const ( | |||
|
|||
// Schema description for all ID fields. | |||
IDSchemaDescription = "The identifier of this resource." | |||
|
|||
// Schema key for access app destination. | |||
DestinationsSchemaKey = "destinations" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we only use this in one place -- perhaps it's fine just as a string?
we've got some failing tests but they are also happening on
|
b295366
to
9c23f84
Compare
9c23f84
to
3d90298
Compare
3d90298
to
818bd23
Compare
…or nil) in order for the association to be destroyed. Setting this to false keeps the association in a disabled state instead of destroying the resource. Documentation on this API endpoint can be found here: https://developers.cloudflare.com/api/operations/per-hostname-authenticated-origin-pull-enable-or-disable-a-hostname-for-client-authentication Referencing issue raised on provider: cloudflare#4648
cherry-picked the commit from #4649 so that this compiles |
acceptance tests all passing
|
This functionality has been released in v4.48.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! |
Adds support for the Access app
destinations
field, but still keeps the deprecatedself_hosted_domains
field around for backwards compatibility. Since cloudflare-go now only supports the new field, everything is implemented in terms ofdestinations
under the hood.