Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Setting rule_id on an auth0_rule throws a 400 #193

@robertlagrant

Description

@robertlagrant

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform 0.12.24

Auth0 Proovider Version

0.8

Affected Resource(s)

  • auth0_role

Terraform Configuration Files

resource "auth0_role" "custom_role" {
  role_id     = "custom-role"
  name        = "Custom Role"
  description = "An Auth0 Core Auth Role"

  permissions {
    name                       = "read:entity"
    resource_server_identifier = auth0_resource_server.entity_api.identifier
  }
}

Expected Behavior

Rule is created or updated with rule_id as its id.

Actual Behavior

On a create of a new rule, Terraform appears to plan the correct work.

On an update of an existing rule that has a generated ID, Terraform appears to correctly detect that the role_id is what is changing, from the current generated id value in Auth0 to the new value supplied.

However, in either case a 400 validation is thrown from the Auth0 API:

Additional properties not allowed: id

Steps to Reproduce

Introduce a new rule in Terraform, OR modify an existing rule.

  1. terraform apply

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions