[release/8.0] Add support for Chromium Snap cert trust #57257
Merged
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.
Backport of #57256 to release/8.0
/cc @amcasey
Add support for Chromium Snap cert trust
This adds one more well-known browser trust store location.
Description
This is a follow-up to #57108. That change didn't properly cover the Snap version of Chromium. When I was testing locally, I was launching Chromium from the command line so I could use
strace
to see how it was querying trust. It turns out that running the same exe via the command line is not equivalent to launching it via the GUI - the GUI wraps it in some sort of "confinement" that forces it to use a snap-specific trust database, rather than the one shared by regular Chromium-based browsers.Customer Impact
If you install Chrome or Edge via .deb/.rpm, the dev cert works as expected but, if you install it via snap, it will report localhost as untrusted.
The mitigation is
export DOTNET_DEV_CERTS_NSSDB_PATHS=$HOME/snap/chromium/current/.pki/nssdb
Regression?
This functionality hasn't shipped yet.
Risk
We already have a list of well-known folders - this is just one more.
Verification
CTI caught it in manual validation and I validated the fix myself. I'll let them know about the update.
Packaging changes reviewed?