Skip to content

Commit e32e4d3

Browse files
committed
Added auth for stac browser.
1 parent bb6c04a commit e32e4d3

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
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Added documentation for cloud-native bucket access [#364](https://github.com/developmentseed/eoapi-k8s/pull/364)
1111
- Removed unused testing variable and unused deploy script [#369](https://github.com/developmentseed/eoapi-k8s/pull/369)
12+
- Added auth support to STAC Browser [#376](https://github.com/developmentseed/eoapi-k8s/pull/376)
1213

1314
### Added
1415

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
@@ -488,6 +488,7 @@ browser:
488488
tag: 3.3.4
489489
ingress:
490490
enabled: true # Control ingress specifically for browser service
491+
oidcClientId: "some-client-id"
491492

492493
docServer:
493494
enabled: true

0 commit comments

Comments
 (0)