Repository navigation
openssl: fall back to the default profile CA bundle on Linux; prefer /etc bundle on Darwin - #570263
Conversation
2d199b9 to
5e3f70f
Compare
Review dismissed automatically
|
We already started discussing this in #472492. IMHO, I'd prefer not to do this. I like to be able to point to different CA bundles in the nix store and not a global one in /etc. |
I don't think your ability to do it with a wrapper that would set This PR is doing two behavioral changes:
(1) and (2) combined make for unified experience on both platforms:
Regardless, you can still set the above mentioned variables at will. This doesn't change. Which exact behavior of what is listed above do you find objectionable? |
Sry, misread this. The other PR was about a global config file. |
zimbatm
left a comment
There was a problem hiding this comment.
LGMT, great that this is getting fixed after so many years
5e3f70f to
b1820a3
Compare
|
@zimbatm rebased as discussed |
|
I'll add a release note for this change so there are fewer surprises. |
There was a problem hiding this comment.
Thanks for contributing to the documentation.
Follow the documentation style guide, especially:
- Show, don’t tell. Start with a minimal working example. Explain after the code.
- Avoid meta-commentary. Don’t write "This section explains how to…".
- Use present tense, imperative mood, and active voice. For example: "Run the command," not "The user should run the following command."
- Avoid vague references like "this" when the referent is unclear. Write "This command creates a folder," not "This will create a folder."
- Be direct. Avoid "should", "might", "typically", and "usually".
- Cut filler words like "simply", "just", "easily", and "basically". Use "to" instead of "in order to".
For larger changes, such as adding or removing whole sections, ask the NixOS documentation team for review.
|
One thing I'm not clear on is: do we want to see this backported? It's a behavioral change, but one that allows to avoid using the potentially insecure Nix profile bundle in particular scenarios (under sudo). (I'm talking about Darwin part of the change; Linux change doesn't have this security angle.) |
Prefer the system bundle on Linux and Darwin. Fall back to the default Nix profile only when it is absent, preserving explicit overrides and failures for unusable system bundles. This lets Git find the nix-darwin bundle when sudo clears NIX_SSL_CERT_FILE. Add Linux VM coverage for bundle selection and override precedence. This should render hacks like github.com/nix-darwin/nix-darwin/pull/1868 unnecessary. Assisted-by: Codex, GPT-6.1-Sol medium
9b7fba7 to
cc982e7
Compare
|
Not really breaking for 26.11. This can therefore be merged whenever you want :D |
reckenrode
left a comment
There was a problem hiding this comment.
Looks good for Darwin.
Prefer the system bundle on Linux and Darwin. Fall back to the default
Nix profile only when it is absent, preserving explicit overrides and
failures for unusable system bundles.
This lets Git find the nix-darwin bundle when sudo clears
NIX_SSL_CERT_FILE. Add Linux VM coverage for bundle selection and
override precedence.
This should render hacks like nix-darwin/nix-darwin#1868
unnecessary.
Demonstration of the problem:
And the profile is 1 years+ old: it was initialized when I installed Lix on this machine and since it's not managed, it retains an old bundle.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.