Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jdonszelmann
Copy link

@jdonszelmann jdonszelmann commented Jan 1, 2024

There used to be a comment here

# Does this need to be configurable?

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.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants