From db9869df72305995312bdd0c801bb09467e47658 Mon Sep 17 00:00:00 2001 From: florisvdg Date: Mon, 1 Apr 2019 12:56:59 +0200 Subject: [PATCH] Mention passphrase prompt in README --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 611c9cf..8c6c0af 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,7 @@ Download and extract the [latest release](https://github.com/keylockerbv/secreth ./secrethub-http-proxy -C $(cat ~/.secrethub/credential) -p 8080 ``` -If upon signup you've chosen to lock your credential with a passphrase: - -``` -./secrethub-http-proxy -C $(cat ~/.secrethub/credential) -P mycredentialpassphrase -p 8080 -``` +If upon signup you've chosen to lock your credential with a passphrase, you will get prompted for your passphrase. ### Docker @@ -60,7 +56,13 @@ You can also pass in the credential as an environment variable: docker run -p 8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethub/http-proxy ``` -If upon signup you've chosen to lock your credential with a passphrase: +If upon signup you've chosen to lock your credential with a passphrase, run the container with `-it` to get prompted for your passphrase. + +``` +docker run -it -p 8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) secrethub/http-proxy +``` + +Alternatively, you can use the `SECRETHUB_CREDENTIAL_PASSPHRASE` environment variable: ``` docker run -p 8080:8080 --name secrethub -e SECRETHUB_CREDENTIAL=$(cat $HOME/.secrethub/credential) -e SECRETHUB_CREDENTIAL_PASSPHRASE=mycredentialpassphrase secrethub/http-proxy