1
- issuer : http ://terrakube-dex:5556 /dex
1
+ issuer : https ://terrakube-dex.platform.local /dex
2
2
3
3
storage :
4
4
type : memory
5
5
web :
6
6
http : 0.0.0.0:5556
7
- allowedOrigins : ['*' ]
7
+ allowedOrigins : ["*" ]
8
8
9
9
oauth2 :
10
- responseTypes : ["code", "token", "id_token"]
10
+ responseTypes : ["code", "token", "id_token"]
11
11
12
12
connectors :
13
- - type : ldap
14
- name : OpenLDAP
15
- id : ldap
16
- config :
17
- # The following configurations seem to work with OpenLDAP:
18
- #
19
- # 1) Plain LDAP, without TLS:
20
- host : ldap-service:1389
21
- insecureNoSSL : true
22
- #
23
- # 2) LDAPS without certificate validation:
24
- # host: localhost:636
25
- # insecureNoSSL: false
26
- # insecureSkipVerify: true
27
- #
28
- # 3) LDAPS with certificate validation:
29
- # host: YOUR-HOSTNAME:636
30
- # insecureNoSSL: false
31
- # insecureSkipVerify: false
32
- # rootCAData: 'CERT'
33
- # ...where CERT="$( base64 -w 0 your-cert.crt )"
13
+ - type : ldap
14
+ name : OpenLDAP
15
+ id : ldap
16
+ config :
17
+ # The following configurations seem to work with OpenLDAP:
18
+ #
19
+ # 1) Plain LDAP, without TLS:
20
+ host : terrakube-ldap-service:1389
21
+ insecureNoSSL : true
22
+ insecureSkipVerify : true
23
+ #
24
+ # 2) LDAPS without certificate validation:
25
+ # host: localhost:636
26
+ # insecureNoSSL: false
27
+ # insecureSkipVerify: true
28
+ #
29
+ # 3) LDAPS with certificate validation:
30
+ # host: YOUR-HOSTNAME:636
31
+ # insecureNoSSL: false
32
+ # insecureSkipVerify: false
33
+ # rootCAData: 'CERT'
34
+ # ...where CERT="$( base64 -w 0 your-cert.crt )"
34
35
35
- # This would normally be a read-only user.
36
- bindDN : cn=admin,dc=example,dc=org
37
- bindPW : admin
36
+ # This would normally be a read-only user.
37
+ bindDN : cn=admin,dc=example,dc=org
38
+ bindPW : admin
38
39
39
- usernamePrompt : Email Address
40
+ usernamePrompt : Email Address
40
41
41
- userSearch :
42
- baseDN : ou=users,dc=example,dc=org
43
- filter : " (objectClass=person)"
44
- username : mail
45
- # "DN" (case sensitive) is a special attribute name. It indicates that
46
- # this value should be taken from the entity's DN not an attribute on
47
- # the entity.
48
- idAttr : DN
49
- emailAttr : mail
50
- nameAttr : cn
42
+ userSearch :
43
+ baseDN : ou=users,dc=example,dc=org
44
+ filter : " (objectClass=person)"
45
+ username : mail
46
+ # "DN" (case sensitive) is a special attribute name. It indicates that
47
+ # this value should be taken from the entity's DN not an attribute on
48
+ # the entity.
49
+ idAttr : DN
50
+ emailAttr : mail
51
+ nameAttr : cn
51
52
52
- groupSearch :
53
- baseDN : ou=Groups,dc=example,dc=org
54
- filter : " (objectClass=groupOfNames)"
53
+ groupSearch :
54
+ baseDN : ou=Groups,dc=example,dc=org
55
+ filter : " (objectClass=groupOfNames)"
55
56
56
- userMatchers :
57
- # A user is a member of a group when their DN matches
58
- # the value of a "member" attribute on the group entity.
59
- - userAttr : DN
60
- groupAttr : member
57
+ userMatchers :
58
+ # A user is a member of a group when their DN matches
59
+ # the value of a "member" attribute on the group entity.
60
+ - userAttr : DN
61
+ groupAttr : member
61
62
62
- # The group name should be the "cn" value.
63
- nameAttr : cn
63
+ # The group name should be the "cn" value.
64
+ nameAttr : cn
64
65
65
66
staticClients :
66
- - id : example-app
67
- redirectURIs :
68
- - ' http://terrakube-ui:3000'
69
- - ' /device/callback'
70
- - ' http://localhost:10000/login'
71
- - ' http://localhost:10001/login'
72
- name : ' Example App'
73
- # secret: ZXhhbXBsZS1hcHAtc2VjcmV0
74
- public : true
67
+ - id : terrakube-app
68
+ redirectURIs :
69
+ - " https://terrakube.platform.local"
70
+ - " https://terrakube-api.platform.local"
71
+ - " https://terrakube-dex.platform.local"
72
+ - " /device/callback"
73
+ - " http://localhost:10000/login"
74
+ - " http://localhost:10001/login"
75
+ name : " Example App"
76
+ # secret: ZXhhbXBsZS1hcHAtc2VjcmV0
77
+ public : true
0 commit comments