Skip to content

Commit 42c4ab1

Browse files
feat: Upgrade retool, fix dagster oidc setup (#891)
* Upgrade retool, fix dagster oidc setup We need to get retool onto latest, and realized dagster isn't using the current reusable oidc config (which makes basic auth nontrivial to configure), so fixing that as well. * add basic auth docs
1 parent 1231cdc commit 42c4ab1

File tree

12 files changed

+71
-65
lines changed

12 files changed

+71
-65
lines changed

dagster/helm/dagster/Chart.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ dependencies:
22
- name: postgres
33
repository: https://pluralsh.github.io/module-library
44
version: 0.1.16
5+
- name: oidc-config
6+
repository: https://pluralsh.github.io/module-library
7+
version: 0.1.6
58
- name: dagster
69
repository: https://dagster-io.github.io/helm
710
version: 1.5.4
@@ -11,5 +14,5 @@ dependencies:
1114
- name: test-base
1215
repository: https://pluralsh.github.io/module-library
1316
version: 0.1.10
14-
digest: sha256:429db54a06ff1d43d546fb5b8da1534e7f06f12a0e408a83e146222eb2585cbb
15-
generated: "2023-10-20T10:53:15.243597+02:00"
17+
digest: sha256:711eb99a3aa598dc5755698003710c6e4f175f99cfbf68589e27fbb19ef1a6b0
18+
generated: "2023-12-18T10:52:48.079022-05:00"

dagster/helm/dagster/Chart.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ apiVersion: v2
22
name: dagster
33
description: A Helm chart for Kubernetes
44
type: application
5-
version: 0.1.46
5+
version: 0.1.47
66
appVersion: 1.5.4
77
dependencies:
88
- name: postgres
99
version: 0.1.16
1010
repository: https://pluralsh.github.io/module-library
11+
- name: oidc-config
12+
version: 0.1.6
13+
repository: https://pluralsh.github.io/module-library
14+
condition: oidc-config.enabled
1115
- name: dagster
1216
version: 1.5.4
1317
repository: https://dagster-io.github.io/helm
2.09 KB
Binary file not shown.

dagster/helm/dagster/templates/oidc.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

dagster/helm/dagster/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
global:
22
serviceAccountName: dagster
33

4+
oidc-config:
5+
enabled: false
6+
service:
7+
name: dagster-oauth2-proxy
8+
selector:
9+
app.kubernetes.io/instance: dagster
10+
component: dagster-webserver
11+
secret:
12+
env:
13+
OAUTH2_PROXY_UPSTREAM_TIMEOUT: '120s'
14+
15+
416
postgres:
517
team: plural
618
user: dagster

dagster/helm/dagster/values.yaml.tpl

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,19 @@ postgres:
1212
password: {{ $postgresPwd }}
1313

1414
{{ if .OIDC }}
15-
oidcProxy:
15+
{{ $prevSecret := dedupe . "dagster.oidcProxy.cookieSecret" (randAlphaNum 32) }}
16+
oidc-config:
1617
enabled: true
17-
upstream: http://localhost:80
18-
issuer: {{ .OIDC.Configuration.Issuer }}
19-
clientID: {{ .OIDC.ClientId }}
20-
clientSecret: {{ .OIDC.ClientSecret }}
21-
cookieSecret: {{ dedupe . "dagster.oidcProxy.cookieSecret" (randAlphaNum 32) }}
18+
secret:
19+
name: dagster-proxy-config
20+
issuer: {{ .OIDC.Configuration.Issuer }}
21+
clientID: {{ .OIDC.ClientId }}
22+
clientSecret: {{ .OIDC.ClientSecret }}
23+
cookieSecret: {{ dedupe . "dagster.oidc-config.secret.cookieSecret" $prevSecret }}
24+
{{ if .Values.users }}
25+
users:
26+
{{ toYaml .Values.users | nindent 4 }}
27+
{{ end }}
2228
{{ end }}
2329

2430
dagster:

dagster/plural/docs/basic-auth.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Configuring Basic Auth
2+
3+
Dagster's api and web interface is not authenticated by default. We provide an oauth proxy by default to grant some security to your dagster install, but in order to integrate with tools like airflow, you'll likely want a means to authenticate with static creds. That's where basic auth can be very useful. The process is very simple.
4+
5+
### modify context.yaml
6+
7+
in the `context.yaml` file at the root of your repo, simply add:
8+
9+
```yaml
10+
configuration:
11+
dagster:
12+
users:
13+
<name>: <password>
14+
<name2>: <password2>
15+
```
16+
you can use `plural crypto random` to generate a high-entropy password if that is helpful as well.
17+
18+
### redeploy
19+
20+
Simply run `plural build --only dagster && plural deploy --commit "enabling basic auth"` to wire in the credentials to our oauth proxy. Occasionally you need to restart the web pods to get it to take, you can find them with:
21+
22+
```sh
23+
kubectl get pods -n dagster | grep dagster-webserver
24+
```
25+
26+
then delete them (allowing k8s to restart) with:
27+
28+
```sh
29+
kubectl delete pod <name> -n dagster
30+
```

retool/helm/retool/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ dependencies:
44
version: 0.1.5
55
- name: retool
66
repository: https://charts.retool.com
7-
version: 6.0.2
8-
digest: sha256:64e43f4c30b1d885101d9c50fe2f314e54f86d33e555ba6df3d9b90dda8784d4
9-
generated: "2023-09-26T12:08:59.73891-04:00"
7+
version: 6.0.11
8+
digest: sha256:c182bac59d78a9f260acb187063a7ffbfff0b887fc81a383959c88b22a03e337
9+
generated: "2023-12-18T10:33:05.569756-05:00"

retool/helm/retool/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ apiVersion: v2
22
name: retool
33
description: helm chart for retool
44
type: application
5-
version: 0.1.7
6-
appVersion: "v3.12.2"
5+
version: 0.1.8
6+
appVersion: "v3.24.1"
77
dependencies:
88
- name: postgres
99
version: 0.1.5
1010
repository: https://pluralsh.github.io/module-library
1111
- name: retool
12-
version: 6.0.2
12+
version: 6.0.11
1313
repository: https://charts.retool.com
92.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)