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
This allows for a smaller agent executable
that uses less (locked) memory.
Refactor the package `pago` into a number of packages
to enable separating the agent.
Stop locking memory in the main pago executable
when contacting the agent.
It potentially confuses the user's security expectations
because operations without an agent don't do it.
v0.10.0
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ Once Go is installed on your system, run the following command:
68
68
69
69
```
70
70
go install dbohdan.com/pago/cmd/pago@latest
71
+
go install dbohdan.com/pago/cmd/pago-agent@latest
71
72
```
72
73
73
74
Shell completion files for Bash and fish are available in [`completions/`](completions/).
@@ -185,6 +186,11 @@ pago show foo/bar
185
186
# Start manually.
186
187
pago agent start
187
188
189
+
# By default, the agent locks its memory to prevent secrets from being written to swap.
190
+
# You may need to run `ulimit -l 100000` to let it lock enough memory.
191
+
# Alternatively, you can disable this feature with the flag `--no-mlock`.
192
+
pago agent start --no-mlock
193
+
188
194
# Run without an agent.
189
195
pago -s '' show foo/bar
190
196
@@ -194,6 +200,8 @@ pago agent stop
194
200
195
201
### Environment variables
196
202
203
+
-`PAGO_AGENT`:
204
+
The agent executable path
197
205
-`PAGO_CLIP`:
198
206
The command to use to copy the password to the clipboard.
199
207
The default differs by platform.
@@ -208,6 +216,9 @@ pago agent stop
208
216
Whether to use Git
209
217
-`PAGO_LENGTH`:
210
218
The default length of random passwords
219
+
-`PAGO_MLOCK`:
220
+
Whether the agent should lock its memory using [mlockall(2)](https://pubs.opengroup.org/onlinepubs/9799919799/functions/mlockall.html) to prevent secrets from being written to swap.
221
+
`0` to disable.
211
222
-`PAGO_PATTERN`:
212
223
The default character pattern (regular expression) for random passwords
0 commit comments