Skip to content

Commit

Permalink
Update OIDC scopes to use range in helm template (#473)
Browse files Browse the repository at this point in the history
* matrix.oidc_config.scopes is now templated as a range for homeserver.yaml

* fix templating errors
  • Loading branch information
jessebot authored Oct 29, 2023
1 parent 06861d6 commit e582878
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/matrix/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sources:

type: application

version: 4.6.2
version: 4.6.3

# renovate: image=matrixdotorg/synapse
appVersion: v1.95.0
Expand Down
2 changes: 1 addition & 1 deletion charts/matrix/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# matrix

![Version: 4.6.2](https://img.shields.io/badge/Version-4.6.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.95.0](https://img.shields.io/badge/AppVersion-v1.95.0-informational?style=flat-square)
![Version: 4.6.3](https://img.shields.io/badge/Version-4.6.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.95.0](https://img.shields.io/badge/AppVersion-v1.95.0-informational?style=flat-square)

A Helm chart to deploy a Matrix homeserver stack into Kubernetes

Expand Down
7 changes: 6 additions & 1 deletion charts/matrix/templates/synapse/_homeserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,12 @@ oidc_config:
# list of scopes to request. This should normally include the "openid" scope.
# Defaults to ["openid"].
#
scopes: {{ .Values.matrix.oidc_config.scopes }}
{{- if .Values.matrix.oidc_config.scopes }}
scopes:
{{- range .Values.matrix.oidc_config.scopes }}
- {{ . | quote }}
{{- end }}
{{- end }}

# Uncomment to skip metadata verification. Defaults to false.
#
Expand Down
4 changes: 3 additions & 1 deletion charts/matrix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ matrix:

# -- list of scopes to request. should normally include the "openid" scope.
# Defaults to ["openid"].
scopes: ["openid", "profile"]
scopes:
- "openid"
- "profile"

# -- oauth2 authorization endpoint. Required if provider discovery disabled.
authorization_endpoint: "https://accounts.example.com/oauth2/auth"
Expand Down

0 comments on commit e582878

Please sign in to comment.