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

SNOW-1904198: MFA Caching broken in MSI package #2036

Open
sfc-gh-cconner opened this issue Jan 30, 2025 · 2 comments
Open

SNOW-1904198: MFA Caching broken in MSI package #2036

sfc-gh-cconner opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working connections

Comments

@sfc-gh-cconner
Copy link
Collaborator

SnowCLI version

3.3.0

Python version

N/A

Platform

Windows-10-10.0.22631-SP0

What happened

I'm using authenticator username_password_mfa and MFA caching is not working. I get prompted for MFA on every command. MFA caching requires installation with [secure-local-storage] to work and I'm guessing the MSI package for Windows is not doing this. I can confirm that if I install python and do:

pip install -U "snowflake-cli-labs[secure-local-storage]>=3.1.0"

This works on Windows, Linux and MacOS for MFA caching. So the issue is related to the MSI pacakge.

Console output

How to reproduce

No response

@github-actions github-actions bot changed the title MFA Caching broken in MSI package SNOW-1904198: MFA Caching broken in MSI package Jan 30, 2025
@sfc-gh-cconner
Copy link
Collaborator Author

Also, our docs here:

https://docs.snowflake.com/en/developer-guide/snowflake-cli/connecting/configure-connections#use-multi-factor-authentication-mfa

Should point out that they need to do a pip install with secure-local-storage...

@sfc-gh-astus sfc-gh-astus added bug Something isn't working connections labels Jan 30, 2025
@sfc-gh-astus
Copy link
Contributor

We have "snowflake-connector-python[secure-local-storage]==3.12.4" in pyproject.toml, so secure-local-storage is always installed. The SnowCLI has only development as extra dependency. Issue must be somewhere else, I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working connections
Projects
None yet
Development

No branches or pull requests

2 participants