-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitlab-ci-values-dex.yml
59 lines (59 loc) · 1.52 KB
/
gitlab-ci-values-dex.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
rbac:
create: false
ingress:
enabled: true
hosts:
- host: auth.__DOMAIN__
paths:
- path: /dex
pathType: ImplementationSpecific
tls:
- hosts:
- auth.__DOMAIN__
secretName: dex-acme.tls
annotations:
cert-manager.io/cluster-issuer: acme-issuer
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true"
config:
web:
allowedOrigins: ['*']
connectors:
- type: ldap
id: ldap
name: LDAP
config:
host: ldap-openldap:389
insecureNoSSL: true
bindDN: uid=dex,ou=sa,dc=example,dc=com
bindPW: dex123
usernamePrompt: SSO Username
userSearch:
baseDN: ou=users,dc=example,dc=com
filter: "(objectClass=inetOrgPerson)"
username: cn
idAttr: cn
emailAttr: mail
nameAttr: cn
groupSearch:
baseDN: ou=groups,dc=example,dc=com
filter: "(objectClass=groupOfNames)"
userMatchers:
- userAttr: DN
groupAttr: member
nameAttr: cn
storage:
type: sqlite3
#type: kubernetes
config:
file: /var/dex/dex.db
#inCluster: true
issuer: https://auth.__DOMAIN__/dex
staticClients:
- id: exphost-controller
name: exphost-controller
redirectURIs:
- https://__DOMAIN__/console/oauth2/callback
secret: Yp4fGf79FutdBDJArQqxhUiVbufVxjzu