feat: add OIDC credential auto-discovery#276
Open
cloudsmith-iduffy wants to merge 2 commits intoiduffy/credential-provider-chainfrom
Open
feat: add OIDC credential auto-discovery#276cloudsmith-iduffy wants to merge 2 commits intoiduffy/credential-provider-chainfrom
cloudsmith-iduffy wants to merge 2 commits intoiduffy/credential-provider-chainfrom
Conversation
595f343 to
267a002
Compare
fd065ae to
8b57884
Compare
267a002 to
34c3c6d
Compare
8b57884 to
0b0445c
Compare
34c3c6d to
62358e8
Compare
0b0445c to
987c32f
Compare
4586a50 to
603470a
Compare
987c32f to
65d8c53
Compare
603470a to
ea65f83
Compare
65d8c53 to
646c50a
Compare
ea65f83 to
d47d674
Compare
646c50a to
5c2b23d
Compare
6d0be0f to
0070269
Compare
6e1792c to
8862812
Compare
0070269 to
97c2c36
Compare
368db92 to
a60887d
Compare
6d3bf75 to
757e6e3
Compare
Add AWS OIDC support as the final provider in the credential chain
(Keyring → CLIFlag → OIDC). When CLOUDSMITH_ORG and CLOUDSMITH_SERVICE_SLUG
are set, the CLI auto-detects the CI/CD environment, retrieves a vendor
OIDC JWT via STS GetWebIdentityToken, and exchanges it for a short-lived
Cloudsmith API token.
- AWS detector with boto3 session reuse and default audience ('cloudsmith')
- Token cache (keyring with filesystem fallback) checked before detection
- OIDC token exchange against POST /openid/{org}/
- CLI options: --oidc-org, --oidc-service-slug, --oidc-audience,
--oidc-discovery-disabled
- Optional dependency: pip install cloudsmith-cli[aws]
- Warning-level logs on OIDC failures for CI/CD debuggability
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
04708a3 to
6ac94b8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new OIDC credential provider to the credential chain that
automatically detects CI/CD environments, retrieves a vendor OIDC JWT,
and exchanges it for a short-lived Cloudsmith API token.
Key changes:
awsextra)whoamicommand updated to display OIDC auth source