这是indexloc提供的服务,不要输入任何密码
Skip to content

vercel_authentication can't be disabled or configured correctly #144

@neefrehman

Description

@neefrehman

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions