-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow registration secret to be existingSecret or auto-generated to c…
…reate new admins (#19) * allow registration secret to be existingSecret or auto-generated to create new admins * match default registration secret key for our created secret to matrix.registration.secretKey
- Loading branch information
Showing
7 changed files
with
64 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ sources: | |
|
||
type: application | ||
|
||
version: 4.1.2 | ||
version: 4.1.3 | ||
appVersion: v1.88.0 | ||
|
||
maintainers: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
charts/matrix/templates/synapse/registration_sharedsecret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{/* | ||
If set, allows registration of standard or admin accounts by anyone who has the | ||
shared secret, even if registration is otherwise disabled. | ||
*/}} | ||
{{- if not .Values.matrix.registration.existingSecret }} | ||
{{- if or .Values.matrix.registration.sharedSecret .Values.matrix.registration.generateSharedSecert }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "matrix.fullname" . }}-registration-secret | ||
labels: | ||
app.kubernetes.io/name: {{ include "matrix.name" . }} | ||
helm.sh/chart: {{ include "matrix.chart" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
type: Opaque | ||
data: | ||
{{- if .Values.matrix.registration.sharedSecret }} | ||
registrationSharedSecret: {{ .Values.matrix.registration.sharedSecret | b64enc | quote }} | ||
{{ else }} | ||
registrationSharedSecret: {{ randAlphaNum 32 | b64enc | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters