Repository navigation
[26.05] awscli2: make the vendored botocore prefer the system CA bundle - #584152
Merged
Merged
Conversation
(cherry picked from commit 222a252)
(cherry picked from commit 5ee94d0)
awscli2 uses its own copy of botocore (awscli/botocore), not python3Packages.botocore. It copies the cacert bundle into awscli/botocore/cacert.pem at build time. It ignores NIX_SSL_CERT_FILE, SSL_CERT_FILE and the system store at run time. Override where() in awscli/botocore/httpsession.py so that get_cert_path() returns NIX_SSL_CERT_FILE, SSL_CERT_FILE, /etc/ssl/certs/ca-certificates.crt or /etc/ssl/cert.pem when one exists. The previous behaviour stays as the fallback. AWS_CA_BUNDLE and the ca_bundle setting still take precedence. The S3 CRT transfer client still uses DEFAULT_CA_BUNDLE (the cacert copy), because awscrt cannot read the "TRUSTED CERTIFICATE" blocks in ca-bundle.crt. Part of NixOS#576541. Assisted-by: Claude Code (claude-opus-5) (cherry picked from commit 23a59d0)
❌
|
5 of 13 tasks
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.
Clean backport of the changes in #576582. By cherry-picking all relevant patches, all patches applied cleanly.
This supersedes #580303.
Relates to #576541.
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.