-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
Feature: declarative file processing #1913
Comments
The template syntax ( |
I'm not sure if I understand what exactly you're asking for. We already have two simliar features:
Can you provide a little more context how this feature would be used and if you did consider these alternatives/why they don't work? |
It's not the gopass templates for new secrets. From my example above: Given a simple Does that help? |
Regarding the context: I'm writing configuration files that shall be reused within the IT of organizations. The files can contain secrets. And instead of sharing or checking in the resulting file with the secrets, I'd like to share the template file which can be resolved by everyone with access to the gopass password store. |
I've create a POC in Python: https://github.com/thomas-mc-work/gopasser I hope this helps to get an idea. |
Thanks, I'm still thinking about this. I think we could support that, but it's kind of a niche feature and every feature comes with some maintenance cost. So I wonder if it's really necessary to integrate this directly of if one would be better served by a different kind of integration. |
Now I finally found the project that I've seen years ago which is solving the same problem leveraging multiple backends: https://github.com/abtreece/confd Sadly, it seems to be focusing on network based services, as opposed to gopass being a local CLI application. |
This commit adds the process command to process templates into full (configuration) files. Fixes gopasspw#1913 RELEASE_NOTES=[ENHANCEMENT] Add gopass process Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds the process command to process templates into full (configuration) files. Fixes gopasspw#1913 RELEASE_NOTES=[ENHANCEMENT] Add gopass process Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds the process command to process templates into full (configuration) files. Fixes gopasspw#1913 RELEASE_NOTES=[ENHANCEMENT] Add gopass process Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds the process command to process templates into full (configuration) files. Fixes gopasspw#1913 RELEASE_NOTES=[ENHANCEMENT] Add gopass process Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This commit adds the process command to process templates into full (configuration) files. Fixes #1913 RELEASE_NOTES=[ENHANCEMENT] Add gopass process Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Awesome! |
This commit adds the process command to process templates into full (configuration) files. Fixes gopasspw#1913 RELEASE_NOTES=[ENHANCEMENT] Add gopass process Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
Summary
I'd love to be able to substitute key references in a template file using gopass.
Steps To Reproduce
You have a file like this local config file for mysql (
.mylogin.cnf
):Gopass of course needs to have these values within it's database:
Next I would process the file like this:
gopass process mysql.conf
. The output is then printed tostdout
and would look like this:This concept would allow me to share configuration file formats to others without exposing any secrets. Also it would be possible to add such files to a git repository and allow every user to resolve the values programmatically.
The text was updated successfully, but these errors were encountered: