This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs and samples to use CSRF_KEY and SESSION_AUTHENTICATION_KEY
- Loading branch information
1 parent
e15d920
commit 71af89a
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,11 +45,23 @@ In each space that you plan on deploying, you need to create a `user-provided-se | |
Run: | ||
|
||
```bash | ||
# For applications without New Relic monitoring | ||
cf cups dashboard-ups -p '{"CONSOLE_CLIENT_ID":"your-client-id","CONSOLE_CLIENT_SECRET":"your-client-secret", "SESSION_KEY": "a-really-long-secure-value", "SMTP_HOST": "smtp.host.com", "SMTP_PORT": "25", "SMTP_USER": "username", "SMTP_PASS": "password", "SMTP_FROM": "[email protected]"}' | ||
|
||
# For applications with New Relic monitoring | ||
cf cups dashboard-ups -p '{"CONSOLE_CLIENT_ID":"your-client-id","CONSOLE_CLIENT_SECRET":"your-client-secret","CONSOLE_NEW_RELIC_LICENSE":"your-new-relic-license", "SESSION_KEY": "a-really-long-secure-value", "SMTP_HOST": "smtp.host.com", "SMTP_PORT": "25", "SMTP_USER": "username", "SMTP_PASS": "password", "SMTP_FROM": "[email protected]"}' | ||
# Create user provided service with config | ||
# See https://github.com/18F/cg-dashboard/blob/master/helpers/env_vars.go for all env variables | ||
cf create-user-provided-service dashboard-ups -p @<(cat <<EOF | ||
{ | ||
"CONSOLE_CLIENT_ID": "your-client-id", | ||
"CONSOLE_CLIENT_SECRET": "your-client-secret", | ||
"CSRF_KEY": "$(openssl rand -hex 32)", | ||
"SESSION_AUTHENTICATION_KEY": "$(openssl rand -hex 64)", | ||
"SMTP_HOST": "smtp.host.com", | ||
"SMTP_PORT": "25", | ||
"SMTP_USER": "username", | ||
"SMTP_PASS": "password", | ||
"SMTP_FROM": "[email protected]", | ||
"CONSOLE_NEW_RELIC_LICENSE": "" | ||
} | ||
EOF | ||
) | ||
``` | ||
|
||
Create a redis service instance: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ services: | |
"credentials": { | ||
"CONSOLE_CLIENT_ID": "dashboard-local", | ||
"CONSOLE_CLIENT_SECRET": "notarealsecret", | ||
"SESSION_KEY": "notarealsessionkey", | ||
"CSRF_KEY": "notarealcsrfkey", | ||
"SESSION_AUTHENTICATION_KEY": "notarealsessionauthenticationkey", | ||
"SMTP_FROM": "[email protected]", | ||
"SMTP_HOST": "smtp.fake.com", | ||
"SMTP_PASS": "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters