forked from cloudfoundry/bosh-deployment
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uaa.yml
162 lines (148 loc) · 4.62 KB
/
uaa.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
- type: replace
path: /releases/-
value:
name: uaa
version: "60.2"
url: https://s3.amazonaws.com/bosh-compiled-release-tarballs/uaa-60.2-ubuntu-xenial-97.12-20180815-231707-188963409-20180815231720.tgz?versionId=AJarW.I0RXfMpEAgq.d.qCuG_oAht_80
sha1: 97fcf9ce8b8bc9866771ce4c1ba59c9b19aa6f25
# Switch Director to use UAA
- type: replace
path: /instance_groups/name=bosh/properties/director/user_management/provider
value: uaa
- type: remove
path: /instance_groups/name=bosh/properties/director/user_management/local
- type: replace
path: /instance_groups/name=bosh/properties/director/user_management/uaa?/url
value: "https://((internal_ip)):8443"
- type: replace
path: /instance_groups/name=bosh/properties/director/user_management/uaa/public_key?
value: ((uaa_jwt_signing_key.public_key))
# Add UAA job
- type: replace
path: /instance_groups/name=bosh/jobs/-
value:
name: uaa
release: uaa
properties:
encryption:
encryption_keys:
- label: uaa-encryption-key-1
passphrase: ((uaa_encryption_key_1))
active_key_label: uaa-encryption-key-1
uaa:
url: "https://((internal_ip)):8443"
port: -1
sslPrivateKey: ((uaa_ssl.private_key))
sslCertificate: ((uaa_ssl.certificate))
jwt:
policy:
active_key_id: uaa-jwt-key-1
keys:
uaa-jwt-key-1:
signingKey: ((uaa_jwt_signing_key.private_key))
scim:
groups:
bosh.admin: 'User has admin access on any Director'
bosh.read: 'User has read access on any Director'
bosh.stemcells.upload: 'User can upload new stemcells'
bosh.releases.upload: 'User can upload new releases'
users:
- name: admin
groups: [bosh.admin]
password: ((admin_password))
clients:
bosh_cli:
override: true
authorized-grant-types: password,refresh_token
scope: openid,bosh.admin,bosh.read,bosh.*.admin,bosh.*.read,bosh.teams.*.admin,bosh.teams.*.read
authorities: uaa.none
access-token-validity: 120 # 2 min
refresh-token-validity: 86400 # 1 day
secret: ""
admin:
override: true
authorized-grant-types: client_credentials
scope: ""
authorities: bosh.admin
secret: ((admin_password))
hm:
override: true
authorized-grant-types: client_credentials
scope: ""
authorities: bosh.admin
secret: ((hm_password))
uaa_admin:
override: true
authorized-grant-types: client_credentials
scope: ""
authorities: clients.read,clients.write,clients.secret,uaa.admin,scim.read,scim.write,password.write
secret: ((uaa_admin_client_secret))
login: {client_secret: ((uaa_login_client_secret))}
zones: {internal: {hostnames: []}}
login:
saml:
activeKeyId: uaa-saml-key-1
keys:
uaa-saml-key-1:
key: ((uaa_service_provider_ssl.private_key))
certificate: ((uaa_service_provider_ssl.certificate))
passphrase: ""
uaadb:
address: 127.0.0.1
port: 5432
db_scheme: postgresql
databases:
- tag: uaa
name: uaa
roles:
- tag: admin
name: postgres
password: ((postgres_password))
- type: replace
path: /instance_groups/name=bosh/properties/postgres/additional_databases?/-
value: uaa
# Switch HM to use UAA
- type: replace
path: /instance_groups/name=bosh/properties/hm/director_account/client_id?
value: hm
- type: replace
path: /instance_groups/name=bosh/properties/hm/director_account/client_secret?
value: ((hm_password))
- type: replace
path: /variables/-
value:
name: uaa_jwt_signing_key
type: rsa
- type: replace
path: /variables/-
value:
name: uaa_admin_client_secret
type: password
- type: replace
path: /variables/-
value:
name: uaa_login_client_secret
type: password
- type: replace
path: /variables/-
value:
name: uaa_encryption_key_1
type: password
- type: replace
path: /variables/-
value:
name: uaa_ssl
type: certificate
options:
ca: default_ca
common_name: ((internal_ip))
alternative_names: [((internal_ip))]
- type: replace
path: /variables/-
value:
name: uaa_service_provider_ssl
type: certificate
options:
ca: default_ca
common_name: ((internal_ip))
alternative_names: [((internal_ip))]