-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
WIP nixos/sks: init script: build from .{gpg=>pgp} files #68238
base: master
Are you sure you want to change the base?
Conversation
All current dumps seem to do .pgp, e.g. https://keys.niif.hu/keydump/, http://stueve.us/keydump/.
Found another small issue or two it would make sense to tackle in one PR, marking WIP for now. |
Initial keydump import timeouts otherwise.
@GrahamcOfBorg eval |
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.
Thanks for the fixes :)
Unfortunately this module most likely only works well for small standalone keyservers atm. #24516 might also be interesting if you're trying to setup a synchronizing keyserver.
@@ -116,7 +116,7 @@ in { | |||
${lib.optionalString (cfg.webroot != null) | |||
"ln -sfT \"${cfg.webroot}\" web"} | |||
mkdir -p dump | |||
${sksPkg}/bin/sks build dump/*.gpg -n 10 -cache 100 || true #*/ | |||
${sksPkg}/bin/sks build dump/*.pgp -n 10 -cache 100 || true #*/ |
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.
Good idea, thanks :) Should've been .pgp
in the first place.
Can you please change the suffix in the documentation of the enable
option as well?
@@ -138,6 +138,7 @@ in { | |||
User = "sks"; | |||
Group = "sks"; | |||
Restart = "always"; | |||
TimeoutStartSec = "1h"; |
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.
Did you import a complete dump from the synchronizing keyservers? And if so, how long did it take?
Maybe we should set it to an even higher value or infinity
to cover slower systems as well. It might also help to add a comment like # Increase the timeout for the initial DB build
at the end of the line to document this for the future.
Thank you for your contributions.
|
Honestly i don't run this, but at our company we do. So /cc @globin |
I marked this as stale due to inactivity. → More info |
Motivation for this change
All current dumps seem to do .pgp, e.g. https://keys.niif.hu/keydump/, http://stueve.us/keydump/.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @primeos @calbrecht @jcumming