Skip to content

Remove Origin from Database cloud converters#24977

Merged
marcoandredinis merged 1 commit intomasterfrom
marco/no_origin_in_converters
May 2, 2023
Merged

Remove Origin from Database cloud converters#24977
marcoandredinis merged 1 commit intomasterfrom
marco/no_origin_in_converters

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

Setting the Cloud origin when converting Cloud (AWS/Azure) resources into Teleport Databases assumes they will be created automatically, thus the Cloud Origin:

	// OriginCloud is an origin value indicating that the resource was
	// imported from a cloud provider.

That's not the case for the new AWS OIDC Integration: the Database info is presented to the user but they must choose a Database a click on Create.
So, this ends up being nothing more than a shortcut to get the Database Details (instead of copy/pasting the endpoint, port, ... from AWS).
Those Databases must be created with Origin: Dynamic.

This PR changes the converters to not include the Origin.
Databases added by the Discovery service still get the Origin:Cloud but much later in the process, right before being actually created in Teleport.

@marcoandredinis marcoandredinis marked this pull request as ready for review April 21, 2023 15:40
@github-actions github-actions Bot requested review from fspmarshall and kimlisa April 21, 2023 15:41
@github-actions github-actions Bot added database-access Database access related issues and PRs size/sm labels Apr 21, 2023
@marcoandredinis marcoandredinis changed the title Remove Origin from cloud converters Remove Origin from Database cloud converters Apr 21, 2023
@marcoandredinis marcoandredinis force-pushed the marco/no_origin_in_converters branch from bce010d to dfc4bbd Compare April 27, 2023 07:56
@marcoandredinis
Copy link
Copy Markdown
Contributor Author

@fspmarshall @kimlisa
Can you please take a look when you get a chance?

@marcoandredinis marcoandredinis force-pushed the marco/no_origin_in_converters branch from dfc4bbd to 0a1c8f1 Compare April 28, 2023 16:34
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from fspmarshall April 28, 2023 22:10
@marcoandredinis marcoandredinis added this pull request to the merge queue May 2, 2023
Merged via the queue into master with commit 01d34ce May 2, 2023
@marcoandredinis marcoandredinis deleted the marco/no_origin_in_converters branch May 2, 2023 07:11
@public-teleport-github-review-bot
Copy link
Copy Markdown

@marcoandredinis See the table below for backport results.

Branch Result
branch/v12 Failed
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database-access Database access related issues and PRs size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants