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

Symlink secrets like sops-nix does? #26

Closed
cole-h opened this issue Feb 25, 2021 · 2 comments · Fixed by #27
Closed

Symlink secrets like sops-nix does? #26

cole-h opened this issue Feb 25, 2021 · 2 comments · Fixed by #27

Comments

@cole-h
Copy link
Collaborator

cole-h commented Feb 25, 2021

I think I would prefer if agenix would ln -sf /run/secrets/${name} ${path} files to their desired locations rather than mv -f them. When path is outside of /run/secrets, this means the files will not be cleaned up automatically (e.g. on reboot).

Is there a reason agenix decided not to go this route?

@ryantm
Copy link
Owner

ryantm commented Feb 25, 2021

That sounds good. I'm aware of one tool, elasticsearch, that refuses to follow symlinks for supposed security benefits, but that doesn't come close to outweighing the benefits of secret cleanup.

@cole-h
Copy link
Collaborator Author

cole-h commented Nov 20, 2021

That sounds good. I'm aware of one tool, elasticsearch, that refuses to follow symlinks for supposed security benefits, but that doesn't come close to outweighing the benefits of secret cleanup.

(For completeness sake, also documenting this here:)
In that case, you can use the brand new age.secrets.<name>.symlink = false; option!

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 a pull request may close this issue.

2 participants