Skip to content

Rename daemon_credential to credential_daemon; add optional socket_path - #3882

Draft
GarrettBeatty wants to merge 2 commits into
boto:feat/credential-daemon-providerfrom
GarrettBeatty:credential-daemon-key-rename
Draft

GarrettBeatty wants to merge 2 commits into
boto:feat/credential-daemon-providerfrom
GarrettBeatty:credential-daemon-key-rename

Conversation

@GarrettBeatty

@GarrettBeatty GarrettBeatty commented Nov 20, 2026 •

Copy link
Copy Markdown

This updates the credential daemon provider to the latest shared credential daemon settings:

  • The shared config key is now credential_daemon (previously daemon_credential). No alias, since the provider hasn't shipped.
  • CredentialDaemonProvider takes an optional socket_path, checked before AWS_CREDENTIAL_DAEMON_SOCKET. It applies only if it's an absolute path (empty or relative counts as unset), and if nothing is listening there the provider raises NOT_RUNNING without trying another location.
  • The shared test cases are updated; the cases that apply only to JVM SDKs (sysprop-*) are skipped.
  • The docs link now points to the AWS CLI User Guide's credential daemon page.

Tests: python -m pytest tests/unit/test_credentials.py tests/unit/test_tokens.py passes (404 passed, 24 skipped, 3 xfailed); ruff check and ruff format --check are clean.

Update the credential daemon provider to the latest shared settings:

* The shared config key is now credential_daemon. There is no alias
  for daemon_credential, since the provider hasn't shipped.
* CredentialDaemonProvider takes an optional socket_path, checked
  before AWS_CREDENTIAL_DAEMON_SOCKET. An empty or relative path is
  ignored, and a failed connection to it doesn't fall back.
* Update the shared test cases and skip the ones that apply only to
  other SDKs.
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.

1 participant