Skip to content

[26.05] awscli2: make the vendored botocore prefer the system CA bundle - #584152

Merged
SuperSandro2000 merged 3 commits into
NixOS:release-26.05from
blitz:blitz/awscli
Nov 7, 2026
Merged

SuperSandro2000 merged 3 commits into
NixOS:release-26.05from
blitz:blitz/awscli

Conversation

@blitz

@blitz blitz commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

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

sinrohit-desco and others added 3 commits November 6, 2026 21:42
(cherry picked from commit 222a252)
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)
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. llm-assisted Contributions that include code generation with LLMs 4.workflow: backport This targets a stable branch labels Nov 6, 2026
@SuperSandroBot

Copy link
Copy Markdown

❌ nixpkgs-review result

Generated using nixpkgs-review-gha (ea7da58)

Command: nixpkgs-review pr 584152
Commit: 30cf85037e35eca3f1a1b74b8e68b471acf9db46 (subsequent changes)
Merge: ad6c1c379d9ff1f53e57343e678b221155b3e21c

Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/42312504253/attempts/1


x86_64-linux

❌ 2 packages failed to build:
  • aider-chat-full
  • python313Packages.kserve
✅ 65 packages built:
  • alpaca
  • awscli2
  • bash-my-aws
  • git-remote-codecommit
  • aider-chat-with-help
  • liquidsoap
  • libretranslate (python313Packages.libretranslate)
  • python313Packages.argostranslate
  • python313Packages.argos-translate-files
  • python313Packages.cltk
  • python313Packages.fastai
  • python313Packages.fuzzytm
  • python313Packages.gensim
  • python313Packages.kokoro
  • newelle
  • python313Packages.bpemb
  • python313Packages.llama-index
  • python313Packages.llama-index-cli
  • python313Packages.llama-index-core
  • python313Packages.llama-index-embeddings-google-genai
  • python313Packages.llama-index-embeddings-huggingface
  • python313Packages.llama-index-embeddings-ollama
  • python313Packages.llama-index-embeddings-openai
  • python313Packages.llama-index-embeddings-openai-like
  • python313Packages.llama-index-graph-stores-neo4j
  • python313Packages.llama-index-graph-stores-neptune
  • python313Packages.llama-index-legacy
  • python313Packages.llama-index-llms-ollama
  • python313Packages.llama-index-llms-openai
  • python313Packages.llama-index-llms-openai-like
  • python313Packages.llama-cloud
  • python313Packages.llama-index-readers-database
  • python313Packages.llama-index-readers-file
  • python313Packages.llama-index-readers-json
  • python313Packages.llama-index-readers-s3
  • python313Packages.llama-index-readers-twitter
  • python313Packages.llama-index-readers-txtai
  • python313Packages.llama-index-readers-weather
  • python313Packages.llama-index-vector-stores-chroma
  • python313Packages.llama-index-vector-stores-faiss
  • python313Packages.llama-index-vector-stores-google
  • python313Packages.llama-index-vector-stores-milvus
  • python313Packages.llama-index-vector-stores-postgres
  • python313Packages.llama-index-vector-stores-qdrant
  • python313Packages.llama-index-node-parser-docling
  • python313Packages.navec
  • python313Packages.slovnet
  • python313Packages.smart-open
  • snakemake (python313Packages.snakemake)
  • python313Packages.snakemake-executor-plugin-cluster-generic
  • python313Packages.snakemake-logger-plugin-rich
  • python313Packages.snakemake-storage-plugin-fs
  • python313Packages.snakemake-storage-plugin-http
  • python313Packages.snakemake-storage-plugin-s3
  • python313Packages.natasha
  • python313Packages.spacy
  • python313Packages.spacy-curated-transformers
  • python313Packages.spacy-lookups-data
  • python313Packages.spacy-transformers
  • python313Packages.textacy
  • python313Packages.textnets
  • python313Packages.translatehtml
  • python313Packages.weasel
  • python313Packages.snakemake-storage-plugin-xrootd
  • tts

@SuperSandro2000
SuperSandro2000 added this pull request to the merge queue Nov 7, 2026
Merged via the queue into NixOS:release-26.05 with commit d29105b Nov 7, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants