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

auth0_connection's password policy set to None when not changed #242

Closed
mbenabda opened this issue Jun 5, 2020 · 1 comment
Closed

auth0_connection's password policy set to None when not changed #242

mbenabda opened this issue Jun 5, 2020 · 1 comment

Comments

@mbenabda
Copy link

mbenabda commented Jun 5, 2020

Description

When not changed, the password policy of auth0_connection is effectively set to None in Auth0
This happens when other fields of the auth0_connection that do change.

This might be due to the provider not sending unchanged fields in the Auth0 API calls, and Auth0 interpreting this absence as a "set to null" statement for the password policy

Terraform Version

Terraform v0.12.25

  • provider.auth0 v0.10.3

Affected Resource(s)

  • auth0_connection

Terraform Configuration Files

resource "auth0_connection" "users" {
  name = "users"
  strategy = "auth0"

  options {
    password_policy = "good"

    password_history {
      enable = true
      size   = 3
    }
}

Expected Behavior

the auth0_connection's password policy unchanged

Actual Behavior

it was set to None

Steps to Reproduce

  1. terraform apply
  2. the auth0 console should show the password policy set to "Good"
  3. change password_history size to a value != 3
  4. terraform apply
  5. the auth0 console should show the password policy set to "None"

Important Factoids

I recently moved to v0.8.1 of the provider to v0.10.3.
I don't recall this happening before that upgrade

@mbenabda
Copy link
Author

mbenabda commented Jun 5, 2020

sorry, I just saw #237

@mbenabda mbenabda closed this as completed Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant