-
Notifications
You must be signed in to change notification settings - Fork 139
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
Turnstile with "no" domains generates invalid config #655
Comments
if you didn't need to provide domains, wouldn't you expect not to have them present anywhere? i suspect this is a change that should be made in the provider instead to make |
I'd say the opposite: I need to provide the empty list. 99.9% of users must provide a list of domains as they won't have the entitlement. The 0.1% of users who can not provide it must do it on purpose, not by mistake. I don't think the provider is wrong here - but happy to be convinced otherwise Note for clarity & future reference: I'm on the Turnstile team |
needing to explicitly provide an empty list feels a little wrong (similar to initialising empty blocks like i'm happy to review a PR that updates the mappings to always provide the value (even an empty list) which can later be populated with additional domains if they are present. there are quite a few examples of prior art in the generation if you're keen to take a pass at this. |
When Turnstile is configured with an empty list of domains, no validation is performed by Cloudflare - the widget can be used anywhere. The website owner is responsible for validating the challenge was solved on the "right" website. This feature is gated behind an entitlement, and `domains = []` is used to enable this. This is *not* a default value for domains, it must be picked explicitly. Fixes cloudflare#655.
When Turnstile is configured with an empty list of domains, no validation is performed by Cloudflare - the widget can be used anywhere. The website owner is responsible for validating the challenge was solved on the "right" website. This feature is gated behind an entitlement, and `domains = []` is used to enable this. This is *not* a default value for domains, it must be picked explicitly. Fixes cloudflare#655.
When Turnstile is configured with an empty list of domains, no validation is performed by Cloudflare - the widget can be used anywhere. The website owner is responsible for validating the challenge was solved on the "right" website. This feature is gated behind an entitlement, and `domains = []` is used to enable this. This is *not* a default value for domains, it must be picked explicitly. Fixes cloudflare#655.
I strongly believe the list of domains should always be present in the Terraform configuration, it is a fundamental part of a Turnstile widget, and a During their lifetimes, widgets will more likely switch At creation time, (Now that I think of it, I'm not sure cloudflare-go allows this... oops) I don't know how Terraform would behave if you didn't specify a list of domains - would it try to empty the list of domains, or leave it unchanged. Making it a required guarantees tf will do the right thing: what the code block says! (this concern may very well be made up!) I opened #659 for this. I tried to keep it short & simple |
Fix #655: Always emit Turnstile domains, even when empty
Confirmation
cf-terraforming version
0.16.1
Expected outcome
cf-terraforming generates valid blocks for all possible configurations.
Actual outcome
cf-terraforming generates invalid code blocks :(
The generated block should include
domain = []
, likely because it is the default "Go" value for an array.Steps to reproduce
Note: this requires a paid entitlement.
References
No response
The text was updated successfully, but these errors were encountered: