Re-enable dex

This commit is contained in:
Martin McCaffery 2026-01-29 11:43:51 +01:00
parent 0effbce5cf
commit 7eb0cdff9d
Signed by: martin.mccaffery
GPG key ID: 7C4D0F375BCEE533
2 changed files with 39 additions and 43 deletions

View file

@ -5,18 +5,16 @@ configs:
params:
server.insecure: true
cm:
# This code never quite worked, always led to 503 errors
# In theory it allows access to ArgoCD via OIDC through Forgejo
# oidc.config: |
# name: FORGEJO
# issuer: https://{{{ .Env.DOMAIN_DEX }}}
# clientID: controller-argocd-dex
# clientSecret: $dex-argo-client:clientSecret
# requestedScopes:
# - openid
# - profile
# - email
# - groups
oidc.config: |
name: FORGEJO
issuer: https://{{{ .Env.DOMAIN_DEX }}}
clientID: controller-argocd-dex
clientSecret: $dex-argo-client:clientSecret
requestedScopes:
- openid
- profile
- email
- groups
application.resourceTrackingMethod: annotation
timeout.reconciliation: 60s
resource.exclusions: |

View file

@ -1,31 +1,29 @@
# NOTE Dex is disabled as it never quite worked, and was taking up pods which caused us to hit node capacity.
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: dex
# namespace: argocd
# labels:
# env: dev
# spec:
# project: default
# syncPolicy:
# automated:
# selfHeal: true
# syncOptions:
# - CreateNamespace=true
# retry:
# limit: -1
# destination:
# name: in-cluster
# namespace: dex
# sources:
# - repoURL: https://charts.dexidp.io
# chart: dex
# targetRevision: 0.23.0
# helm:
# valueFiles:
# - $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/dex/values.yaml
# - repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
# targetRevision: HEAD
# ref: values
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: dex
namespace: argocd
labels:
env: dev
spec:
project: default
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
retry:
limit: -1
destination:
name: in-cluster
namespace: dex
sources:
- repoURL: https://charts.dexidp.io
chart: dex
targetRevision: 0.23.0
helm:
valueFiles:
- $values/{{{ .Env.CLIENT_REPO_ID }}}/{{{ .Env.DOMAIN }}}/stacks/core/dex/values.yaml
- repoURL: https://{{{ .Env.CLIENT_REPO_DOMAIN }}}/{{{ .Env.CLIENT_REPO_ORG_NAME }}}
targetRevision: HEAD
ref: values