Skip to content

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.

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
Collaborator

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

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
Collaborator

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
Collaborator

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.

2 participants