Skip to content

Commit 5405723

Browse files
committed
Add token encryption and origin for GCP address.
[skip ci]
1 parent 985799f commit 5405723

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CITATION.cff

Whitespace-only changes.

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ The dashboard can be run locally using:
183183
If you want to test OAuth, you need to export the following env variables:
184184

185185
export PANEL_OAUTH_REDIRECT_URI=http://localhost:5006/app
186-
export PANEL_OAUTH_KEY=[VALUE IN GCP]
187-
export PANEL_OAUTH_SECRET=[VALUE IN GCP]
186+
export PANEL_OAUTH_KEY=[VALUE IN GCP Secret Manager]
187+
export PANEL_OAUTH_SECRET=[VALUE IN GCP Secret Manager]
188+
export PANEL_OAUTH_ENCRYPTION=[VALUE IN GCP Secret Manager]
188189

189190
Use the CLI tool `direnv` for convenience. Then you can serve with
190191
OAuth support:

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ CMD ["panel", "serve", "panel/app.py", \
4242
"--num-procs", "2", \
4343
"--allow-websocket-origin", "simdec.io", \
4444
"--allow-websocket-origin", "www.simdec.io", \
45+
"--allow-websocket-origin", "https://simdec-panel-h6musew72q-lz.a.run.app", \
4546
"--cookie-secret", "panel_cookie_secret_oauth", \
4647
"--logout-template", "panel/logout.html", \
4748
"--oauth-provider", "google", \

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ production: publish-production
120120
--set-secrets=PANEL_OAUTH_REDIRECT_URI=PANEL_OAUTH_REDIRECT_URI:latest \
121121
--set-secrets=PANEL_OAUTH_KEY=PANEL_OAUTH_KEY:latest \
122122
--set-secrets=PANEL_OAUTH_SECRET=PANEL_OAUTH_SECRET:latest \
123+
--set-secrets=PANEL_OAUTH_ENCRYPTION=PANEL_OAUTH_ENCRYPTION:latest \
123124
--allow-unauthenticated \
124125
--session-affinity \
125126
--timeout=60m \

0 commit comments

Comments
 (0)