Skip to content

Commit

Permalink
Configure Github SSO login for ArgoCD
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 15, 2023
1 parent 5c42015 commit 50a627f
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
certs
spicy-secrets/**
spicy-secrets/**
**/charts
6 changes: 3 additions & 3 deletions app-set-prod.yaml
Expand Up @@ -33,8 +33,8 @@ spec:
helm:
ignoreMissingValueFiles: true
valueFiles:
- /config/prod.yaml

- '/config/prod.yaml'
- '/{{path}}/values-prod.yaml'

---
apiVersion: argoproj.io/v1alpha1
Expand Down Expand Up @@ -72,4 +72,4 @@ spec:
ignoreMissingValueFiles: true
valueFiles:
- '/config/prod.yaml'
- '{{path}}/values.yaml'
- '/{{path}}/values-prod.yaml'
5 changes: 3 additions & 2 deletions app-set-test.yaml
Expand Up @@ -34,6 +34,7 @@ spec:
ignoreMissingValueFiles: true
valueFiles:
- /config/test.yaml
- '/{{path}}/values-test.yaml'


---
Expand Down Expand Up @@ -71,5 +72,5 @@ spec:
helm:
ignoreMissingValueFiles: true
valueFiles:
- '/config/test.yaml'
- '{{path}}/values.yaml'
- /config/test.yaml
- '/{{path}}/values-test.yaml'
17 changes: 17 additions & 0 deletions cluster/argocd/templates/secret.yaml
@@ -0,0 +1,17 @@
apiVersion: secrets.infisical.com/v1alpha1
kind: InfisicalSecret
metadata:
name: dex-github
namespace: faf-ops
spec:
authentication:
serviceToken:
serviceTokenSecretReference:
secretName: infisical-service-token
secretNamespace: faf-ops
secretsScope:
envSlug: {{.Values.infisicalSlug}}
secretsPath: "/argocd"
managedSecretReference:
secretName: dex-github
secretNamespace: argocd
21 changes: 21 additions & 0 deletions cluster/argocd/values-test.yaml
@@ -0,0 +1,21 @@
argo-cd:
# Because fuck users
argo-cd.config.cm:
dex.config: |
connectors:
- type: github
# Required field for connector id.
id: github
# Required field for connector name.
name: GitHub
config:
clientID: 838e6d390d5cf6932ca5
clientSecret: $dex-github:GITHUB_CLIENT_SECRET
orgs:
- name: FAForever
# A white list of teams. Only include group claims for these teams.
teams:
- argocd-test
# Flag which indicates that all user groups and teams should be loaded.
loadAllGroups: false
useLoginAsID: false
4 changes: 4 additions & 0 deletions cluster/argocd/values.yaml
@@ -0,0 +1,4 @@
argo-cd:
global:
deploymentAnnotations:
reloader.stakater.com/auto: "true"

0 comments on commit 50a627f

Please sign in to comment.