Skip to content

Commit

Permalink
fix: Local auth fix (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk authored Feb 5, 2025
1 parent cb10962 commit 15348d3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ dependencies:
repository: file://../wandb-base
version: 0.4.1
digest: sha256:d6b5ef46b80814179a954ed674dc248c65cdc8192ead7a11f1df3861da29feed
generated: "2025-02-04T18:10:09.463049-08:00"
generated: "2025-02-05T11:05:02.905698-06:00"
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.25.1
version: 0.25.2
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
3 changes: 3 additions & 0 deletions charts/operator-wandb/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ spec:
- name: anaconda
containerPort: 8082
protocol: TCP
- name: local
containerPort: 8083
protocol: TCP
- name: gorilla-statsd
containerPort: 8125
protocol: TCP
Expand Down
3 changes: 3 additions & 0 deletions charts/operator-wandb/charts/app/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ spec:
- port: 8082
protocol: TCP
name: anaconda
- port: 8083
protocol: TCP
name: local
selector:
{{- include "app.labels" . | nindent 4 }}
2 changes: 2 additions & 0 deletions charts/operator-wandb/templates/session-key.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ data:
# Set $gorillaSessionKey to existing secret data or generate a random one when not exists
{{- $gorillaSessionKey := (get $secretData "GORILLA_SESSION_KEY") | default (randAlphaNum 32 | b64enc) }}
GORILLA_SESSION_KEY: {{ $gorillaSessionKey | quote }}
{{- $jwkUrl := ( .Values.global.auth.jwkUrl | default (printf "http://%s-app:8083/api/jwks.json" .Release.Name)) | b64enc }}
GORILLA_AUTH_JWK_URL: {{ $jwkUrl | quote }}
11 changes: 8 additions & 3 deletions charts/operator-wandb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ global:

otel:
traces:
host: "" # defaults to the otel-daemonset service
port: 4317 # grpc default is 4317, http default is 4318
proto: "grpc" # grpc, http
# defaults to the otel-daemonset service
host: ""
# grpc default is 4317, http default is 4318
port: 4317
# grpc, http
proto: "grpc"

clickhouse:
install: false
Expand All @@ -97,6 +100,8 @@ global:

auth:
sessionLengthHours: 720
# Internal URL for the auth service should be using oidc or auth0
jwkUrl: ""
oidc:
clientId: ""
secret: ""
Expand Down

0 comments on commit 15348d3

Please sign in to comment.