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

Lighdash Preview: Snowflake MFA (Duo Push) not currently cached #3570

Open
gordonkjlee opened this issue Oct 25, 2022 · 6 comments
Open

Lighdash Preview: Snowflake MFA (Duo Push) not currently cached #3570

gordonkjlee opened this issue Oct 25, 2022 · 6 comments
Labels
🎮 CLI This issue is related to the CLI tool ✨ feature-request Request for a new feature or functionality

Comments

@gordonkjlee
Copy link
Contributor

Description

When in lightdash preview, every action that sends a request to Snowflake results in a Duo Push MFA request - e.g. filter autocomplete, query run, etc. This is not user-friendly, but can be solved if MFA is cached in the jdbc string(?).

https://docs.snowflake.com/en/user-guide/security-mfa.html#using-mfa-token-caching-to-minimize-the-number-of-prompts-during-authentication-optional

What problem does this solve?

Makes Lightdash Preview more usable

@gordonkjlee gordonkjlee added the ✨ feature-request Request for a new feature or functionality label Oct 25, 2022
@gordonkjlee gordonkjlee changed the title Lighdash Preview: Snowflake MFA (Duo Push) not cached Lighdash Preview: Snowflake MFA (Duo Push) not currently cached Oct 25, 2022
@TuringLovesDeathMetal TuringLovesDeathMetal added the 🎮 CLI This issue is related to the CLI tool label Oct 27, 2022
@stale
Copy link

stale bot commented Dec 26, 2022

Is this issue still relevant? There have been no updates for 60 days, please close the issue or keep the conversation going!

@stale stale bot added the stale Issue hasn't been updated for 60 days label Dec 26, 2022
@gordonkjlee
Copy link
Contributor Author

Multiple Duo Push MFA requests are also triggered in the Lightdash app - e.g. if a Dev project is being used and connecting to a Dev database in Snowflake using a user's dev user credentials that is secured by MFA. This is very non-user friendly and risks the user being locked out of Snowflake if a Duo Push is missed on the user's device.

@stale stale bot removed the stale Issue hasn't been updated for 60 days label Sep 4, 2023
@TuringLovesDeathMetal
Copy link
Contributor

Here's how dbt handles it: https://docs.getdbt.com/docs/core/connect-data-platform/snowflake-setup#user--password--duo-mfa-authentication

I wonder if we can add this authenticator bit as an extra parameter in the Snowflake data warehouse settings?

@owlas
Copy link
Collaborator

owlas commented Nov 22, 2023

According to the Snowflake docs, it looks like this isn't currently supported for the node.js SDK that we require:

I believe the only reason that we reach out to snowflake for each explore is to get the INFORMATION_SCHEMA for the table so that we can figure out the dimension types. We could remove this if all the columns already have a dimension.type set

@ZeRego
Copy link
Contributor

ZeRego commented Nov 22, 2023

@owlas could we also have an option to skip that part eg: --skip-warehouse-catalog

@jonathankkizer
Copy link

Curious if this can be reprioritized, once snowflakedb/snowflake-connector-nodejs#493 is complete — looks like active progress, and though they’ve missed an ETA, hopeful that it is available in the next few months (I’ve asked for an updated ETA)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎮 CLI This issue is related to the CLI tool ✨ feature-request Request for a new feature or functionality
Projects
None yet
Development

No branches or pull requests

5 participants