From 8713dabc56ad7cb3cf9d352593199c173a7b348f Mon Sep 17 00:00:00 2001 From: thieneret <123479547+thieneret@users.noreply.github.com> Date: Fri, 11 Sep 2026 20:12:18 +0200 Subject: [PATCH] update authentik to 2026.8.2 (#17198) --- ct/authentik.sh | 14 +++++++++----- install/authentik-install.sh | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ct/authentik.sh b/ct/authentik.sh index d66330719..035ee4f6c 100644 --- a/ct/authentik.sh +++ b/ct/authentik.sh @@ -49,7 +49,7 @@ function update_script() { RUST_PROFILE="minimal" RUST_TOOLCHAIN="stable" setup_rust setup_yq - AUTHENTIK_VERSION="version/2026.8.1" + AUTHENTIK_VERSION="version/2026.8.2" # Source: https://github.com/goauthentik/fips/blob/main/Makefile#L26 XMLSEC_VERSION="1.3.12" @@ -184,8 +184,12 @@ EOF msg_info "Updating services" sed -i 's/authentik Go Server (API Gateway)/authentik Server/g' /etc/systemd/system/authentik-server.service - sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service - sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service + if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service; then + sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-server.service + fi + if ! grep -qF -- 'ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service; then + sed -i '/ExecStart=/i ExecStartPre=/usr/bin/mkdir -p "${TMPDIR}"' /etc/systemd/system/authentik-worker.service + fi systemctl daemon-reload msg_ok "Updated services" @@ -224,8 +228,8 @@ for i in {1..10}; do sleep 1 done $STD pct exec "$CTID" -- bash -c "mkdir -p /opt/authentik-data/{certs,media,geoip,templates}; \ - cp /opt/authentik/tests/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \ - cp /opt/authentik/tests/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \ + cp /opt/authentik/tests/geoip/GeoLite2-ASN-Test.mmdb /opt/authentik-data/geoip/GeoLite2-ASN.mmdb; \ + cp /opt/authentik/tests/geoip/GeoLite2-City-Test.mmdb /opt/authentik-data/geoip/GeoLite2-City.mmdb; \ cp -r /opt/authentik/blueprints /opt/authentik-data/; \ rm -r /opt/authentik/blueprints; \ find /opt/authentik-data -path '*/lost+found' -prune -o -exec chown authentik:authentik {} +" diff --git a/install/authentik-install.sh b/install/authentik-install.sh index f30d45e58..693d80029 100644 --- a/install/authentik-install.sh +++ b/install/authentik-install.sh @@ -58,7 +58,7 @@ PG_VERSION="17" setup_postgresql PG_DB_NAME="authentik" PG_DB_USER="authentik" PG_DB_GRANT_SUPERUSER="true" setup_postgresql_db XMLSEC_VERSION="1.3.12" -AUTHENTIK_VERSION="version/2026.8.1" +AUTHENTIK_VERSION="version/2026.8.2" fetch_and_deploy_gh_release "xmlsec" "lsh123/xmlsec" "tarball" "${XMLSEC_VERSION}" "/opt/xmlsec" fetch_and_deploy_gh_release "authentik" "goauthentik/authentik" "tarball" "${AUTHENTIK_VERSION}" "/opt/authentik" GO_VERSION="$(grep -m1 '^go ' /opt/authentik/go.mod | awk '{print $2}')" setup_go