gopass insert secret/that/exists key=value
wants to overwrite password instead of just adding new key/value pair
#1013
Labels
Milestone
Summary
When initially creating a secret with
gopass generate secret/path/site username=someuser
I properly get prompted for password parameters. When attempting to add a newkey=value
withgopass insert secret/path/site totp=totp://some/url/for/totp
it wants to overwrite the password, not simply add the key/value pair. If I had instead donegopass generate secret/path/site newkey=newvalue
I would expect it to keep the existing keys around (PATCH in REST-like terms instead of a REPLACE).I see in #503 and #192 there was some work around the Yaml parsing, one added the
---
separator that no longer appears to exist or be required? Not sure if any of those caused this weird behavior.Expected behavior
I would expect to be able to add or replace key=value information via
gopass insert
orgopass generate
(if I'm intentionally replacing a password AND maybe updating a "PIN" or something) without having togopass edit secret/path/site
and mess with the entry in a text editor.Environment
Darwin MN-C02VT1MAHTD8 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro14,3 Darwin
The text was updated successfully, but these errors were encountered: