Validate unknown AWS regions from discovery matchers#31533
Conversation
|
@tigrato @smallinsky any thoughts on this approach? Or do we prefer a hard-coded list like the UI and IAM join? Then we can have a make script to upgrade them together. |
There was a problem hiding this comment.
I like this approach. But I have one concern:
Are we sure that DB agent/kube agent/discovery service will properly handle unknown region on their side without updating GO AWS SDK ?
For instance if we will allow to use "unknown region by SDK in teleport v11 the request most likely will fail in Teleport Discovery Service due to updated v11 GO AWS SDK.
tigrato
left a comment
There was a problem hiding this comment.
I like this approach. But I have one concern: Are we sure that DB agent/kube agent/discovery service will properly handle unknown region on their side without updating GO AWS SDK ? For instance if we will allow to use "unknown region by SDK in teleport v11 the request most likely will fail in Teleport Discovery Service due to updated v11 GO AWS SDK.
I am a bit reticent about this.
It solves the issue but it creates inconsistencies when we don't define the region - new regions won't be added - vs when we manually define it
I've tested this fix on v13 where the SDK does not support Regular SDK calls can make endpoints with "unknown" regions, as long
It does create inconsistency. Consistency vs ease-of-use vs security. I don't mind doing the hard-coded list too. Or even an RFD? |
* Validate unknown AWS regions from discovery matchers * move and simply regex check
* Validate unknown AWS regions from discovery matchers (#31533) * Validate unknown AWS regions from discovery matchers * move and simply regex check * remove il-centrla-1
Changelog: Support discovery for new AWS region il-central-1
As discussed in #31217, older branches may not get AWS SDK update to refresh the region list.
This change uses a regex to validate AWS regions from AWS discovery matchers. If a region is "valid" but "unknown", print a warning.
This avoids updating older branches for new regions.
Tested by cherry-picking the commit onto
branch/v13and enabling RDS discovery foril-central-1in our dev account.