-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support standard PEM bundles #4
Conversation
The `shell.nix` was pinning various things like Python 3.9, specific versions of dependencies, had a reference to Python 2, was using a removed package / moved package (pre-commit) and was overriding `reuse` to inject a specific set of packages. All of this is cleaned up and the shell is now using Python 3.12 if you are using a recent Nixpkgs, at the time of writing. In addition, `pytest` and `pre-commit` are still behaving as expected. Signed-off-by: Ryan Lahfa <ryan@lahfa.xyz>
buildcatrust/certstore_output.py
Outdated
|
||
def __init__(self, fp: TextIO): | ||
self.fp = fp | ||
|
||
def output(self, cert: Optional[types.Certificate], trust: types.Trust) -> None: | ||
super().output(cert, trust) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't do anything different to the parent class; maybe just delete everything here apart from the docstring?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, thank you for taking care of it.
One more thing :) Also urgh, I should fix the cachix thing. |
Some software stack may not be able to enjoy OpenSSL specific PEM formats. To pay respect to the standard, we offer a compatible bundle output which strips all additional trust rules of a given certificate, if there's any. Tests show how this has concretely an impact over distrusted certificates, i.e. you don't see anything about it. Signed-off-by: Ryan Lahfa <ryan@lahfa.xyz>
Thank you @lukegb ! |
Feature
NixOS does not ship a cacert bundle that can be used with software stacks that does not support OpenSSL specific (non-standard) PEM format, this offers an escape hatch for such users.
shell.nix
The
shell.nix
was pinning various things like Python 3.9, specific versions of dependencies, hada reference to Python 2, was using a removed package / moved package (pre-commit) and was overriding
reuse
to inject a specific set of packages.All of this is cleaned up and the shell is now using Python 3.12 if you are using a recent Nixpkgs, at the time
of writing.
In addition,
pytest
andpre-commit
are still behaving as expected.