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

terraform cloudflare_turnstile_widget Error reading challenge widget when offlabel=true #3093

Closed
2 tasks done
MagonBC opened this issue Jan 31, 2024 · 6 comments
Closed
2 tasks done
Labels
kind/bug Categorizes issue or PR as related to a bug. service/turnstile Categorizes issue or PR as related to Turnstile and the Challenge Platform service. triage/accepted Indicates an issue or PR is ready to be actively worked on. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. workflow/synced
Milestone

Comments

@MagonBC
Copy link

MagonBC commented Jan 31, 2024

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform v1.7.1

Provider cloudflare/cloudflare v4.16.0 and v4.23.0

Affected resource(s)

cloudflare_turnstile_widget

Terraform configuration files

resource "cloudflare_turnstile_widget" "main" {
  account_id = "05frrr5f66s5ss5568fe"
  name       = "Example Widget"
  domains    = "[mydomain.com]"
  mode       = "non-interactive"
  offlabel   = "true"
}

Link to debug output

https://gist.github.com/MagonBC/6b05a7006e792f9a59e0db31bde5da6f

Panic output

No response

Expected output

Terraform will perform the following actions:

cloudflare_turnstile_widget.main will be updated in-place

~ resource "cloudflare_turnstile_widget" "main" {
~ bot_fight_mode = false -> (known after apply)
id = "0xthesite_key"
name = "Example Widget"
~ offlabel = false -> true
~ region = "world" -> (known after apply)
~ secret = (sensitive value)
# (3 unchanged attributes hidden)
}

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

cloudflare_turnstile_widget.main: Modifying... [id=thesite_key]
cloudflare_turnstile_widget.main: Modifications complete after 1s [id=thesite_key]

Actual output


│ Error: Error reading challenge widget

│ with cloudflare_turnstile_widget.main,
│ on main.tf line 1, in resource "cloudflare_turnstile_widget" "main":
│ 1: resource "cloudflare_turnstile_widget" "main" {

│ required site key missing

Steps to reproduce

With Turnstile Widget license free: (https://www.cloudflare.com/products/turnstile/)

  1. set offlabel=true
  2. terraform apply
  3. reset offlabel=false
  4. terraform apply

With Enterprise License:

  1. terraform apply
  2. set offlabel=true
  3. terraform apply

Additional factoids

No response

References

No response

@MagonBC MagonBC 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 31, 2024
Copy link
Contributor

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.

Copy link
Contributor

github-actions bot commented Jan 31, 2024

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 31, 2024
@jacobbednarz jacobbednarz added triage/accepted Indicates an issue or PR is ready to be actively worked on. service/turnstile Categorizes issue or PR as related to Turnstile and the Challenge Platform service. and removed triage/needs-information Indicates an issue needs more information in order to work on it. labels Jan 31, 2024
@github-actions github-actions bot added triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. workflow/synced labels Jan 31, 2024
@ingack99
Copy link

Can you set true instead of "true" in the terraform config?

@snstamml
Copy link

snstamml commented Apr 8, 2024

Can you set true instead of "true" in the terraform config?

It's not related to the "true". I've the same issue, but use booleans without quotes.

vasilevalex pushed a commit to vasilevalex/terraform-provider-cloudflare that referenced this issue May 1, 2024
vasilevalex added a commit to vasilevalex/terraform-provider-cloudflare that referenced this issue May 1, 2024
vasilevalex added a commit to vasilevalex/terraform-provider-cloudflare that referenced this issue May 1, 2024
@JohnyGemityg
Copy link

JohnyGemityg commented May 3, 2024

Hello, have you find any workaround? I am getting the same error no matter what arguments I combine. I am using enterprise version.

EDIT:
deleting state and start over is way to go.

Copy link
Contributor

github-actions bot commented May 8, 2024

This functionality has been released in v4.32.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!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. service/turnstile Categorizes issue or PR as related to Turnstile and the Challenge Platform service. triage/accepted Indicates an issue or PR is ready to be actively worked on. triage/debug-log-attached Indicates an issue or PR has a complete Terraform debug log. workflow/synced
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants