Skip to content

[v14] AWS OIDC Integration: use S3 bucket as IdP issuer#39490

Merged
marcoandredinis merged 4 commits intobranch/v14from
marco/v14/backport_awsoidc_s3_setup
Mar 18, 2024
Merged

[v14] AWS OIDC Integration: use S3 bucket as IdP issuer#39490
marcoandredinis merged 4 commits intobranch/v14from
marco/v14/backport_awsoidc_s3_setup

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis commented Mar 18, 2024

Backport to branch/v14:

AWS SDK was upgraded because there's a new field in s3:HeadBucket that we use.
We can't upgrade individual packages because they might break with not found, ResolveEndpointV2 error.
Instead of updating everything to latest, I upgraded to v15 versions, which is a combination of versions that we know that work.

@marcoandredinis marcoandredinis changed the title [v15] AWS OIDC Integration: use S3 bucket as IdP issuer [v14] AWS OIDC Integration: use S3 bucket as IdP issuer Mar 18, 2024
@marcoandredinis marcoandredinis marked this pull request as draft March 18, 2024 10:32
@marcoandredinis marcoandredinis force-pushed the marco/v14/backport_awsoidc_s3_setup branch 10 times, most recently from d1cdfd8 to e8ea0f6 Compare March 18, 2024 14:44
@marcoandredinis marcoandredinis marked this pull request as ready for review March 18, 2024 15:13
@github-actions github-actions Bot added the audit-log Issues related to Teleports Audit Log label Mar 18, 2024
@marcoandredinis marcoandredinis added no-changelog Indicates that a PR does not require a changelog entry and removed do-not-merge labels Mar 18, 2024
@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.

* 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
This PR adds support for setting the AWS OIDC Integration with an S3
bucket as issuer.
There are two new required fields for generating the configure IdP
script:
- s3Bucket
- s3Prefix

This must form a valid URI when joining them:
s3://<s3Bucket>/<s3Prefix>
@marcoandredinis marcoandredinis force-pushed the marco/v14/backport_awsoidc_s3_setup branch from e8ea0f6 to 9455bed Compare March 18, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit-log Issues related to Teleports Audit Log backport no-changelog Indicates that a PR does not require a changelog entry size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants