Repository navigation
vector: use the system CA store for postgres, doris and mongodb_metrics - #576584
Merged
Merged
Conversation
vector uses OpenSSL with openssl-probe for most components. These already read SSL_CERT_FILE or the system bundle. Three rustls components used the compiled-in webpki-roots store instead: - postgres and doris sinks (sqlx feature tls-rustls-ring). Switch to tls-rustls-ring-native-roots, which reads the system store. - mongodb_metrics source (mongodb rustls-tls). The driver uses webpki-roots when no tlsCAFile is set. Set it from SSL_CERT_FILE, which vector sets at startup through openssl-probe. Also bump webpki-roots to 1.0.10 (0.26.1 to the 0.26.11 shim) and rustls-webpki to 0.103.16 for the copies that stay in the binary. These drop emSign ECC Root CA - G3 and block the revoked eMudhra intermediates. Part of NixOS#576544 Assisted-by: Claude Code (claude-opus-5)
nixpkgs-ci
Bot
requested review from
adamcstephens,
happysalada and
thoughtpolice
October 20, 2026 22:58
Contributor
|
Will you be submitting these upstream? |
Contributor
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-26.05
git worktree add -d .worktree/backport-576584-to-release-26.05 origin/release-26.05
cd .worktree/backport-576584-to-release-26.05
git switch --create backport-576584-to-release-26.05
git cherry-pick -x 711e2ef9e7b80cb29f293af90d9e0b8700b9fc5b |
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.
vector uses OpenSSL with openssl-probe for most components. These already read SSL_CERT_FILE or the system bundle. Three rustls components used the compiled-in webpki-roots store instead:
Also bump webpki-roots to 1.0.10 (0.26.1 to the 0.26.11 shim) and rustls-webpki to 0.103.16 for the copies that stay in the binary. These drop emSign ECC Root CA - G3 and block the revoked eMudhra intermediates.
Tested on x86_64-linux with a private test CA in SSL_CERT_FILE and local TLS servers signed by it: the old postgres sink (sslmode=verify-full) and mongodb_metrics source fail with
UnknownIssuereven with the test CA, so they ignored the system store; the new ones connect, and fail against the same servers with the normal system bundle. The OpenSSL-basedhttp_clientsource uses the system store before and after. The scanner (https://github.com/zimbatm/nix-cacert-scan) finds 151 embedded roots with emSign ECC Root CA - G3 and AAA Certificate Services before, and 117 without them after. nats over wss was not tested at runtime.Related to: #576485
Related to: #576544
Assisted-by: Claude Code (claude-opus-5)
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.