-
-
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
gopass show still affected by the MIME effect #1738
Comments
I am not sure about how gopass interprets this file
Should I assume that the first line is always the password and the rest behaves just like markdown frontmatter?? |
This file would be parsed as YAML with an additional non-YAML body. |
If you want to disable all formatting and not benefit from key-values and YAML parsing, you need to set the option Your first example is probably parsed as a key-value entry because of the third line which is not valid YAML. You can use also |
So it would look like this:
We don't really support having multiple YAML separators at the moment. Not sure if we want the extra hassle, since YAML might not be the most used of the formats for secrets anyway. |
Notice the expected behaviour of |
Ops! my bad. I was confused with the formatting (parsing) being the default. Probably I am very spoiled since Yekyll / Ruby got me used to think that all note/text files are just markdowns files with front matter in YAML. I've just disabled parsing because I always want Since I do not use key/value reading often Please feel free to close this issue after considering these UX concerns. I am leaving those up to the maintainers.
|
I guess you could work around that using a alias to alias Otherwise just run @dominikschulz Not sure if we want yet another config option to disable parsing upon show but still have parsing enabled when a key is set? Yeah, the YAML not rendering what is under it is a bug IMO and it should get added to the body instead of being hidden. |
Maintaining config options is very painful. Please let's try to avoid that whenever possible. Enabling parsing whenever a key is specified sounds good. Possibly with a warning. The content below YAML should go into the |
Yeah, we are only taking the data above the gopass/pkg/gopass/secrets/yaml.go Lines 123 to 147 in 99b396f
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@dominikschulz Is this "fixed" by the additional documentation around our YAML support not supporting the body below and only supporting one YAML block in #2244 ? Currently we do support:
but NOT:
nor multiple documents/nodes in one entry:
|
I think we can consider it fixed, yes. |
I tried the example from #1594
I've seen that since release 1.11.0 the file is no longer modified every time I edit, but if I dump the file to screen with
gopass show
I still get the same modificationsExpected behavior
Show should just dump the file as stored (no modifications)
Environment
The text was updated successfully, but these errors were encountered: