Skip to content

feat: Credential daemon provider - #3498

Draft
sichanyoo wants to merge 6 commits into
version-3from
feat/credential-daemon-provider
Draft

sichanyoo wants to merge 6 commits into
version-3from
feat/credential-daemon-provider

Conversation

@sichanyoo

Copy link
Copy Markdown
Contributor

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

  1. To make sure we include your contribution in the release notes, please make sure to add description entry for your changes in the "unreleased changes" section of the CHANGELOG.md file (at corresponding gem). For the description entry, please make sure it lives in one line and starts with Feature or Issue in the correct format.

  2. For generated code changes, please checkout below instructions first:
    https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md

Thank you for your contribution!

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Detected 2 possible performance regressions:

  • aws-sdk-cloudwatch.client_mem_allocated - z-score regression: 0.74 -> 0.76. Z-score: 30.67
  • aws-sdk-cloudwatchlogs.client_mem_allocated - z-score regression: 0.74 -> 0.76. Z-score: 29.51

@ashishdhingra
ashishdhingra self-requested a review November 18, 2026 00:36
@boblodgett
boblodgett removed their request for review November 18, 2026 00:37
include CredentialProvider
include RefreshingCredentials

CREDENTIAL_DAEMON_DOC = 'https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-credential-daemon.html'

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.

Nit: this page doesn't exist yet. It currently redirects to the CLI user guide's home page, and the SEP still lists <CREDENTIAL_DAEMON_DOC> as a placeholder with no page. It's in every error message and in README.md. Can we confirm the CLI docs will publish it at this URL before release, or leave the link out until it exists? The .NET PR uses the same link.

end
@connect_timeout = timeout_option(options, :connect_timeout, DEFAULT_CONNECT_TIMEOUT)
@call_timeout = timeout_option(options, :call_timeout, DEFAULT_CALL_TIMEOUT)
@async_refresh = false

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.

Nit: is turning off async refresh intentional? With it off, only the 5-minute sync window applies, so a call near expiry blocks on the daemon. ProcessCredentials does the same, so this may be on purpose; the SEP only asks for the existing refresh code and default windows.

…3507)

This updates the credential daemon provider to the latest shared
settings:
- The shared config key is now `credential_daemon` (previously
`daemon_credential`). No alias, since the provider hasn't shipped.
- Optional `socket_path:` on `Aws::CredentialDaemonCredentials.new`,
checked before `AWS_CREDENTIAL_DAEMON_SOCKET`. An empty or relative path
counts as unset, and a failed dial doesn't fall back to another
location.
- Test-case fixtures updated; the runner skips cases whose `appliesTo`
doesn't include `ruby`.
- The docs link now points to the AWS CLI User Guide's credential daemon
page.

Tests: `bundle exec rspec spec/aws/credential_daemon_credentials_spec.rb
spec/aws/credential_provider_chain_spec.rb spec/aws/ini_parser_spec.rb
spec/aws/shared_config_spec.rb` in `gems/aws-sdk-core` passes (179
examples, 0 failures, 2 pending as before).
@dscpinheiro
dscpinheiro marked this pull request as draft November 23, 2026 17:38
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.

5 participants