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

Random password generated did not work in Snowflake #2240

Closed
natashamathur opened this issue Dec 7, 2023 · 2 comments
Closed

Random password generated did not work in Snowflake #2240

natashamathur opened this issue Dec 7, 2023 · 2 comments
Labels
bug Used to mark issues with provider's incorrect behavior category:other

Comments

@natashamathur
Copy link

Terraform CLI and Provider Versions

  • provider registry.terraform.io/hashicorp/random v3.3.2
  • provider registry.terraform.io/snowflake-labs/snowflake v0.76.0

Terraform Configuration

output "password_url_ABCD" {
  value     = snowflake_managed_account.ABCD_account.admin_password
  sensitive = true
}

output "password_ABCD_account" {
  value     = snowflake_managed_account.ABCD_account.admin_password
  sensitive = true
}

Expected Behavior

After I created a new snowflake share, I expected that the password output through the above code to give me the correct Admin account password. Both outputs were the same.

Actual Behavior

The passwords did not work and I could not log into the share. I ultimately reached out to Snowflake and they re-set the share.

Steps to Reproduce

terraform output --json

How much impact is this issue causing?

Medium

Logs

No response

Additional Information

We have other shares that were created in the same way. For those the admin_password output worked.

@natashamathur natashamathur added the bug Used to mark issues with provider's incorrect behavior label Dec 7, 2023
@sfc-gh-jcieslak
Copy link
Collaborator

Hey @natashamathur 👋
Not sure what is causing the issue here. Could you elaborate a bit and provide the configurations that you think are invalid?

@natashamathur
Copy link
Author

The issue here ended up being that the passwords generated contained escape characters and therefore causing issues when passed through Snowflake. I limited the list of characters that could be used to randomly generated passwords

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to mark issues with provider's incorrect behavior category:other
Projects
None yet
Development

No branches or pull requests

2 participants