Skip to content

AWS OIDC: Only consider Linux/UNIX when listing EC2 instances#33198

Merged
marcoandredinis merged 2 commits intomasterfrom
marco/list_ec2_filterout_windows
Oct 16, 2023
Merged

AWS OIDC: Only consider Linux/UNIX when listing EC2 instances#33198
marcoandredinis merged 2 commits intomasterfrom
marco/list_ec2_filterout_windows

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

Listing EC2 instances is part of the EICE flow, where Teleport connects to the instance's SSH server.
We were returning Windows instances, but those don't have an SSH Server, thus not compatible with the feature.

This PR adds a new filter to only return Linux/UNIX instances.

Before
image

After
image

@marcoandredinis marcoandredinis added discover Issues related to Teleport Discover backport/branch/v13 labels Oct 10, 2023
@marcoandredinis marcoandredinis force-pushed the marco/list_ec2_filterout_windows branch from aea21d6 to a427f81 Compare October 13, 2023 20:57
@marcoandredinis
Copy link
Copy Markdown
Contributor Author

@gabrielcorado @smallinsky Friendly ping

Comment thread lib/integrations/awsoidc/listec2_test.go Outdated
Comment thread lib/integrations/awsoidc/listec2_test.go Outdated
Listing EC2 instances is part of the EICE flow, where Teleport connects
to the instance's SSH server.
We were returning Windows instances, but those don't have an SSH Server,
thus not compatible with the feature.

This PR adds a new filter to only return Linux/UNIX instances.
@marcoandredinis marcoandredinis force-pushed the marco/list_ec2_filterout_windows branch from a427f81 to 15798e3 Compare October 16, 2023 11:17
@marcoandredinis marcoandredinis added this pull request to the merge queue Oct 16, 2023
Merged via the queue into master with commit 4073b30 Oct 16, 2023
@marcoandredinis marcoandredinis deleted the marco/list_ec2_filterout_windows branch October 16, 2023 13:03
@public-teleport-github-review-bot
Copy link
Copy Markdown

@marcoandredinis See the table below for backport results.

Branch Result
branch/v13 Create PR
branch/v14 Create PR

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

Labels

discover Issues related to Teleport Discover size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants