feat(forgejo): self-hosted forge with ArgoCD-Dex OIDC#28
Merged
Conversation
Forgejo deployed via the upstream Helm chart at code.forgejo.org/forgejo-helm,
sized for a single-user instance (1× pod, 20 GiB persistent volume, SQLite by
default). Authentication is delegated to ArgoCD's embedded Dex via an OIDC
auth source ("dex"); local password registration is disabled.
bootstrap/argocd-config.yaml — register `forgejo` as a Dex static client with
redirectURI https://forgejo.makeitwork.cloud/user/oauth2/dex/callback.
bootstrap/secrets/github-oauth-secret.yaml — add encrypted
dex.forgejo.clientSecret to argocd-secret.
operators/forgejo/oidc-secret.yaml — paired stringData keys (key/secret)
the Helm chart's add-oauth init container reads via existingSecret.
operators/forgejo/application.yaml — Helm Application for the chart with:
- persistence 20 GiB
- gitea.oauth[] entry for the Dex auth source
- ALLOW_ONLY_EXTERNAL_REGISTRATION=true so OIDC is the only sign-up path
- Public ROOT_URL/DOMAIN; SSH disabled (HTTPS-only git)
- Modest resources for a home cluster
operators/forgejo/tunnel-binding.yaml — TunnelBinding fronts the
forgejo-http Service on forgejo.makeitwork.cloud via the cluster-apps tunnel.
Pairs with tfroot-cloudflare PR adding the CNAME.
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
Self-hosted Forgejo via the upstream Helm chart. Auth delegated to ArgoCD's embedded Dex (one IdP, one GitHub OAuth app) — same pattern as Headlamp / Grafana. SSH-over-tunnel deferred; HTTPS-only git for now.
Defaults chosen (per the sketch)
Layout
Pairs with
Test plan
Follow-ups
🤖 Generated with Claude Code