-
-
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 insert [name] [key] fails to handle multiline YAML entries #1940
Comments
Hmm, I don't think I've ever tried inserting multi-line keys. |
I dug into the code and it appears to be a documentation issue: gopass/pkg/gopass/secrets/yaml.go Lines 21 to 32 in 1629395
gopass/pkg/gopass/secrets/kv.go Lines 38 to 72 in 1629395
YAML format explicitly requires the "---" or it will be parsed as KV |
RELEASE_NOTES=[DOCUMENTATION] Adding documentation about YAML entries and unsafe-keys Fixes #1940 Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
RELEASE_NOTES=[DOCUMENTATION] Adding documentation about YAML entries and unsafe-keys Fixes #1940 Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
RELEASE_NOTES=[DOCUMENTATION] Adding doc about YAML entries and unsafe-keys Fixes #1940 Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
RELEASE_NOTES=[DOCUMENTATION] Adding doc about YAML entries and unsafe-keys Fixes gopasspw#1940 Signed-off-by: Yolan Romailler <anomalroil@users.noreply.github.com>
Summary
With a secret of the format:
inserting a new key will yield
gopass insert also fails to properly handle inserting multiline YAML strings
even manually adding the entries, gopass show fails to output the content:
Steps To Reproduce
pass
key1: |
text
moretext
key2: content
uname -a
Linux manjaro 5.11.19-1-MANJARO #1 SMP PREEMPT Fri May 7 17:34:25 UTC 2021 x86_64 GNU/Linux
gopass --version
gopass 1.12.6 (2021-05-11 15:27:04) go1.16.4 linux amd64
The text was updated successfully, but these errors were encountered: