Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

[DB Access 6] Add Connect Button and Popup Dialogue #277

Closed
kimlisa opened this issue Apr 21, 2021 · 0 comments · Fixed by #300
Closed

[DB Access 6] Add Connect Button and Popup Dialogue #277

kimlisa opened this issue Apr 21, 2021 · 0 comments · Fixed by #300
Assignees

Comments

@kimlisa
Copy link
Contributor

kimlisa commented Apr 21, 2021

Description

For the database access table, render a button for each row that says connect, that when clicked upon, a dialogue shows up with CLI commans with most field values preopulated.

For example, given this row, and our logged in user is kimlisa and my current cluster is asteroid-sun.teleport.sh:

Name            Description                      Protocol Type        URI                                                                      Labels                  
--------------- -------------------------------- -------- ----------- ------------------------------------------------------------------------ ---------------------- ------- 
aurora          PostgreSQL 11.6: AWS Aurora      postgres rds         postgres-aurora-instance-1.c1xpjrob56xs.us-west-1.rds.amazonaws.com:5432 cluster=root,env=aws    <btn>  

Clicking on button for this row will render a dialogue:
image

CLI template

Step 1 is same as found in Apps and Nodes component.

For step 2 CLI template: tsh db login <db name>

For step 3 CLI template, depending on protocol:

psql (the quotes are required): psql "service=<clustername>-<db name> user=[user] dbname=[dbname]"
mysql: mysql --defaults-group-suffix=_<clustername>-<db name> --user=[user] --database=[database]

NOTE: The angle brackets are values we need to populate for user, the square bracket are values that user will need to fill out for themselves (so leave it as is).

Link for the GUI

https://goteleport.com/docs/database-access/guides/gui-clients/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants