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

Password Dictionary option broken on Connection resource #127

Closed
bishtawi opened this issue Sep 13, 2019 · 2 comments
Closed

Password Dictionary option broken on Connection resource #127

bishtawi opened this issue Sep 13, 2019 · 2 comments
Labels

Comments

@bishtawi
Copy link
Contributor

bishtawi commented Sep 13, 2019

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 v0.12.8

Affected Resource(s)

  • auth0_connection

Terraform Configuration Files

resource "auth0_connection" "database" {
  name                 = "database"
  strategy             = "auth0"
  is_domain_connection = false

  enabled_clients = [
    auth0_client.application.name
  ]

  options {
    brute_force_protection         = true
    disable_signup                 = false
    enabled_database_customization = false
    import_mode                    = false
    requires_username              = false
    password_policy                = "good"
    password_history {
      enable = true
      size   = 5
    }
    password_no_personal_info {
      enable = true
    }
    password_dictionary = {     # <--- This right here is broken
      enable = true
    }
  }
}

Expected Behavior

Auth0 Connection resource is successfully created with the Password Dictionary feature enabled.

Actual Behavior

Crash, password_dictionary.enable is sent to auth0 as a string instead of a bool:

...
          + password_dictionary            = {
              + "enable" = "true"          # <---- This is the downside of using map, the boolean is now a string
            }
        }
    }

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

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

  Enter a value: yes

auth0_connection.database: Creating...

Error: 400 Bad Request: Payload validation error: 'Expected type boolean but found type string' on property options.password_dictionary.enable.

  on auth0.tf line 57, in resource "auth0_connection" "database":
  57: resource "auth0_connection" "database" {

Steps to Reproduce

  1. terraform apply
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity.
Stale issues will be closed after 5 days if no action is taken. If you
think this issue should not be closed, remove the stale label.

@github-actions github-actions bot added the stale label Dec 11, 2019
@alexkappa
Copy link
Owner

Closing as done. Once again, thanks for helping out Stephen!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants