File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
terraform-modules/concourse/app/files/config/uaa Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,12 @@ spec:
182
182
template :
183
183
spec : # ! pod spec
184
184
# ! START delete when https://github.com/vmware-tanzu/carvel-secretgen-controller/issues/70 is fixed
185
+
186
+ # ! NOTE: We are not using the default "yq" from https://github.com/mikefarah/yq here. Instead, we use this flavour:
187
+
188
+ # ! yq transcodes YAML documents to JSON and passes them to jq.
189
+ # ! See https://github.com/kislyuk/yq for more information.
190
+
185
191
initContainers :
186
192
# @overlay/append
187
193
- name : fix-secrets
@@ -220,6 +226,11 @@ spec:
220
226
#REMOVE EMPTY LINES
221
227
sed -i '/^[[:space:]]*$/d' jwt_policy_signing_keys.yml
222
228
229
+ # Convert RSA key from single-quoted string to block scalar style
230
+ # Otherwise we get an Exception: com.nimbusds.jose.JOSEException: -----END RSA PRIVATE KEY not found
231
+ sed -i "s/signingKey: '-----BEGIN RSA PRIVATE KEY-----/signingKey: |\\n -----BEGIN RSA PRIVATE KEY-----/" jwt_policy_signing_keys.yml
232
+ sed -i "s/-----END RSA PRIVATE KEY-----'/-----END RSA PRIVATE KEY-----/" jwt_policy_signing_keys.yml
233
+
223
234
FIXED_VALUE=$(yq -r .login.saml.keys.default_saml_key.key saml_keys.yml | base64 -d)
224
235
yq -Yi ".login.saml.keys.default_saml_key.key|=\"${FIXED_VALUE}\"" saml_keys.yml
225
236
You can’t perform that action at this time.
0 commit comments