-
Notifications
You must be signed in to change notification settings - Fork 420
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
Provider incorrectly marks snowflake_user.name as sensitive #2662
Comments
Hey @qbatten. Thanks for reaching out to us. We will address it during the resources redesign: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#supporting-all-snowflake-ga-features. |
Fix known user resource-connected issues: - Change the sensitiveness of name and login_name (References: #2662 #2668) - Handle "null" properly for the nullable bool text attributes in user (References: #2817) - Fix diff suppression for default_x in user resource (References: #2836) - Update the migration guide (References #2938 #2942) - Fix incorrect state after failed to alter (References #2970) - Confirm the problem with the computed disabled attribute (References #1572) - Confirm that the problem with the null-out password was already solved (References #1535) - Add TODO to handle days to expiry in user (References #1155) The next 2 PRs will contain: - adjusting user resource to our rework conventions (also adding additional fields and handling #1155 and #1572) - adjusting user datasource (will handle #2902) User rework will not include handling new types of users (service, legacy service); this will be done a bit later.
Hey @qbatten. |
Closing the issue due to inactivity. Please create a new one if the issue persists in the newest version of the provider. |
Terraform CLI and Provider Versions
❯ terraform version
Terraform v1.6.6
on darwin_arm64
Your version of Terraform is out of date! The latest version
is 1.7.5. You can update by downloading from https://www.terraform.io/downloads.html
Terraform Configuration
Expected Behavior
I expect this to work. The list of user's names should not be marked sensitive, and the role should be granted. User names are not sensitive data, Snowflake says as such here ("Usernames are not sensitive data and are returned by other commands and functions"). I don't believe I've encountered any other providers that mark usernames as sensitive. But it seems that snowflake_user.name is indeed considered sensitive for this provider? (I don't know much Go, so hopefully I'm linking to the right line.)
I'm wondering if this PR actually meant to un-sensitive-ize name instead of login_name and a mistake was made? According to Snowflake, login_name is more sensitive than name. And name is the internal identifier for a user, not login_name, so by making name sensitive, it makes it impossible to do simple references to users (like I'm trying to do here), while login_name being marked sensitive wouldn't have that kind of impact.
Actual Behavior
Instead, the plan is failing due to the below error, because user.name is marked as sensitive. I saw & commented on this older issue, which the conversation made seem like it was resolved... but it doesn't seem to have been correctly resolved. It looks like login_name got changed to not-sensitive, but name is still sensitive?
Steps to Reproduce
terraform apply
How much impact is this issue causing?
Medium
Logs
No response
Additional Information
Thanks for you help!
The text was updated successfully, but these errors were encountered: