From 0677aa1a4bd1ad573d9d6c0cbf2b63a89a997c71 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Wed, 22 Mar 2023 07:49:33 +0100 Subject: [PATCH] feat(authelia): allow for NTP failure by default (#7824) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Kjeld Schouten-Lebbing --- charts/enterprise/authelia/Chart.yaml | 2 +- charts/enterprise/authelia/templates/_configmap.tpl | 6 ++++++ charts/enterprise/authelia/values.yaml | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/charts/enterprise/authelia/Chart.yaml b/charts/enterprise/authelia/Chart.yaml index 4d5eef79f0a..1c8c07046d5 100644 --- a/charts/enterprise/authelia/Chart.yaml +++ b/charts/enterprise/authelia/Chart.yaml @@ -36,7 +36,7 @@ sources: - https://github.com/authelia/chartrepo - https://github.com/authelia/authelia type: application -version: 15.0.13 +version: 15.1.0 annotations: truecharts.org/catagories: | - security diff --git a/charts/enterprise/authelia/templates/_configmap.tpl b/charts/enterprise/authelia/templates/_configmap.tpl index c0497f5e570..98d92e9d16b 100644 --- a/charts/enterprise/authelia/templates/_configmap.tpl +++ b/charts/enterprise/authelia/templates/_configmap.tpl @@ -34,6 +34,12 @@ data: --- theme: {{ default "light" .Values.theme }} default_redirection_url: {{ default (printf "https://www.%s" .Values.domain) .Values.default_redirection_url }} + ntp: + address: {{ default "time.cloudflare.com:123" .Values.ntp.address }} + version: {{ default 4 .Values.ntp.version }} + max_desync: {{ default "3s" .Values.ntp.max_desync }} + disable_startup_check: {{ default false .Values.ntp.disable_startup_check }} + disable_failure: {{ default true .Values.ntp.disable_failure }} server: host: 0.0.0.0 port: {{ default 9091 .Values.server.port }} diff --git a/charts/enterprise/authelia/values.yaml b/charts/enterprise/authelia/values.yaml index 6ba6789c92a..c3709516e76 100644 --- a/charts/enterprise/authelia/values.yaml +++ b/charts/enterprise/authelia/values.yaml @@ -125,6 +125,15 @@ duo_api: integration_key: ABCDEF plain_api_key: "" +## NTP settings + +ntp: + address: "time.cloudflare.com:123" + version: 4 + max_desync: 3s + disable_startup_check: false + disable_failure: true + ## ## Authentication Backend Provider Configuration ##