Skip to content

Commit

Permalink
fix: templating error with authorization_policies. (#254)
Browse files Browse the repository at this point in the history
Without this change, templating fails when using authorization policies
due to the `with` statement changing the scope of the `.` variable on
following line. Fix by accessing from global scope `$.`.
  • Loading branch information
james-choncholas authored Aug 5, 2024
1 parent 05fa315 commit 20da5c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/authelia/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: authelia
version: 0.9.2
version: 0.9.3
kubeVersion: ">= 1.13.0-0"
description: Authelia is a Single Sign-On Multi-Factor portal for web apps
type: application
Expand Down
2 changes: 1 addition & 1 deletion charts/authelia/templates/configMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ data:
require_pushed_authorization_requests: {{ .Values.configMap.identity_providers.oidc.require_pushed_authorization_requests | default false }}
{{- with .Values.configMap.identity_providers.oidc.authorization_policies }}
authorization_policies:
{{- range $name, $policy := .Values.configMap.identity_providers.oidc.authorization_policies }}
{{- range $name, $policy := $.Values.configMap.identity_providers.oidc.authorization_policies }}
{{ $name }}:
default_policy: {{ $policy.default_policy | default "deny" | squote }}
{{- with $policy.rules }}
Expand Down

0 comments on commit 20da5c6

Please sign in to comment.