Zero-trust connections with DataGrip


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

1 comment
Hi Moshe,

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: 

2. you can achieve this by triggering a startup script once a connection to database is established:

Let me know if you have questions.

Please sign in to leave a comment.