Inconsistent/weird behavior of cloudflare_zero_trust_tunnel_cloudflared_config, Authentication Error (10000) #4002
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Confirmation
Terraform and Cloudflare provider version
Terraform v 1.9.4, Terraform v 1.9.5
Cloudflare Provider v 4.41.0
Affected resource(s)
Terraform configuration files
Link to debug output
https://gist.github.com/OctavioCore/821538eb1ccf4914c8ab63cdcfb33765
Panic output
│ Error: error creating / updating tunnel config "": Authentication error (10000)
│
│ with cloudflare_zero_trust_tunnel_cloudflared_config.base_config,
│ on cloudflare.tf line 69, in resource "cloudflare_zero_trust_tunnel_cloudflared_config" "base_config":
│ 69: resource "cloudflare_zero_trust_tunnel_cloudflared_config" "base_config" {
│
╵
Expected output
Config adjusted successfully for the provisioned tunnel.
Actual output
The tunnel is provisioned succesfully, but the tunnel configuration resource apply fails with "Authentication error (10000)" regardless if it's being provisioned from scratch, or updated.
Steps to reproduce
Additional factoids
I've thought that this might be due to errors in Terraform code on my part, so I've imported the config "clicked out" in the UI, then ran a
plan
to figure out discrepancies. Import went fine, the followingplan
has succeeded and shown some discrepancies I've reconciled into the code.After making those code changes, I ran
apply
action - but it failed at plan stage, with the Authentication Error (10000). I have destroyed the entire stack, ranapply
again, and it fails with the Authentication Error (10000) as before.I've checked the token used for authentication; It has all the necessary permissions to edit tunnels. I can also modify the config in the UI, so it's most probably not associated with permissions at all.
References
Perhaps it is linked to #3950 in some way/combines with this issue from the import part onwards?
The text was updated successfully, but these errors were encountered: