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

Maintain secret structure when parsing #2433

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

dominikschulz
Copy link
Member

This commit introduces a new KV secret type ("AKV") that fully maintains the secret format when parsing. As such it obsoletes the old KV and Plain formats and the need for the core.parsing option.

Fixes #2431

RELEASE_NOTES=[ENHANCEMENT] Maintain secret structure when parsing

Signed-off-by: Dominik Schulz dominik.schulz@gauner.org

This commit introduces a new KV secret type ("AKV") that fully maintains
the secret format when parsing. As such it obsoletes the old KV and
Plain formats and the need for the core.parsing option.

Fixes gopasspw#2431

RELEASE_NOTES=[ENHANCEMENT] Maintain secret structure when parsing

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
internal/action/copy_test.go Show resolved Hide resolved
internal/action/edit.go Outdated Show resolved Hide resolved
internal/action/insert_test.go Show resolved Hide resolved
internal/action/insert_test.go Show resolved Hide resolved
internal/action/otp_test.go Outdated Show resolved Hide resolved
tests/insert_test.go Show resolved Hide resolved
tests/insert_test.go Outdated Show resolved Hide resolved
pkg/gopass/secrets/secparse/parse.go Show resolved Hide resolved
pkg/gopass/secrets/akv.go Show resolved Hide resolved
Co-authored-by: Yolan Romailler <AnomalRoil@users.noreply.github.com>
@dominikschulz
Copy link
Member Author

dominikschulz commented Dec 1, 2022

So let me bring back the -n flag later. That sounds like a reasonable compromise.

Any other major concerns @AnomalRoil ?

pkg/gopass/secrets/akv.go Outdated Show resolved Hide resolved
pkg/gopass/secrets/akv.go Outdated Show resolved Hide resolved
This brings back the noparsing flag since we need this to cover some
corners cases.

RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
@dominikschulz
Copy link
Member Author

Thanks a lot. I think it does indeed make sense to keep the -n option.

@dominikschulz dominikschulz merged commit 1e7a6b1 into gopasspw:master Dec 1, 2022
@dominikschulz dominikschulz deleted the fix/issue-2431 branch December 1, 2022 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code hygiene
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite KV secrets to retain input data as much as possible
2 participants