Skip to content

Commit a3acc3e

Browse files
committed
Added auth for stac browser.
1 parent d3fc17e commit a3acc3e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Added support for annotations on the PgSTAC bootstrap job via `pgstacBootstrap.jobAnnotations` in values.yaml [#381](https://github.com/developmentseed/eoapi-k8s/pull/381)
13+
- Added auth support to STAC Browser [#376](https://github.com/developmentseed/eoapi-k8s/pull/376)
1314

1415
### Fixed
1516

charts/eoapi/templates/services/browser/deployment.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
app: {{ .Release.Name }}-browser
88
gitsha: {{ .Values.gitSha }}
99
spec:
10-
replicas: {{.Values.browser.replicaCount}}
10+
replicas: {{ .Values.browser.replicaCount }}
1111
selector:
1212
matchLabels:
1313
app: {{ .Release.Name }}-browser
@@ -23,5 +23,16 @@ spec:
2323
- containerPort: 8080
2424
env:
2525
- name: SB_catalogUrl
26-
value: "{{ .Values.stac.ingress.path }}"
26+
value: "http://{{ .Values.ingress.host }}{{ .Values.stac.ingress.path }}"
27+
{{- if index .Values "stac-auth-proxy" "enabled" }}
28+
- name: SB_authConfig
29+
value: |
30+
{
31+
"type": "openIdConnect",
32+
"openIdConnectUrl": "http://{{ .Values.ingress.host }}{{ .Values.mockOidcServer.ingress.path }}/.well-known/openid-configuration",
33+
"oidcOptions": {
34+
"client_id": "{{ .Values.browser.oidcClientId | default "test-client" }}"
35+
}
36+
}
37+
{{- end }}
2738
{{- end }}

charts/eoapi/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ browser:
492492
tag: 3.3.4
493493
ingress:
494494
enabled: true # Control ingress specifically for browser service
495+
oidcClientId: "some-client-id"
495496

496497
docServer:
497498
enabled: true

0 commit comments

Comments
 (0)