feat(argo-workflows): Enable SSO through ArgoCD dex
This commit is contained in:
parent
f684123734
commit
ff4d1f2168
7 changed files with 88 additions and 48 deletions
|
|
@ -26,3 +26,4 @@ configMapGenerator:
|
|||
|
||||
patches:
|
||||
- path: patches/configmap.yaml
|
||||
- path: patches/deployments.yaml
|
||||
|
|
|
|||
|
|
@ -27,3 +27,28 @@ spec:
|
|||
remoteRef:
|
||||
key: secrets/managed/argocd/authentik-oidc-credentials
|
||||
property: clientSecret
|
||||
---
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: argo-server-sso
|
||||
namespace: argo-workflows
|
||||
spec:
|
||||
secretStoreRef:
|
||||
name: vault-wheatley
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: argo-server-sso
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/part-of: argo-workflows
|
||||
data:
|
||||
- secretKey: client-id
|
||||
remoteRef:
|
||||
key: secrets/managed/argo-workflows/dex-sso
|
||||
property: client-id
|
||||
- secretKey: client-secret
|
||||
remoteRef:
|
||||
key: secrets/managed/argo-workflows/dex-sso
|
||||
property: client-secret
|
||||
|
|
|
|||
|
|
@ -23,6 +23,12 @@ data:
|
|||
- profile
|
||||
- email
|
||||
- groups
|
||||
staticClients:
|
||||
- name: Argo Workflows
|
||||
id: argo-workflows-sso
|
||||
redirectURIs:
|
||||
- https://workflows.peterg.nl/oauth2/callback
|
||||
secretEnv: ARGO_WORKFLOWS_SSO_CLIENT_SECRET
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
|
|
|
|||
16
k8s-peterg/argocd/patches/deployments.yaml
Normal file
16
k8s-peterg/argocd/patches/deployments.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: argocd-dex-server
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: dex
|
||||
env:
|
||||
- name: ARGO_WORKFLOWS_SSO_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: argo-workflows-sso
|
||||
key: client-secret
|
||||
Loading…
Add table
Add a link
Reference in a new issue