Skip to content

gopass show --noparsing does not work as expected unless it's forced #2737

@AnomalRoil

Description

@AnomalRoil

Summary

When using gopass show -n entry I expect my entry to be displayed exactly as is, i.e. raw bytes.
Instead it seems it's being parsed.

Steps To Reproduce

Create an entry containing:

---
key: |
  -----BEGIN OPENSSH PRIVATE KEY-----
  ...
  -----END OPENSSH PRIVATE KEY-----
user: name

and then run gopass show -n entry, it displays:

Secret: entry

key: |
user: bob
  -----BEGIN OPENSSH PRIVATE KEY-----
  ...
  ...
  -----END OPENSSH PRIVATE KEY-----

Note how the two keys are mingled?

Now run gopass show -f -n entry and it displays:

Secret: entry

---
key: |
  -----BEGIN OPENSSH PRIVATE KEY-----
  ...
  ...
  -----END OPENSSH PRIVATE KEY-----
user: bob

as expected.

(I have show.safecontent set to true, the fact -f changes the output might means it's related to that.)

Expected behavior

-n should disable parsing and dump raw bytes from the GPG decrypted file.

Environment

  • OS: Ubuntu 22.04
  • OS version: 6.5.6-76060506-generic x86_64
  • gopass Version: v1.15.11
  • Installation method: go get

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions