Skip to content

AWS OIDC: Require S3 for configure IdP Script#39113

Merged
marcoandredinis merged 1 commit into
masterfrom
marco/awsoidc-s3-idp-script
Mar 18, 2024
Merged

AWS OIDC: Require S3 for configure IdP Script#39113
marcoandredinis merged 1 commit into
masterfrom
marco/awsoidc-s3-idp-script

Conversation

@marcoandredinis
Copy link
Copy Markdown
Contributor

@marcoandredinis marcoandredinis commented Mar 8, 2024

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>

Context: #38782

@marcoandredinis marcoandredinis added no-changelog Indicates that a PR does not require a changelog entry backport/branch/v14 labels Mar 8, 2024
@github-actions github-actions Bot requested review from AntonAM and espadolini March 8, 2024 11:46
Comment thread lib/web/integrations_awsoidc.go Outdated
Comment thread lib/web/integrations_awsoidc.go Outdated
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from 40fcb1a to 07ea739 Compare March 11, 2024 10:32
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch from 6172b10 to eb12883 Compare March 11, 2024 10:36
Comment thread lib/web/oidcidp.go Outdated
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from 07ea739 to 4f90fbf Compare March 13, 2024 09:12
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch from eb12883 to f98c3df Compare March 13, 2024 09:13
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from 4f90fbf to b02f73a Compare March 14, 2024 08:58
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch 2 times, most recently from 276c121 to 07c88e9 Compare March 14, 2024 15:08
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from b02f73a to 59ae769 Compare March 15, 2024 14:34
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch from 07c88e9 to c598f7c Compare March 15, 2024 14:38
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from 59ae769 to be1db40 Compare March 15, 2024 17:25
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch from c598f7c to 0e0d837 Compare March 15, 2024 17:26
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from be1db40 to 82d0b5a Compare March 15, 2024 17:32
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch from 0e0d837 to 4c3d280 Compare March 15, 2024 17:32
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-conf-custom-idp branch from 82d0b5a to a9df6f6 Compare March 15, 2024 21:44
Base automatically changed from marco/awsoidc-conf-custom-idp to master March 15, 2024 22:28
@marcoandredinis marcoandredinis force-pushed the marco/awsoidc-s3-idp-script branch from 4c3d280 to 023afb5 Compare March 18, 2024 08:28
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/awsoidc-s3-idp-script branch from 023afb5 to 50d6323 Compare March 18, 2024 08:56
@marcoandredinis marcoandredinis added this pull request to the merge queue Mar 18, 2024
Merged via the queue into master with commit a067fde Mar 18, 2024
@marcoandredinis marcoandredinis deleted the marco/awsoidc-s3-idp-script branch March 18, 2024 09:31
@public-teleport-github-review-bot
Copy link
Copy Markdown

@marcoandredinis See the table below for backport results.

Branch Result
branch/v14 Create PR
branch/v15 Create PR

marcoandredinis added a commit that referenced this pull request Mar 18, 2024
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 added a commit that referenced this pull request Mar 18, 2024
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>
github-merge-queue Bot pushed a commit that referenced this pull request Mar 18, 2024
* 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

* 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.

* AWS OIDC: Require S3 for configure IdP Script (#39113)

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>

* update aws sdk to branch/v15
github-merge-queue Bot pushed a commit that referenced this pull request Mar 18, 2024
* 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

* 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.

* AWS OIDC: Require S3 for configure IdP Script (#39113)

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants