Skip to content

Commit 229cd52

Browse files
committed
Move MAS from secrets.encryption to secrets.encryption_file
1 parent 1aec60f commit 229cd52

2 files changed

Lines changed: 10 additions & 17 deletions

File tree

charts/matrix-stack/configs/matrix-authentication-service/config.yaml.tpl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,16 @@ clients:
8383
{{- end }}
8484

8585
secrets:
86-
encryption: ${ENCRYPTION_SECRET}
87-
86+
encryption_file: /secrets/{{
87+
include "element-io.ess-library.init-secret-path" (
88+
dict "root" $root
89+
"context" (dict
90+
"secretPath" "matrixAuthenticationService.encryptionSecret"
91+
"initSecretKey" "MAS_ENCRYPTION_SECRET"
92+
"defaultSecretName" (include "element-io.matrix-authentication-service.secret-name" (dict "root" $root "context" .))
93+
"defaultSecretKey" "ENCRYPTION_SECRET"
94+
)
95+
) }}
8896
keys:
8997
{{- with required "privateKeys is required for Matrix Authentication Service" .privateKeys }}
9098
- kid: rsa

charts/matrix-stack/templates/matrix-authentication-service/_helpers.tpl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,6 @@ env:
128128
)
129129
)
130130
}}
131-
- name: ENCRYPTION_SECRET
132-
value: >-
133-
{{
134-
printf "{{ readfile \"/secrets/%s\" | quote }}" (
135-
include "element-io.ess-library.init-secret-path" (
136-
dict "root" $root
137-
"context" (dict
138-
"secretPath" "matrixAuthenticationService.encryptionSecret"
139-
"initSecretKey" "MAS_ENCRYPTION_SECRET"
140-
"defaultSecretName" (include "element-io.matrix-authentication-service.secret-name" (dict "root" $root "context" .))
141-
"defaultSecretKey" "ENCRYPTION_SECRET"
142-
)
143-
)
144-
)
145-
}}
146131
{{- /*
147132
This is the secrets shared between Synapse & MAS
148133
*/ -}}

0 commit comments

Comments
 (0)