Live data from Hacker News

Clever uses of pass, the Unix password manager

vitalyparnas.com

1–10 of 154 posts

Re: Clever uses of pass, the Unix password manager

#6
post #2

For the curl command though written like it won't show up in history, this will still show up in process parameters To fix this as well pass it into curl as a config via eg: curl [...] -K- <<< "--header auth:$(pass mysecret)"

curl -H/--header itself also takes a file name prefixed by @, including - for stdin. So you could go curl -H@- <<<'API-Key: Foobar', or if you need to specify multiple sensitive headers, curl -H@<(echo API-Key: Foo) -H@<(echo Pre-Shared: Bar)

Re: Clever uses of pass, the Unix password manager

#7
post #2

For the curl command though written like it won't show up in history, this will still show up in process parameters To fix this as well pass it into curl as a config via eg: curl [...] -K- <<< "--header auth:$(pass mysecret)"

And this matters a lot because history is normally only accessible to the current user (and root), but process command line arguments are normally accessible to all users.
Post reply on HN