authentik: deploy outpost as worker-role container with dial-back
In authentik 2026.8.x the proxy-provider URL space (/outpost.goauthentik.io/*) is served by the Rust worker binary, not the server — verified live: with a tenant-matching Host header, /if/flow/... answers 200 on the server while /auth/caddy still 404s. The outpost instance existed in the DB but no process ever served it, so Caddy's forward_auth subrequests hit a 404 and browsers got authentik's own Not-Found page instead of the authentication flow. The new unit runs the same image as server/worker with Exec=worker and flips into outpost mode via AUTHENTIK_HOST/AUTHENTIK_INSECURE/AUTHENTIK_TOKEN (the token is read from the DB into the host .env at deploy time; it never enters the repo). It dials back to core over websocket and serves forward-auth on its own 9000. Deploy handler restarts only this unit — the rest of the stack is untouched.
This commit is contained in:
@@ -88,7 +88,8 @@ service_is_allowed() {
|
||||
dankclaw:hermes-dashboard|dankclaw:hermes-webui|dankclaw:prometheus|dankclaw:grafana|\
|
||||
dankclaw:loki|dankclaw:alloy|dankclaw:node-exporter|\
|
||||
dankclaw:authentik-postgres|dankclaw:authentik-server|\
|
||||
dankclaw:authentik-worker|dankclaw:anubis|dankclaw:caddy|dankclaw:homepage|\
|
||||
dankclaw:authentik-worker|dankclaw:authentik-outpost|dankclaw:anubis|\
|
||||
dankclaw:caddy|dankclaw:homepage|\
|
||||
dankclaw:frank-default-large|dankclaw:frank-default-npu|\
|
||||
dankserver:mariadb|dankserver:redis|dankserver:romm|\
|
||||
dankserver:copyparty|dankserver:jellyfin|dankserver:calibre-web|\
|
||||
@@ -550,6 +551,20 @@ deploy_authentik() {
|
||||
systemctl --user start authentik-worker.service
|
||||
}
|
||||
|
||||
deploy_authentik_outpost() {
|
||||
# The outpost is the worker-role binary of the same server image; it dials
|
||||
# back to core over websocket and serves /outpost.goauthentik.io/* for
|
||||
# Caddy's forward_auth. Image already in storage — zero pulls. Restarting
|
||||
# only this unit cycles auth for guarded vhosts for a few seconds; the
|
||||
# rest of the stack is untouched.
|
||||
cp dankclaw/authentik/quadlet/authentik-outpost.container "$quadlet_unit_dir/"
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user restart authentik-outpost.service
|
||||
sleep 5
|
||||
systemctl --user is-active --quiet authentik-outpost.service || \
|
||||
echo "WARN: authentik-outpost did not come up active" >&2
|
||||
}
|
||||
|
||||
deploy_anubis() {
|
||||
# Anubis is the bot-challenge proxy in front of the guarded vhosts.
|
||||
# The image lives on ghcr.io; pull once, then the unit runs it from
|
||||
@@ -624,6 +639,9 @@ deploy_service() {
|
||||
authentik-postgres|authentik-server|authentik-worker)
|
||||
deploy_authentik
|
||||
;;
|
||||
authentik-outpost)
|
||||
deploy_authentik_outpost
|
||||
;;
|
||||
anubis) deploy_anubis ;;
|
||||
frank-default-large) deploy_llm_large ;;
|
||||
frank-default-small) deploy_llm_small ;;
|
||||
|
||||
Reference in New Issue
Block a user