Skip to content

fix: add a private CA to the system store, not SSL_CERT_FILE alone; cache the CA layer - #959

Merged
pablodeymo merged 1 commit into
release/v2.0.0from
fix/944-private-ca-advice
Dec 2, 2026
Merged

pablodeymo merged 1 commit into
release/v2.0.0from
fix/944-private-ca-advice

Conversation

@juanbono

@juanbono juanbono commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

🗒️ Description / Motivation

Follow-up to #947, which merged before these two review findings were pushed.

What Changed

  • docs/cli.md (Web3Signer TLS paragraph): a private CA goes into the system store (on Debian/Ubuntu, the image included, a certificate under /usr/local/share/ca-certificates/ plus update-ca-certificates). SSL_CERT_FILE/SSL_CERT_DIR must name a copy of the whole store with the CA added, never the CA alone, and the paragraph says why.
  • Dockerfile: the same advice in the CA-store comment, and the ca-certificates RUN moved above the three ARGs, with a line on why it has to stay there.

Correctness / Behavior Guarantees

  • No code change. The image's contents are the same; only the layer order changes.
  • The SSL_CERT_FILE behavior described is rustls-native-certs 0.8's (load_native_certs reads only the env paths once either is set) and OpenSSL's default verify paths.

Tests Added / Run

  • None: docs and Dockerfile only. The image was not rebuilt here.

Related Issues / PRs

✅ Verification Checklist

  • Ran make fmt — n/a, no Rust change
  • Ran make lint — n/a, no Rust change
  • Ran make test — n/a, no Rust change

…ache the CA layer

`SSL_CERT_FILE` and `SSL_CERT_DIR` replace the system store rather than add
to it, and in the default image embedded ethrex's native-tls clients read
them too, with no compiled-in roots to fall back on. The docs and the
Dockerfile suggested naming a private CA with `SSL_CERT_FILE`, which, with
a file holding that CA alone, leaves ethrex unable to reach any public
endpoint: #944 again. They now say to add the CA to the system store
(`update-ca-certificates`), or to name a copy of the whole bundle with it
appended.

The `ca-certificates` RUN came after `ARG GIT_COMMIT`, `GIT_BRANCH` and
`VERSION`, which Docker passes to every later RUN as environment, so every
new commit invalidated the layer and ran apt-get again. It now comes before
them.
@pablodeymo
pablodeymo merged commit 7d5e9f2 into release/v2.0.0 Dec 2, 2026
16 of 17 checks passed
@pablodeymo
pablodeymo deleted the fix/944-private-ca-advice branch December 2, 2026 15:13
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