my-homelab-configs/infra/dex/README.md

44 lines
1.4 KiB
Markdown

# Dex SSO
Dex is the homelab's lightweight OIDC provider for services that only need a
repeatable login flow.
Jeannie renders the Dex config from the SOPS-encrypted secret file and deploys
the Compose stack:
```sh
./jeannie dex-secret ensure
./jeannie deploy-dex
./jeannie sso apply
```
Public issuer:
```text
https://auth.lab2025.duckdns.org/
```
Managed OIDC clients:
- Grafana: `https://grafana.lab2025.duckdns.org/login/generic_oauth`
- Gitea: `https://lab2025.duckdns.org/git/user/oauth2/dex/callback`
- Argo CD: `https://argocd.lab2025.duckdns.org/auth/callback`
`./jeannie sso apply` creates an Argo CD client secret in the encrypted Dex
secret file when needed, installs the corresponding Kubernetes secret, and
configures the platform chart. Back up and commit the updated encrypted file
so the client secret survives a rebuild. Argo CD SSO users receive its default
read-only role; the existing local administrator remains available. This flow
requires a working Kubernetes API and an active Dex service.
n8n has its own user accounts; configuring an ingress login alone would not
replace them. Native n8n OIDC depends on its supported license and must be
configured in n8n. Application API tokens and the deliberately vulnerable
security-lab application are not interactive Dex clients.
The encrypted Dex secret is expected at:
```text
apps/dex/dex.secret.yaml
```