-
Notifications
You must be signed in to change notification settings - Fork 155
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
Make symlink path configurable #461
base: master
Are you sure you want to change the base?
Conversation
@@ -19,7 +19,7 @@ let | |||
type = types.str; | |||
default = config._module.args.name; | |||
description = '' | |||
Name of the file used in /run/secrets | |||
Name of the file used in /run/secrets (or your configured symlinkPath) |
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.
Name of the file used in /run/secrets (or your configured symlinkPath) | |
Name of the file used in /run/secrets or your configured symlinkPath |
defaultText = "/run/secrets-for-users/$name when neededForUsers is set, /run/secrets/$name when otherwise."; | ||
description = '' | ||
Path where secrets are symlinked to. | ||
If the default is kept no symlink is created. | ||
If cfg.symlinkPath is set, /run/secrets will become that path |
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.
If cfg.symlinkPath is set, /run/secrets will become that path | |
If `sops.symlinkPath` is set, `/run/secrets` is that path |
I am not sure if I understand this description correct
type = types.str; | ||
default = "/run/secrets.d"; | ||
description = '' | ||
The location where the secrets are stored. This is then symlinked to cfg.SymlinkPath (default: /run/secrets) |
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.
The location where the secrets are stored. This is then symlinked to cfg.SymlinkPath (default: /run/secrets) | |
The location where the secrets are stored. This is symlinked to sops.SymlinkPath which defaults to `/run/secrets`. |
There used to be a comment here
sops-nix/modules/sops/default.nix
Line 121 in cfdbaf6
asking whether this needed to be configurable? Well, I needed it to be configurable. So I made it so. I thought I'd contribute the change upstream. What do you think?
I'm sorry, I alro ran autoformat on the file. Maybe that's nice to do on the entire project, though I can undo it if you really want to.
Oh, and feel free to squash. The separate commits don't make that much sense.