Skip to content

Commit

Permalink
Merge pull request lsst-sqre#4063 from lsst-sqre/tickets/DM-48359
Browse files Browse the repository at this point in the history
DM-48359: Enable authentication for exposurelog, narrativelog and nightreport on USDF deployments.
  • Loading branch information
sebastian-aranda authored Jan 20, 2025
2 parents 1663179 + 1e3c576 commit 2c9912a
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
5 changes: 3 additions & 2 deletions applications/exposurelog/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
{{- if .Values.ingress.auth.enabled }}
loginRedirect: true
loginRedirect: false
scopes:
all:
any:
- "exec:internal-tools"
- "exec:notebook"
service: "exposurelog"
{{- else }}
scopes:
Expand Down
3 changes: 3 additions & 0 deletions applications/exposurelog/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ env:
value: "/var/secrets/butler/postgres-credentials.txt"
- name: PGUSER
value: "rubin"
ingress:
auth:
enabled: true
3 changes: 3 additions & 0 deletions applications/exposurelog/values-usdfprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ env:
value: "/var/secrets/butler/postgres-credentials.txt"
- name: PGUSER
value: "rubin"
ingress:
auth:
enabled: true
5 changes: 3 additions & 2 deletions applications/narrativelog/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
{{- if .Values.ingress.auth.enabled }}
loginRedirect: true
loginRedirect: false
scopes:
all:
any:
- "exec:internal-tools"
- "exec:notebook"
service: "narrativelog"
{{- else }}
scopes:
Expand Down
3 changes: 3 additions & 0 deletions applications/narrativelog/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ config:
db:
host: usdf-summitdb.slac.stanford.edu
user: usdf
ingress:
auth:
enabled: true
3 changes: 3 additions & 0 deletions applications/narrativelog/values-usdfprod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ config:
db:
host: usdf-summitdb.slac.stanford.edu
user: usdf
ingress:
auth:
enabled: true
5 changes: 3 additions & 2 deletions applications/nightreport/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ metadata:
config:
baseUrl: {{ .Values.global.baseUrl | quote }}
{{- if .Values.ingress.auth.enabled }}
loginRedirect: true
loginRedirect: false
scopes:
all:
any:
- "exec:internal-tools"
- "exec:notebook"
service: "nightreport"
{{- else }}
scopes:
Expand Down
3 changes: 3 additions & 0 deletions applications/nightreport/values-usdfdev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ config:
db:
host: usdf-summitdb.slac.stanford.edu
user: usdf
ingress:
auth:
enabled: true

0 comments on commit 2c9912a

Please sign in to comment.