I also tried using this connection_url="{{username}}:{{password}}@012345.snowflakecomputing.com/some-db" but same error. Thing is that when I go to Snowflake Login and use those credentials I can login without any issues so I know the username/password work fine, what connection_url should I be using then?
You may want to ask around to see if AWS has modified their snowflake enough that it isn’t going to work with the plugin. It doesn’t actually say what vendors are supported so if they wrapped something around the database for authentication it may not work as expected.
Otherwise, you can skip the variable replacement for testing purposes:
See if it’s something to do with the variables or something else. DO NOT leave this in your configuration, it should only be used for testing purposes.
Thanks Aram. I tried pass in the username:password but still got the connection parse error so not sure what’s going on but I reached out to Snowflake and see what they say
However, the documentation in Vault doesn’t say anything about configuring Snowflake or anything like that so you would think it’s an easy setup.
I got a little further on this and now I get the following:
$ vault write database/config/cd-snowflake-db plugin_name="snowflake-database-plugin" allowed_roles="snowflake-role" connection_url="{{username}}:{{password}}@abc1234.snowflakecomputing.com/devops_db" username="some_username" password="some_password"
Error writing data to database/config/cd-snowflake-db: Error making API request.
URL: PUT http://0.0.0.0:8200/v1/database/config/cd-snowflake-db
Code: 400. Errors:
* error creating database object: error verifying connection: 390102 (08004): User temporarily locked. Try again later, or contact your local system administrator.
Now, what is interesting is that when I login to Snowflake I do see that the the user “some_username” is locked out so I manually unlock that username but when I use those same credentials I am able to login in another browser to Snowflake Web
I am totally confused but maybe I have to pass something else perhaps?
I ditched Docker 'cause I thought it was something related to Docker/Vault and set up Vault Cloud and again seeing the same error. It’s an Authentication issue but again that same username:password work in Snowflake’s Web Login
I went back to Docker since it’s clearly not a Docker issue and all I see in the logs is this:
Hey @aram I was working with Snowflake and we figured it out. It was due to the password that has symbols/special characters in it, and it was translated by the connector driver incorrectly. I changed the password to something very easy and it worked so I’ll need to figure out how to pass in these long alphanumeric and special characters password when writing my config.
Thanks @aram! I got it working finally but the password policy is very picky. I’m reading how I can pass in a more complex password to that config now but I think this particular issue has been resolved. Thanks