diff --git a/charts/enterprise/authelia/Chart.yaml b/charts/enterprise/authelia/Chart.yaml index 99bf55376ec..91d97ca6ae6 100644 --- a/charts/enterprise/authelia/Chart.yaml +++ b/charts/enterprise/authelia/Chart.yaml @@ -1,7 +1,7 @@ kubeVersion: ">=1.24.0-0" apiVersion: v2 name: authelia -version: 22.2.0 +version: 22.2.1 appVersion: 4.37.5 description: Authelia is a Single Sign-On Multi-Factor portal for web apps home: https://truecharts.org/charts/enterprise/authelia diff --git a/charts/enterprise/authelia/questions.yaml b/charts/enterprise/authelia/questions.yaml index f812c996668..7db6d09a5e6 100644 --- a/charts/enterprise/authelia/questions.yaml +++ b/charts/enterprise/authelia/questions.yaml @@ -796,6 +796,19 @@ questions: type: string default: "" required: true + - variable: domain_regex + label: "Domains RegEx" + description: "defines which domain or set of domains the rule applies to using regular expressions." + schema: + type: list + default: [] + items: + - variable: domainRegexEntry + label: "Domain RegEx" + schema: + type: string + default: "" + required: true - variable: policy label: "Policy" description: | diff --git a/charts/enterprise/authelia/templates/_configmap.tpl b/charts/enterprise/authelia/templates/_configmap.tpl index c100da838fd..c2797c8aaaa 100644 --- a/charts/enterprise/authelia/templates/_configmap.tpl +++ b/charts/enterprise/authelia/templates/_configmap.tpl @@ -327,6 +327,16 @@ data: {{- end }} {{- end }} {{- end -}} + {{- if $rule.domain_regex }} + domain_regex: + {{- if kindIs "string" $rule.domain_regex }} + - {{ $rule.domain_regex | squote }} + {{- else -}} + {{- range $rule.domain_regex }} + - {{ . | squote }} + {{- end }} + {{- end }} + {{- end }} {{- with $rule.policy }} policy: {{ . }} {{- end -}}