Skip to content

Add credential daemon credential provider - #3876

Open
alexgromero wants to merge 4 commits into
developfrom
feat/credential-daemon-provider
Open

alexgromero wants to merge 4 commits into
developfrom
feat/credential-daemon-provider

Conversation

@alexgromero

@alexgromero alexgromero commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a credential provider that gets temporary credentials from a local credential daemon. A profile opts in by setting daemon_credential = <name> in the shared config file, and botocore requests that credential from the daemon over a Unix domain socket.

Changes

  • Adds CredentialDaemonProvider to the default chain, ahead of the other profile providers. It also works for profiles used as a source_profile.
  • Finds the daemon's socket through AWS_CREDENTIAL_DAEMON_SOCKET or $HOME/.aws/credential-daemon.sock.
  • Addx CredentialDaemonError, whose code attribute (for example NOT_RUNNING or REAUTH_REQUIRED) lets callers handle failures without parsing the message.
  • Adds the CREDENTIAL_DAEMON user agent feature ID.
  • Adds tests, including the shared credential daemon test cases.

Notes

  • daemon_credential is only read from the config file. A daemon profile doesn't fall back to its other credential settings.
  • For bearer tokens, a daemon-backed SSO profile is treated as having no sso_session, so later token providers still run.
  • Unix domain sockets are required, so Windows raises UNSUPPORTED_PLATFORM.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@alexgromero
alexgromero requested a review from a team as a code owner November 16, 2026 21:46

@kuhe kuhe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can approve after the placeholder fills

Comment thread botocore/credentials.py Resolved
Comment thread botocore/credentials.py Resolved
Comment thread botocore/credentials.py Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants