-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Since #143, existing projects are now having vercel_authentication
added, to line up with the new Vercel defaults for projects. This is sensible, but the attributes available in the provider don't seem to allow for disabling the setting, which we need to do to maintain our existing project's configuration.
No matter how I update things, I am only able to achieve the below outcomes, implying that authentication will always be enabled:
+ vercel_authentication = {
+ protect_production = (true | false)
}
If the field must now be computed, it would be prudent to introduce a way to disable authentication altogether, like the console allows you to do.
The attributes also don't seem to match the potential configuration options available in Vercel, which are more akin to an enum selection, instead of boolean flags (as can be seen on the changelog screenshot). I wonder if an API like below would more closely align with Vercel:
vercel_authentication = {
enabled = bool
protection_type = "standard_protection" | "all_deployments" | "only_preview_deployments"
}