You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands/show.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,6 @@ The secrets are split into 3 categories:
78
78
will be parsed into (with `safecontent` enabled):
79
79
```
80
80
and: the keys are separated from their value by :
81
-
password: ******
82
81
where: the first line is the password
83
82
84
83
@@ -103,11 +102,30 @@ The secrets are split into 3 categories:
103
102
bill-to: map[family:Doe given:Bob]
104
103
date: 2001-01-23 00:00:00 +0000 UTC
105
104
invoice: 83
106
-
password: *****
107
105
ship-to: map[family:Doe given:Bob]
108
106
```
109
107
Note how the `0123` is interpreted as octal for 83. If you want to store a string made of digits such as a numerical
110
108
username, it should be enclosed in string delimiters: `username: "0123"` will always be parsed as the string `0123`
111
109
and not as octal.
112
110
111
+
Both the key-value and the YAML format support so-called "unsafe-keys", which is a key-value that allows you to specify keys that should be hidden when using `gopass show` with `gopass config safecontent` set to true.
112
+
E.g:
113
+
```
114
+
supersecret
115
+
---
116
+
age: 27
117
+
secret: The rabbit outran the tortoise
118
+
name: John Smith
119
+
unsafe-keys: age,secret
120
+
```
121
+
will display (with safecontent enabled):
122
+
```
123
+
age: *****
124
+
name: John Smith
125
+
secret: *****
126
+
unsafe-keys: age,secret
127
+
128
+
```
129
+
unless it is called with `gopass show -n` that would disable parsing of the body, but still hide the password, or `gopass show -f` that would show everything that was hidden, including the password.
130
+
113
131
Notice that if the option `parsing` is disabled in the config, then all secrets are handled as plain secrets.
Note that YAML entries currently support only one YAML block and **must start with the separator**`---` after the password and body text, if any. We do not support comments directly after the separator.
410
+
396
411
Please note that gopass will try to leave your secret as is whenever possible,
397
412
but as soon as you mutate the YAML content through gopass, i.e. `gopass insert secret key`,
398
-
it will employ an YAML marshaler that may alter the order and escaping of your
413
+
it will employ a YAML marshaler that may alter the order and escaping of your
399
414
entries.
400
415
416
+
See also [gopass show doc entry](/docs/commands/show.md#parsing-and-secrets) for more information about parsing and how to disable it.
417
+
401
418
### Edit the Config
402
419
403
420
gopass allows editing the config from the command-line. This is similar to how git handles config changes through the command-line. Any change will be written to the configured gopass config file.
0 commit comments