forked from cloudfoundry/bosh-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uaa.yml
140 lines (127 loc) · 4 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
- type: replace
path: /releases/-
value:
name: uaa
version: "45"
url: https://s3.amazonaws.com/bosh-compiled-release-tarballs/uaa-45-ubuntu-trusty-3445.7-20170901-011657-278004037-20170901011704.tgz?versionId=Z4xSK_tLTPFa2BenVJ2M5rAa_CygCgo4
sha1: fdcfa0731490031e14cc411ae72d94b1341a482c
# 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:
uaa:
url: "https://((internal_ip)):8443"
port: -1
sslPrivateKey: ((uaa_ssl.private_key))
sslCertificate: ((uaa_ssl.certificate))
jwt:
signing_key: ((uaa_jwt_signing_key.private_key))
verification_key: ((uaa_jwt_signing_key.public_key))
scim:
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
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:
serviceProviderKey: ((uaa_service_provider_ssl.private_key))
serviceProviderKeyPassword: "" # TODO: Remove this when UAA defaults this value
serviceProviderCertificate: ((uaa_service_provider_ssl.certificate))
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_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))]