-
Notifications
You must be signed in to change notification settings - Fork 428
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
Error: account and User must be set in provider config, ~/.snowflake/config, or as an environment variable #2137
Comments
Seeing the same issue following the Snowflake Terraform demo: fixed by forcing version 0.73.0 |
Latest release 0.74.0 screwed up login completely! The examples in the readme are not working anymore when using a private key: export SNOWFLAKE_USER="..." But it returns: Γöé Error: 260002: password is emptys] |
Did you find a way around this? we need the new release! I guess todays job will be looking for a way around this |
Nope, reverted to 0.73.0 - I see an hotfix is coming in 0.74.1; but I do not know if it is solving the private key issue or just the "account and User must be set" issue. |
So the terraform variables don't work but if i set both the account and user as variables i got it to work. They also deprecated username and changed it to user but user doesn't actually work in the terraform variables. |
Yes, also SNOWFLAKE_USER and SNOWFLAKE_ACCOUNT were set, the error I receive is: Error: 260002: password is empty I guess the environment variables for the private key are not read in the correct way anymore in 0.74.0, leading the provider to try the password login anyway, that is in the end empty. Same as #2133 |
We have SNOWFLAKE_USER, SNOWFLAKE_ROLE, SNOWFLAKE_ACCOUNT and SNOWFLAKE_PRIVATE_KEY set as environment variable and we also receive the same error: "Error: 260002: password is empty" |
"Error: 260002: password is empty" issue still present in 0.75.0: #2133 |
I'm really, really curious how people are using 0.74.0 and 0.75.0. Apparently it's not completely broken for someone right? I can't it to work. |
I am using this to automate management of a set of snowflake accounts, using vault based dynamic credentials. With the issues form 0.74&0.75 I decided to move to generating a profile file, with each acocunt under management. That’s worked pretty well, and a little superior than the previous method which had some leaking in tf state. |
As far as I understood people that uses plain password should not have any problem. As soon as you make use of a different login method (private key) and/or a passing method (env variables) thing stop working since 0.74.0. The miscommunication happens between the provider config setup and the gosnowflake library under the hood. In reality the issue in the subject has been solved (account and user), the thread related to the broken login methods is more related to: #2133 |
This helps: #2169 (comment) |
Hey @lzitka. The problem you initially mentioned should have been solved already in v0.76.0. Please confirm and close the issue if so. @smith-m @simonepm @sfaller98 @matthiasng @pauldraper please consult the thread in #2169 like suggested above by @attekei (thanks). |
@sfc-gh-asawicki - I will test during week or next and eventually close this topic. Thx everyone for feedback in this channel. |
Closing as fixed. |
Provider Version
Installed snowflake-labs/snowflake v0.74.0
id did not happened with - Installed snowflake-labs/snowflake v0.73.0
Terraform Version
1.5.7
Describe the bug
Expected behavior
It is not well documented how to configure the provider, on main page README.md file
Code samples and commands
This is current documentation:
![image](https://private-user-images.githubusercontent.com/146438230/276643220-e32818d5-1e2d-4448-8954-f67aa455116a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzgxMTQsIm5iZiI6MTczOTI3NzgxNCwicGF0aCI6Ii8xNDY0MzgyMzAvMjc2NjQzMjIwLWUzMjgxOGQ1LTFlMmQtNDQ0OC04OTU0LWY2N2FhNDU1MTE2YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQxMjQzMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNDExMmVmZTIyNDdmODUxMzBmNzQ0YjE0ODBlOGFlNDFiYTRmZjQ2ZjliMjY3ZTBlNTE2ZDJmYTVmNmVjYzVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ItWhytDqB5IQIJye3NDoUN5NXE-kLC9XkfX6Vdu7m8o)
The text was updated successfully, but these errors were encountered: