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

op plugin run -- snowsql doesn't propagate env variables #486

Open
yavorg opened this issue Sep 26, 2024 · 0 comments
Open

op plugin run -- snowsql doesn't propagate env variables #486

yavorg opened this issue Sep 26, 2024 · 0 comments

Comments

@yavorg
Copy link

yavorg commented Sep 26, 2024

Platform or tool

Snowflake

Desired or expected behavior

When running op plugin run -- snowsql --private-key-path ~/PATH/rsa_key.p8 --generate-jwt it should pick up exported variables from .zshrc. It looks for $SNOWSQL_PRIVATE_KEY_PASSPHRASE for the private key decryption password

Current behavior

It doesn't seem to be picking up environment variables... I have the following in .zshrc export SNOWSQL_PRIVATE_KEY_PASSPHRASE=op://VAULT/private_key_password and snowsql throws that the decrypt failed due to wrong password.

If I run op run -- snowsql -a ACCOUNT -u USER --private-key-path ~/PATH/rsa_key.p8 --generate-jwt, then it picks up the env variable just fine, but then I don't benefit from the plugin logging me in.

Relevant log output

No response

op CLI version

2.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant