Skip to content

[v13] Integrations: AWS OIDC - ListDatabases action#24814

Merged
marcoandredinis merged 9 commits intobranch/v13from
bot/backport-24460-branch/v13
Apr 20, 2023
Merged

[v13] Integrations: AWS OIDC - ListDatabases action#24814
marcoandredinis merged 9 commits intobranch/v13from
bot/backport-24460-branch/v13

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

Backport #24460 to branch/v13

@public-teleport-github-review-bot
Copy link
Copy Markdown

@marcoandredinis - this PR will require admin approval to merge due to its size. Consider breaking it up into a series smaller changes.

@marcoandredinis marcoandredinis added this pull request to the merge queue Apr 20, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 20, 2023
@marcoandredinis marcoandredinis added this pull request to the merge queue Apr 20, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 20, 2023
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  │
              └───────────────────┘

```
@marcoandredinis marcoandredinis force-pushed the bot/backport-24460-branch/v13 branch from 7972871 to 3cd267e Compare April 20, 2023 13:48
@marcoandredinis marcoandredinis added this pull request to the merge queue Apr 20, 2023
Merged via the queue into branch/v13 with commit 6a79390 Apr 20, 2023
@marcoandredinis marcoandredinis deleted the bot/backport-24460-branch/v13 branch April 20, 2023 14:40
@r0mant r0mant mentioned this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants