mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 10:13:21 +00:00
f3a5d9695e
* AWSOIDC Integration: ListDatabases This PR adds a new Action for the AWSOIDC Integration: ListDatabases The goal of this action is to provide the User a list of RDS Databases from which the User will pick one to be added as a Teleport Database Resource. This way, the user doesn't need to copy/paste DB name, endpoints and labels. Before being able to call this action, the User has to set up an AWS OIDC integration. How does it work: ``` Client (web app) │ ▲ │ │4. Returns list of DBs 1. List Databases │ │ (name, tags, status, endpoint) │ │ │ │ │ │ │ │ ▼ │ 3. rds.DescribeDBInstances ┌───────────┴────┐ (auth: token) ┌─────────┐ │ ├─────────────────────────────────►│ │ │ Teleport Proxy │ │ AWS │ │ │ 3.1. Get OIDC Config │ │ │ │◄─────────────────────────────────┤ │ │ │ 3.2. Get RSA Public Key │ │ │ │◄─────────────────────────────────┤ ├─────────┐ 3.3. │ │ │ │ │Validates token signature │ │ │ │ │with received public key │ │ 3.4 Returns list of DBs │ │◄────────┘ │ │◄─────────────────────────────────┤ │ └─┬──────────────┘ └─────────┘ │ │ 2. Sign Token │ ▼ ┌───────────────────┐ │ │ │ Teleport Auth │ │ RSA Private Key │ └───────────────────┘ ``` * add resource and account ids to DB resource * move api namespaces * use types.Database instead of custom database format * add database uri * fix comments and rate limiter * test name override when converting RDS V2 DBs * fix webapi database URI field * TestClusterDatabasesGet: add parallel |
||
---|---|---|
.. | ||
breaker | ||
client | ||
constants | ||
defaults | ||
fixtures | ||
gen/proto/go | ||
identityfile | ||
internalutils | ||
metadata | ||
observability/tracing | ||
profile | ||
proto | ||
types | ||
utils | ||
go.mod | ||
go.sum | ||
version.go |