Code Monkey home page Code Monkey logo

Comments (5)

sosdarko avatar sosdarko commented on September 24, 2024 2

Thank you all, looking forward for this feature!

from appsmith.

rohan-arthur avatar rohan-arthur commented on September 24, 2024 1

@AnnaHariprasad5123 thank you for your interest. Our team is already working to solve this.

In future, please check with us before picking up something, as described in the updated code contribution guide here, so that we don't both end up working on the same thing.

(By the way, the requirements description is spot on)

from appsmith.

csp33 avatar csp33 commented on September 24, 2024

Hi, this feature is very important because it would allow configuring MFA for service users

from appsmith.

AnnaHariprasad5123 avatar AnnaHariprasad5123 commented on September 24, 2024

Hi @rohan-arthur

I have started working on this. Could you please provide your opinion on my approach to solving this?

Approach to Solve :

Step 1: Create a private key and passphrase for Snowflake connection
Step 2: Update the Connection Form

  • Modify the connection form to include the following fields:
  • Authentication Method: A dropdown with two options:
    1. Username and Password
    2. Private Key

Private Key File: A text input field to enter the path to the private key file (only visible when Private Key is selected as the authentication method)
Private Key Passphrase: A password input field to enter the passphrase for the encrypted private key (only visible when Private Key is selected as the authentication method)

Step 3: Update the Connection Logic

Modify the connection logic to handle the new authentication method. When the user selects Private Key as the authentication method, you'll need to:

  • Read the private key file from the specified path
  • Decrypt the private key using the provided passphrase (if encrypted)
  • Use the decrypted private key to establish a connection to Snowflake.

Step 4: Update the Snowflake Connector

Update the Snowflake connector to accept the private key file and passphrase as optional parameters. When the user selects Private Key as the authentication method, pass the private key file and passphrase to the Snowflake connector.

Step 5: Test the Feature

Test the feature by creating a new Snowflake connection using the private key file and passphrase. Verify that the connection is established successfully and you can query the Snowflake database.

from appsmith.

AnnaHariprasad5123 avatar AnnaHariprasad5123 commented on September 24, 2024

Thank you @rohan-arthur

from appsmith.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.