From e09dfccd10fff00260daf6199f77a46dcbb50e99 Mon Sep 17 00:00:00 2001 From: michaeljguarino Date: Mon, 18 Dec 2023 10:59:52 -0500 Subject: [PATCH] add basic auth docs --- dagster/plural/docs/basic-auth.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dagster/plural/docs/basic-auth.md diff --git a/dagster/plural/docs/basic-auth.md b/dagster/plural/docs/basic-auth.md new file mode 100644 index 000000000..4f44699f0 --- /dev/null +++ b/dagster/plural/docs/basic-auth.md @@ -0,0 +1,30 @@ +## Configuring Basic Auth + +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. + +### modify context.yaml + +in the `context.yaml` file at the root of your repo, simply add: + +```yaml +configuration: + dagster: + users: + : + : +``` +you can use `plural crypto random` to generate a high-entropy password if that is helpful as well. + +### redeploy + +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: + +```sh +kubectl get pods -n dagster | grep dagster-webserver +``` + +then delete them (allowing k8s to restart) with: + +```sh +kubectl delete pod -n dagster +``` \ No newline at end of file