Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection data source errors with "Unmanaged Configuration Secret" #515

Closed
6 tasks done
CaffeinatedCM opened this issue Feb 28, 2023 · 3 comments
Closed
6 tasks done
Assignees
Labels
🪲 bug Something isn't working

Comments

@CaffeinatedCM
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this provider and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

When attempting to use the auth0_connection data source I get a lot of errors that look like the following:

Error: Unmanaged Configuration Secret

   .....

Detected a configuration secret not managed through terraform: "USER_POOL_ID". If you proceed, this configuration secret will get deleted. It is required to add this configuration secret to your custom database settings to prevent unintentionally destructive results.

My data source is defined as:

data "auth0_connection" "users_connection" {
    name = "Users"
}

I want to read this so that I can create a auth0_connection_client resource to attach the connection to a client I am also creating.

Expectation

Terraform Data Sources are meant to be read only, so I shouldn't get an error about things not being defined in terraform at all, and the error shouldn't tell me using the data source is potentially destructive on a read only type.

Reproduction

  1. Create a data block of type auth0_connection
  2. Run terraform plan and see the errors

Auth0 Terraform Provider version

0.44.0

Terraform version

1.3.9

@CaffeinatedCM CaffeinatedCM added the 🪲 bug Something isn't working label Feb 28, 2023
@sergiught
Copy link
Contributor

Hey @CaffeinatedCM 👋🏻 Thanks for raising this! I'll look into providing a fix ASAP.

@sergiught
Copy link
Contributor

This is now fixed within the latest https://github.com/auth0/terraform-provider-auth0/releases/tag/v0.44.1

Thanks again @CaffeinatedCM for raising the issue with us!

@CaffeinatedCM
Copy link
Author

Works great, thanks @sergiught !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants