Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Play secret from Docker logs. #1178

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package/docker/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function usage {
--cortex-port <port> | define port to connect to Cortex (default: 9000)
--cortex-url <url> | add Cortex connection
--cortex-hostname <host>| resolve this hostname to find Cortex instances
--cortex-key <key> | define Cortex key
--cortex-key <key> | define Cortex key
_EOF_
exit 1
}
Expand Down Expand Up @@ -61,9 +61,10 @@ then
then
if test -z "$SECRET"
then
echo Using randomly generated secret.
SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1)
fi
echo Using secret: $SECRET
echo Using provided secret.
echo play.http.secret.key=\"$SECRET\" >> $CONFIG_FILE
fi

Expand Down