Commit Graph
113 Commits
Author SHA1 Message Date
Nic Klaassen 30072c0ea7 fix flaky TestCredentialsCache (#41597) 2024-05-15 16:53:58 +00:00
Marco DinisandEdward Dowling 0aaf1b21c3 AWS OIDC: Script to configure EC2 Auto Discover with SSM (#41053)
* AWS OIDC: Script to configure EC2 Auto Discover with SSM

There's a new teleport command that adds an inline policy which enables
the AWS OIDC Integration to handle EC2 Auto Discover using the script
mode (SSM).
It also adds the SSM Document used in the teleport installation.

There's also a new endpoint which returns the one off script that uses
that command.

* Update lib/integrations/awsoidc/ec2_ssm_iam_config.go

Co-authored-by: Edward Dowling <EdwardDowling@users.noreply.github.com>

---------

Co-authored-by: Edward Dowling <EdwardDowling@users.noreply.github.com>
2024-05-09 17:20:27 +00:00
Marco Dinis 5c6737647a Fix panic when running Auto Discovery for EKS (#41316) 2024-05-08 15:44:13 +00:00
Marco Dinis 7c275a0662 Use slog for integration configure commands (#41209) 2024-05-06 15:48:37 +00:00
Marco Dinis 0d515ec020 Use slog in lib/integration/awsoidc package (#41210)
* Use slog in `lib/integration/awsoidc` package

* fix type field
2024-05-06 15:44:42 +00:00
Justinas Stankevičius 68886bb8ef Entra ID integration boilerplate (#40998)
* Add e imports for MS Graph SDK

* Add ability to sign Entra ID OIDC JWTs, rework KID handling

- Synthesize Key IDs for our JWT keys. For backwards compatibility, also
  include the same keys with an empty `kid` in JWKS.
- Sign AWS OIDC tokens with a `kid=""` header claim,
  rather than omitting the `kid` claim altogether.
  See comment for details.

* Add validation for Entra ID plugin

* Fix typo in assertion function name

* Update the OIDC JWKS test to expect the same key twice

* Add Entra ID plugin type constant

* go mod tidy

* Fix expected JWKS size in integration test

* Add basic tests for KeyID

* Move Azure auth settings from Plugin to Integration

* Address review comments

* Add a unit test to ensure KeyID compatibility

* Add license header to token_generator.go

* Rename validation function per new conventions
2024-05-02 13:44:32 +00:00
ddbd9eefed Replace isTeam with new flags (#39794)
* Add new flags to modules

* Add deprecated comments to isTeam

* Make support flag an enum

* Add a TODO instead of deprecating flag right away

Co-authored-by: Alan Parra <alan.parra@goteleport.com>

* Add gogoproto.jsontag to new fields

* remove meaning from enum zero value

* Reuse proto.SupportType instead of suping

* Replace isTeam for new flags in web app

* Update proto file: rename enum 0 value to unspecified;fix json tag casing

* Reuse proto file instead of aliasing it

* undo removing method by accident

* Add MobileDeviceManagement field to web config struct

* Improve comments

* Fix tests

* Simplify lockedFeatures object

* Include JoinActiveSessions in the web config object

* Remove more instances of isTeam

* Apply suggestions from code review - improve comments

Co-authored-by: Michelle Bergquist <11967646+michellescripts@users.noreply.github.com>

* Use consistent comments to remove isTeam

* Update godocs comments

* Revert removign `isTeam` from stories it still should

* Fix godoc typo

Co-authored-by: Michelle Bergquist <11967646+michellescripts@users.noreply.github.com>

---------

Co-authored-by: Alan Parra <alan.parra@goteleport.com>
Co-authored-by: Michelle Bergquist <11967646+michellescripts@users.noreply.github.com>
2024-04-30 11:54:17 +00:00
Tiago Silva 606bcb1d41 Integration: Allow empty regions (#40984)
When using AWS Integration to access global services, the region is not
required. PR #40188 introduced a validation of the region which caused
troubles when using the integration with empty regions like when
accessing the STS endpoint to discover the AWS AccountID.

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
2024-04-29 08:53:57 +00:00
Marco André Dinis 932be62d12 Move teleport integration configure commands to their own file (#40634)
* Move teleport integration configure commands to their own file

* remove pointers for requests
2024-04-23 14:56:47 +00:00
Marco André Dinis 417b30e144 AWS OIDC: validate region param when creating clients (#40188)
* AWS OIDC: validate region param when creating clients

* add green test
2024-04-23 08:03:41 +00:00
Marco André Dinis dc5975ea37 AWS OIDC: IAM set up for AWS App Access (#40575)
* AWS OIDC: IAM set up for AWS App Access

AWS App Access using AWS OIDC Integration requires a new policy in the
AWS OIDC Role.
This PR adds a one-off script that executes the configuration command
that adds said policy.

* improved comments, remove dead code, improve logging

* improve comment and http client var name

* move back to interface

* remove default client

* rename role to rolename

* enable fips endpoint support

* restrict target roles by their tags

* use true for tag value
2024-04-19 14:56:44 +00:00
Nic Klaassen d8f7ad9105 log every EAS credential refresh error (#40670) 2024-04-18 20:43:26 +00:00
Marco André Dinis 851b0d8fdf DiscoveryService: prevent EICE Node duplication (#40220)
* DiscoveryService: exclusive worker per Discovery Group

This PR ensures only one DiscoveryService is running per DiscoveryGroup.
It does so using a SemaphoreLock.

This should prevent any duplicate API calls and also prevent duplicate
resources on Teleport side.

* improve eice server name and releaseGroupLockFn init

* review pt2

* improve error handling

* re-organize lock acquire

* improve eice node name handling

* simplify lock on discovery group

* Remove lock logic and rely on node name to prevent dups

* improve test comment

* change comment about skipping nodes
2024-04-15 13:24:33 +00:00
Marco André Dinis 2943df38b1 Fix EAS Token generation (#40154)
In the latest release, we added support for S3 bucket as OIDC Provider
URL.
There are two places were the Token is generated.
One used in Discover Wizard, EICE access and Auto-Discover.
Another one for the External Audit Storage.

The first was updated to include the S3 Bucket as possible Issuer.
EAS flow was not updated.

This PR merges both flows.
2024-04-05 13:06:03 +00:00
Marco André Dinis d2dd5d395d AWS OIDC: use ACL for S3 objects during IdP set up (#40171)
This PR changes the method to expose the public keys and openid config.
Instead of using Bucket Policy, it uses ACLs.
2024-04-04 13:28:21 +00:00
Sakshyam Shah b71b02b07b feat: adds samlidp gcp-workforce command to teleport cli (#39820)
* configure GCP workforce api client

* add 'integration configure samlidp gcp-workforce' command to teleport ctl

* update api to fetch metadata file from remote Teleport prox.
- minor comment copy and log copy edits

* gcp resource name validation, checkandsetdefault funcs

* use gcp-workforce subcommand path, rename gcpworkforce config as APIParams

* return early on pending provider status

* update comments and godoc

* use slog

* apply review suggestions:
- use 2*minute instead of 120*seconds
- use default http client and add redirect to the client
- NewGCPWorkforceService test

* update logger to use InfoContext. improve wait message, run fix-imports

* update ticker to 5 second from 1 second

* use underscore in log field instead of space. add missing trace.Wrap in waitForPoolStatus

* update NewGCPWorkforceService comment

* review suggestions:
- increase wait timer to 5 mins
- iamv1 migration comment
- move http redirect checker to checkAndSet default

* check for 409 response so that pool provider create op can continue if we timedout after creating pool

* fix package import comment style to make linter happy

* move default http client to gcpworkforce service checkandset defaults. update tests to relax on httpclient input param
2024-03-27 21:16:39 +00:00
Marco André Dinis 455632e28a EC2 Auto-Discovery: EICE support (#35504)
* AutoDiscover: add support for EICE nodes

* ignore openssh nodes when updating labels from serverinfo

* downcase imports

* improve comment on why we need account/instance and subkind

* add applyovertime method

* skip nodes that wont expire in the near future

* create helper functions
2024-03-26 16:16:20 +00:00
Marco André Dinis 9ced997396 Fix comment for AWS OIDC IdP set up (#39624)
The method's doc wrongly mentions the required actions.
We referenced API Calls and not the actual required IAM Policy Actions.
2024-03-20 17:09:27 +00:00
Bernard Kim b2d90968dc Fix aws oidc deployment metrics (#38892)
* Add TELEPORT_EXT_UPGRADER env to AWS OIDC deployments

* Add unit tests

* Fix import

* Remove subtest

* Remove constants pkg

* Iterate over all container definitions

* Remove TELEPORT_EXT_UPGRADER from ensured env var

TELEPORT_EXT_UPGRADER=awsoidc_integration is not supported when
attempting to initialize a new exporter. Instead of including version
checks, it is safer to use the install method environment variable to
populate the upgrader value in the heartbeat.

* Use constant

* Remove comment
2024-03-16 00:10:14 +00:00
Marco André Dinis 64ad6ba632 AWS OIDC IdP Configuration: support S3 buckets as provider (#39026)
This PR adds support for setting the AWS OIDC Integration with an S3
bucket as issuer.
2024-03-15 22:11:25 +00:00
Marco André Dinis a0068878de AWS OIDC: Accept custom issuers (#38785)
* AWS OIDC: Accept custom issuers

This PR adds a new field into the AWS OIDC fields:
- issuer

This is the issuer that was configured in AWS.
It is used by teleport to set the `issuer/iss` field when generating the
JWT.
This way we'll be able to set a custom issuer.
As an example, we could set this to be a public S3 bucket which doesn't
suffer from the thumbprint validation issuer.

* ensure issuer is a valid https url

* use s3 uri instead of any url for issuer

* typo and require s3 fields

* add missing s3 location when creating integration

* improve error messages
2024-03-15 18:08:35 +00:00
Reed Loden 23c67d4c16 Re-enable AWS IMDSv1 fallback (#39363)
It was discovered that some customers' EKS clusters did not have their IMDSv2 hop limits
set correctly, causing requests for key functionality to attempt IMDSv1 fallback and failing.

For now, re-enable IMDSv1 fallback by way of removing the explicit disabling of
`EC2MetadataEnableFallback` until better documentation, error handling, and other work
can be done to inform customers that they need to correctly set their IMDSv2 hop limits.
2024-03-14 18:12:50 +00:00
rosstimothy 1aec5414f1 Replace constants from trace with equivalents defined in teleport (#39307)
* Remove logging from circuit breaker

The logging is never output, and if it was would be very verbose.
Instead of dropping the level down to trace the logger is removed
entirely.

* Add constants from trace library

The logging functionality in trace is being removed in an upcoming
release. To prepare the logging component keys are copied from trace
into teleport.

* Convert trace.ComponentFields to teleport.ComponentFields

* Replace trace.Component with teleport.ComponentKey

* Replace trace logging constants
2024-03-14 13:04:29 +00:00
89d85656c3 Add EKS auto discovery for dynamic integration based fetchers. (#38204)
* AWSOIDC: Move enrollment of EKS clusters to the gRPC service.

* Fix after rebase.

* Add EKS auto discovery for dynamic integration based fetchers.

* Remove commented code.

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Remove unneeded code.

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>

* Add missing godoc.

* Initiate map with length.

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Fix typo in the interface name.

* Introduce iam join method for EKS enrollment.

* Correctly process DiscoveredEKSCluster in kube watcher.

* Remove remaining CreateToken related code from Discovery service.

* Change var initialization.

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Remove dev version detection for EKS enrollment.

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Revert "Introduce iam join method for EKS enrollment."

This reverts commit 0eb3f4f1226239a5d4e768ebe9129535be318ccb.

* Fix usage of a missing function.

* Refactor cluster features to be a function.

* Change discovery to use gRPC call for EKS enrollment.

* Remove unused mock.

* Correct a comment.

* Remove token creation permission from Discovery service.

* Fix after rebase.

* Improve sorting clusters by region and integration.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Return and error if cluster features are missing.

* Fix tests.

---------

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
2024-02-29 00:10:39 +00:00
75c7d01741 AWS OIDC: Move enrollment of EKS clusters to the gRPC service. (#38683)
* AWSOIDC: Move enrollment of EKS clusters to the gRPC service.

* Add missing godoc.

* Remove unneeded code.

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>

* Fix after rebase.

* Remove proxyPublicAddr field from grpc request.

* Change test address.

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Remove isCloud and enableAutoUpgrades fields from grpc request.

* Update EKS cluster name field in AWSOIDC integration

* Fix tests.

* Refactor variable initiation.

Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>

* Fix after rebase

* Remove unused code.

---------

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com>
2024-02-28 19:28:21 +00:00
Marco André Dinis dd84c87e1f AWS OIDC: CreateEICE service (#38548)
This PR creates a new method on the AWS OIDC gRPC service that deploys
multiple EC2 Instance Connect Endpoints.

This is part of a refactor that moves the API calls behind the Auth
Service.
2024-02-28 15:52:59 +00:00
Anton MiniailoandYassine Bounekhla e33746dbed Add improvements for the EKS Discover UI. (#38609)
* Add improvements for the EKS Discover UI.

* Add comment about Web UI relying on the text of an error.

* Change wording.

Co-authored-by: Yassine Bounekhla <56373201+rudream@users.noreply.github.com>

* Remove usage of negative margin.

---------

Co-authored-by: Yassine Bounekhla <56373201+rudream@users.noreply.github.com>
2024-02-27 18:04:01 +00:00
Anton Miniailo ac375d9ee4 Get kube agent chart for EKS enrollment without saving temporary files. (#38606)
* Get kube agent chart for EKS enrollment without saving temporary files.

* Return url.URL

* Make agentRepoURL to be url.URL
2024-02-26 21:46:44 +00:00
Marco André Dinis c51cebe978 AWS OIDC: DeployService service (#38511)
* AWS OIDC: DeployService service

This PR creates a new method on the AWS OIDC gRPC service that deploys
an ECS Service.

This is part of a refactor that moves the API calls behind the Auth
Service.

* add rbac test and rename teleport config string

* revert e
2024-02-23 17:43:15 +00:00
Anton Miniailo 941b8e90ce Fix logging output for teleport configure commands. (#38257)
* Fix logging output for 'teleport configure' commands.

* Change imported log package name and don't overwrite debug level.

* Use Infof() instead of Printf()

* Use InitLogger to reset loglevel

* Remove unneeded code.
2024-02-21 15:21:11 +00:00
Marco André Dinis 76e751ff07 AWS OIDC: DeployDatabaseService service (#38092)
* AWS OIDC: DeployDatabaseService implementation

This PR creates a new method on the AWS OIDC gRPC service that deploys a
database service.
The deployment logic already existed.

* review pt1
2024-02-16 11:12:12 +00:00
Marco André Dinis a2591f25d7 AWSOIDC: ListDatabases service (#37853)
* AWSOIDC: ListDatabases service

This PR implements the ListDatabases service.
The Web API will now use this service instead of calling the
GenerateAWSOIDC Token.

* log and skip instead of failing when convertion fails
2024-02-16 09:34:55 +00:00
Tiago SilvaandAnton Miniailo 2eef6d7d2c Discovery: Allow configuring AWS TAG IAM integration (#38071)
* Disovery: Allow configuring AWS TAG IAM integration

This PR allows the configuration of IAM permissions required for Access
Graph AWS Sync using Teleport OIDC integration.

Part of https://github.com/gravitational/access-graph/issues/458

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>

* handle code review suggestions

* Update lib/web/integrations_awsoidc.go

Co-authored-by: Anton Miniailo <anton@goteleport.com>

---------

Signed-off-by: Tiago Silva <tiago.silva@goteleport.com>
Co-authored-by: Anton Miniailo <anton@goteleport.com>
2024-02-14 19:16:40 +00:00
Anton Miniailo 86efc77e04 Add resiliency in accessing EKS cluster after creating access entry for it (#37958)
* Add resiliency in accessing EKS cluster after creating access entry for it

* Allow canceling the check through context.
2024-02-13 15:34:55 +00:00
Marco André Dinis a5951e5f32 External Audit Storage: fix error handling for get integration (#37898) 2024-02-08 15:35:53 +00:00
Marco André Dinis fc21ece276 AWS OIDC: remove dependency on servicecfg (#37825)
* AWS OIDC: remove dependency on servicecfg

Currently the ExternalAuditStorage methods require the `servicecfg` package
to re-use the configuration struct used in `teleport integration configure`.

We are refactoring the AWS OIDC actions to use a gRPC Service.
Importing the `sevicecfg` package makes this refactoring a bit difficult
because of a cycling dependency: `awsoidc` requires `servicecfg` which
requires `auth` which will require the `awsoidc service` which requires
the `awsoidc` package.

This PR removes the usage of the `servicecfg` package in `awsoidc` package.

* move to easconfig
2024-02-08 09:43:30 +00:00
Alan Parra 22b371f869 chore: Bump golangci-lint to v1.56.0 (#37854)
* chore: Bump golangci-lint to v1.56.0

* Use only enable linters for testifylint

* Fix various testifylint offenders

* Fix testifylint offenders in api/
2024-02-07 19:54:00 +00:00
Marco André Dinis 94d69e0e17 AWS OIDC: remove config dependency in DeployService (#37264)
* AWS OIDC: remove config dependency

Currently the DeployService and DeployDatabaseService require the
`config` package to create a `teleport.yaml` configuration that is used
to start the `teleport` process on the ECS containers.

We are refactoring the AWS OIDC actions to use a gRPC Service.
Importing the `config` package makes this refactoring a bit difficult
because of a cyclic dependency.

This PR removes the usage of the `config` package in `awsoidc` package.

* rename field name
2024-02-06 16:01:52 +00:00
Marco André Dinis d03f5962d3 AWS OIDC - Deploy ECS Service: increase number of replicas to 2 (#37508)
* AWS OIDC - Deploy ECS Service: increase number of replicas to 2

This PR sets the number of replicas to 2 when starting a Database
Service using Amazon ECS.

This increases the availability of the service.

* Add task placement strategy note for fargate compute
2024-02-06 11:50:08 +00:00
Marco André Dinis 917874b7d4 AWS OIDC: remove config dependency in ExternalAuditStorage (#37315)
* AWS OIDC: remove config dependency in ExternalAuditStorage

Currently the ExternalAuditStorage methods require the `config` package
to re-use the configuration struct used in `teleport integration configure`

We are refactoring the AWS OIDC actions to use a gRPC Service.
Importing the `config` package makes this refactoring a bit difficult
because of a cycling dependency: `awsoidc` requires `config` which
requires `auth` which will require the `awsoidc service` which requires
the `awsoidc` package.

This PR removes the usage of the `config` package in `awsoidc` package.

* rename type and godoc

* move type to servicecfg

* fix gci
2024-01-29 20:53:06 +00:00
Anton Miniailo 83033a68f3 Propagate enterprise value into the agent installed on an enrolled EKS cluser. (#37362) 2024-01-26 22:11:26 +00:00
Marco André Dinis 876362b0b1 AWSOIDC: Compute Proxy's Endpoint for issuing a token (#37253)
* AWSOIDC: Compute Proxy's Endpoint for issuing a token

Instead of receiving the issuer URL as param, use the internal state of
the proxies to fetch the public endpoint.

This deprecates the field so that old clients can still talk to the
AuthServer, but their Issuer param is ignored.

* Add single param for cached resources

* use cache for everything except keystore
2024-01-26 13:35:16 +00:00
Marco André Dinis dc6cd0d9be Move TokenLenBytes to defaults package (#37254)
Some consts in the `auth` package are used in a lot of other packages.
This increases the probality of getting a cyclic dependency error.

This PR moves some of those consts to the defaults package and updates
all the required locations of their usage.

Only one is missing in the `/e/` repo, which I'm going to open a PR for
it.
After merging, we can also remove the `lib/auth.TokenLenBytes`
2024-01-25 18:30:43 +00:00
Nic Klaassen 6be70c6374 fix EAS bootstrap script (#37068) 2024-01-24 02:26:51 +00:00
943bef63d9 Add backend code for enrolling EKS clusters through AWS OIDC integration. (#36594)
* Add backend code for listing EKS clusters through AWS OIDC integration.

* Remove leftover commented code.

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>

* Add backend code for enrolling EKS clusters through AWS OIDC integration.

* Add autoupdater installation for the cloud.

* Use awslib to get principal role arn.

* Don't use frontend to set isCloud or enable automatic upgrades.

* Use version from stable/cloud for automatic upgrades on cloud.

* Create joinTokens for enrollment on the backend and per cluster. Return resourceId per cluster.

* Return early when we know access entry is present.

* Rename kubeConfig to kubeClientGetter

* Replace ctx with the groupCtx

* Add explanatory comment to the cluster admin policy const.

* Remove unnecessary config parameters settings.

* Fix value name

* Clean up downloaded chart.

* Name enrolled EKS cluster in Teleport according to EKS discovery pattern.

* Fix lint issues.

* Add missing article.

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>

* Fix typo.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Add missing godoc.

* Fix tests.

* Add missing godocs

* Improve description of the EnrollEKSClusters function.

* Do not enable app discovery on v13 version of the chart.

* Add enrolled eks cluster arn to internal label for kube agent

* Fix typo

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Improve error message.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Improve error message.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Improve error message.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Improve error type.

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Reduce EKS join token TTL to 15 minutes.

* Increase concurrent EKS enrollment limit to 5

* Fix loopvar

Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>

* Add todo.

* Use params for installKubeAgent func and log error of chart file cleanup

* Create temp directory for each EKS enrollment and delete that directory afterwards.

* Increase join token ttl to 30 minutes.

* Return eks cluster arn when listing.

* Fix getting helm settings.

* Fix tests

* Fix imports.

---------

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>
2024-01-18 18:07:07 +00:00
Marco André Dinis bd79dd0d93 AWSOIDC Deploy EICE: allow multiple endpoints (#36570)
* AWSOIDC Deploy EICE: allow multiple endpoints

* review pt1

* remove empty line
2024-01-16 18:28:19 +00:00
Marco André Dinis ed2de124e1 List EC2 Instance Connect Endpoints: query multiple VPCs (#36558) 2024-01-15 14:23:09 +00:00
Marco André Dinis 4bb0566bc8 AWS OIDC DeployDatabaseServices - implement AutoUpgrades (#35972)
The new DeployService adds some non-determenistic logic with regards to
the deployed ECS Services.

Instead of looking for a specific ECS Service, we now iterate over all
the ECS Services of a well-known ECS Cluster (same as before) and update
the container image (as long as the tags are the Teleport ones).

Not everyone will have the new set of permissions which are created when
using the new flow.
For those situations, we keep the old behaviour where we know the
exact ECS Service name.
2024-01-15 14:07:30 +00:00
Marco André Dinis b9298a474f AWS OIDC List EC2: only ignore windows instances (#36561)
Most Linux instances have their PlatformDetails set to Linux/UNIX.
However, that's not the case for RHEL AMIs.

We were wrongly filtering those instances.

Now, instead of adding a filter to the API request, we filter on client
side and remove all the `windows` Platform.
According to AWS API:
> The platform. This value is windows for Windows instances; otherwise, it is empty.
2024-01-15 10:43:33 +00:00
Anton MiniailoandMarco André Dinis 5223000c58 Add backend code for listing EKS clusters through AWS OIDC integration. (#36489)
* Add backend code for listing EKS clusters through AWS OIDC integration.

* Remove leftover commented code.

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>

* Add godoc.

* Remove unneeded intialization of a parameter.

* Reduce nesting.

* Rename ExtraLabels to JoinLabels.

---------

Co-authored-by: Marco André Dinis <marco.dinis@goteleport.com>
2024-01-11 14:18:08 +00:00