Has anyone setup matilion to work with Snowflake MFA using DUO.
I would recommend using an account with key pair authentication for Matillion. Username and password option with MFA might be tricky as it keeps triggering push notifications to approve for every connection
Hi @AnudeepK ,
Any chance you used these guidelines to create the keypair? https://docs.snowflake.com/en/user-guide/key-pair-auth
This article was recommended to me, but I'm not getting correct results.
Yes, that’s how you do it. What issues are you facing ?
Excellent! Appreciate any tips you can offer.
These are the steps i've taken:
- Followed this youtube video to install OpenSSL for windows (via openssl.org which points to slproweb.com)
- Followed the article verbatim
- Generate Private key using a password
- Generate Public key (points to private key using a "passphrase" that only works if you use the "password" from creating the private key)
- Execute the "ALTER USER" command to set the RSA_PUBLIC_KEY (using the text excluding header and footer from the public key file)
- Repeated those steps multiple times, but could not get the output to match on the step to "Verify the user’s public key fingerprint"
Feel like i'm following the steps exactly, but i can't figure out where i'm going wrong.
Appreciate any thoughts you may have on this.
Can you please try including everything in the public key, including header and footer. Please do not exclude anything. It should work !!
Hi @AnudeepK ,
Appreciate your thoughts on this. Looks like Snowflake does not like the header/footer (what they are calling "public key delimiters") in the ALTER USER statement (user name and a portion of the key are redacted):
USE ROLE SECURITYADMIN;
ALTER USER [REDACTED] SET RSA_PUBLIC_KEY='-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5c5GNYu/OnIfiMjvZTt/
[REDACTED]
o1fpPoHUjpt5Czbr0E9FYCNpVhs5kvI+OOlO9/Z9svvBUVY7WA/9LEggtsXAKMR0
rwIDAQAB
-----END PUBLIC KEY-----';
This returns the error:
SQL execution error:
New public key rejected by current policy. Reason: 'Invalid public key'