Skip to content

Commit 50a2fda

Browse files
committed
Configure Github SSO login for ArgoCD
1 parent 5c42015 commit 50a2fda

File tree

6 files changed

+49
-6
lines changed

6 files changed

+49
-6
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
certs
2-
spicy-secrets/**
2+
spicy-secrets/**
3+
**/charts

Diff for: app-set-prod.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ spec:
3333
helm:
3434
ignoreMissingValueFiles: true
3535
valueFiles:
36-
- /config/prod.yaml
37-
36+
- '/config/prod.yaml'
37+
- '/{{path}}/values-prod.yaml'
3838

3939
---
4040
apiVersion: argoproj.io/v1alpha1
@@ -72,4 +72,4 @@ spec:
7272
ignoreMissingValueFiles: true
7373
valueFiles:
7474
- '/config/prod.yaml'
75-
- '{{path}}/values.yaml'
75+
- '/{{path}}/values-prod.yaml'

Diff for: app-set-test.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ spec:
3434
ignoreMissingValueFiles: true
3535
valueFiles:
3636
- /config/test.yaml
37+
- '/{{path}}/values-test.yaml'
3738

3839

3940
---
@@ -71,5 +72,5 @@ spec:
7172
helm:
7273
ignoreMissingValueFiles: true
7374
valueFiles:
74-
- '/config/test.yaml'
75-
- '{{path}}/values.yaml'
75+
- /config/test.yaml
76+
- '/{{path}}/values-test.yaml'

Diff for: cluster/argocd/templates/secret.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: secrets.infisical.com/v1alpha1
2+
kind: InfisicalSecret
3+
metadata:
4+
name: dex-github
5+
namespace: faf-ops
6+
spec:
7+
authentication:
8+
serviceToken:
9+
serviceTokenSecretReference:
10+
secretName: infisical-service-token
11+
secretNamespace: faf-ops
12+
secretsScope:
13+
envSlug: {{.Values.infisicalSlug}}
14+
secretsPath: "/argocd"
15+
managedSecretReference:
16+
secretName: dex-github
17+
secretNamespace: argocd

Diff for: cluster/argocd/values-test.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
argo-cd:
2+
config.cm:
3+
dex.config: |
4+
connectors:
5+
- type: github
6+
# Required field for connector id.
7+
id: github
8+
# Required field for connector name.
9+
name: GitHub
10+
config:
11+
clientID: 838e6d390d5cf6932ca5
12+
clientSecret: $dex-github:GITHUB_CLIENT_SECRET
13+
orgs:
14+
- name: FAForever
15+
# A white list of teams. Only include group claims for these teams.
16+
teams:
17+
- argocd-test
18+
# Flag which indicates that all user groups and teams should be loaded.
19+
loadAllGroups: false
20+
useLoginAsID: false

Diff for: cluster/argocd/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
argo-cd:
2+
global:
3+
deploymentAnnotations:
4+
reloader.stakater.com/auto: "true"

0 commit comments

Comments
 (0)