feat(argocd-dex): add headlamp as a static OIDC client#12
Merged
Conversation
Register Headlamp as a Dex static client in the ArgoCD CR's dex.config so the existing GitHub OAuth flow can be reused for the upcoming Headlamp dashboard install — same pattern Grafana will move to next. Adds the client secret to argocd-secret as `dex.headlamp.clientSecret` (sops-encrypted via the existing AGE key). Generalizes the .sops.yaml encrypted_regex from `dex.github.client*` to `dex.<name>.client*` so any future Dex static clients pick up encryption automatically.
3 tasks
xnoto
added a commit
that referenced
this pull request
Apr 30, 2026
## Summary Install Headlamp as a Helm-based ArgoCD Application, fronted by the cluster-apps Cloudflare Tunnel at \`https://headlamp.makeitwork.cloud\`, with login flowing through ArgoCD's embedded Dex (which bridges to GitHub OAuth — same path Grafana will move to next). ### \`operators/headlamp/\` - **\`namespace.yaml\`** — headlamp ns. - **\`oidc-secret.yaml\`** — Secret named \`oidc\` in headlamp ns, sops-encrypted. Consumed by the upstream chart with \`config.oidc.secret.create=false, name=oidc\`. \`clientSecret\` matches the value in \`argocd-secret.dex.headlamp.clientSecret\` from the merged Dex static-client PR. - **\`ksops-headlamp-secrets.yaml\`** — pulls the secret in via KSOps. - **\`application.yaml\`** — ArgoCD Helm Application installing chart v0.41.0 from \`https://kubernetes-sigs.github.io/headlamp/\`. Cluster-admin RBAC (single-user home cluster), modest resource limits. - **\`kustomization.yaml\`** + add \`headlamp\` to \`operators/kustomization.yaml\`. ### \`workloads/headlamp/\` - **\`tunnel-binding.yaml\`** — TunnelBinding fronts headlamp Service on \`headlamp.makeitwork.cloud\` via the existing cluster-apps tunnel. ### \`workloads/apps/\` - **\`headlamp-app.yaml\`** + add to \`workloads/apps/kustomization.yaml\` — ArgoCD Application that syncs the workload manifests. ## Pairs with - tfroot-cloudflare #6 (merged) — CNAME for headlamp.makeitwork.cloud. - kustomize-cluster #12 (merged) — Headlamp registered as a Dex static client. ## Test plan - [x] After merge: \`kube-prometheus-stack\` operators app + \`headlamp\` operators app reach Synced + Healthy - [x] After merge: headlamp-app workloads app reaches Synced + Healthy - [x] After merge: \`https://headlamp.makeitwork.cloud\` redirects to ArgoCD's Dex GitHub login, then back to a working dashboard with cluster-admin scope 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Register Headlamp as a Dex static client in the ArgoCD CR's `dex.config`. Reuses the existing GitHub OAuth flow that ArgoCD already runs, so we don't need a second Dex install or a second GitHub OAuth app — Dex bridges GitHub OAuth → OIDC, Headlamp consumes the OIDC.
Same wiring will land for Grafana in a small follow-up PR (replacing its built-in `GF_AUTH_GITHUB_` with `GF_AUTH_GENERIC_OAUTH_` pointing at the same Dex), per the consolidation we agreed on.
Changes
Test plan
Pairs with
🤖 Generated with Claude Code