Domain/issuer not returned for cloudflare_access_application in OIDC mode #4476
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/debug-log-attached
Indicates an issue or PR has a complete Terraform debug log.
Confirmation
Terraform and Cloudflare provider version
Terraform: 1.9.3
Cloudflare: 4.45.0
Affected resource(s)
cloudflare_access_application
Terraform configuration files
Link to debug output
https://gist.github.com/tomaciazek-covantis/b0dd973a39a1fa82e64b0fc294c0d66f
Panic output
No response
Expected output
domain equal to the issuer URL
Actual output
domain = ""
Steps to reproduce
apply the provided resource
Additional factoids
I can see in the code of the provider that for
app.AuthType == "oidc"
thesaas_app.idp_entity_id
attribute is not read after creation. Perhaps this is the actual attribute that should be used instead ofdomain
to retrieve the issuer. Alas, both arenull
.References
It used to be possible to retrieve the issuer using the
domain
attribute, but now this possibility is gone since#3468
Now if a domain is provided with OIDC application type, Terraform will panic because it produces inconsistent plan (the provided value of the attribute is overwritten after apply).
The text was updated successfully, but these errors were encountered: