Zero-trust connections with DataGrip
Answered
Hi,
I have a zero-trust solution that has to following requirements
1. upon DataGrip startup, I'd like to trigger a script that will generate a list of servers (endpoints) that the user have access to, so they'll appear in the Database list.
2. Upon connecting to a DB, the connection will need to trigger another script that will return a temporary username and password for this DB connection.
How can I achieve this?
- Moshe
Please sign in to leave a comment.
Thank you for contacting us.
Here's how you can set up your scenario while trialing this IDE:
1. before a connection is established, you can add a task in Before Connection in the data source properties:
https://www.jetbrains.com/help/datagrip/data-sources-and-drivers-dialog.html#optionsTab
2. you can achieve this by triggering a startup script once a connection to database is established:
https://www.jetbrains.com/help/datagrip/configuring-database-connections.html#run-a-predefined-query-as-you-establish-a-connection
Let me know if you have questions.