Skip to content
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

5.0.0 regression : missing verification_key field in partial zone setup #4959

Open
3 tasks done
toadjaune opened this issue Jan 29, 2025 · 5 comments
Open
3 tasks done
Labels
kind/bug Categorizes issue or PR as related to a bug. service/zones Categorizes issue or PR as related to the Zones service. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@toadjaune
Copy link

toadjaune commented Jan 29, 2025

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform v1.10.4
on linux_amd64

  • provider registry.terraform.io/cloudflare/cloudflare v5.0.0

Affected resource(s)

  • cloudflare_zone

Terraform configuration files

terraform {
  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "5.0.0"
    }
  }
  backend "local" {
    path = "terraform.tfstate"
  }
}

resource "cloudflare_zone" "example" {
  account = { id = "dummy" }
  name    = "example.com"
  type    = "partial"
}

output "example" {
  value = cloudflare_zone.example.verification_key
}

Link to debug output

https://gist.github.com/toadjaune/04983c9285db58a3dd61afcb109c5c2a

Panic output

No response

Expected output

I expected the verification_key field to exist like in 4.x, so that I can create the corresponding TXT record with my authoritative DNS provider.

Actual output

│ Error: Unsupported attribute

│ on config.tf line 29, in output "example":
│ 29: value = cloudflare_zone.example.verification_key

│ This object has no argument, nested block, or exported attribute named "verification_key".

Steps to reproduce

  1. Copy the sample configuration above
  2. terraform plan

Additional factoids

The documentation is consistent with the fact that this field was lost during version 4->5 upgrade :

References

No response

@toadjaune toadjaune added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 29, 2025
Copy link

github-actions bot commented Jan 29, 2025

Terraform debug log detected ✅

@github-actions github-actions bot added triage/needs-information Indicates an issue needs more information in order to work on it. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 29, 2025
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@toadjaune
Copy link
Author

I doubt this debug log is really gonna be read by anyone considering the nature of the issue, but fine, I'll generate one from a minimal reproducer when I have a moment.

@github-actions github-actions bot added triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels Jan 29, 2025
@jacobbednarz
Copy link
Member

verification_key doesn't currently exist in the schemas so it isn't present in terraform. i've raised a ticket internally to have this triaged.

@jacobbednarz jacobbednarz added service/zones Categorizes issue or PR as related to the Zones service. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. labels Jan 29, 2025
@toadjaune
Copy link
Author

verification_key doesn't currently exist in the schemas so it isn't present in terraform. i've raised a ticket internally to have this triaged.

I suspected something along those lines. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. service/zones Categorizes issue or PR as related to the Zones service. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

2 participants