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 f350961
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
certs
spicy-secrets/**
spicy-secrets/**
**/charts
6 changes: 3 additions & 3 deletions app-set-prod.yaml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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: argocd
secretNamespace: dex-github
19 changes: 19 additions & 0 deletions cluster/argocd/values-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
argocd:
dex.config: |
connectors:
- type: gitlab
# 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
3 changes: 3 additions & 0 deletions cluster/argocd/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
argocd:
podAnnotations:
reloader.stakater.com/auto: "true"

0 comments on commit f350961

Please sign in to comment.