Authentik: the workers endpoint is a 404 on this version

A second Inspect showed /api/v3/admin/workers/ answers HTTP 404 (a web page) on the user's Authentik, so the worker count is unknown there: no alert, no metric. Docs and the adapter's header say so; no code change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-17 20:05:41 +01:00
1 parent 3fc2a71812
commit 517a1b9544
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
* flows failed lately (from the events log). Nothing is sent to Authentik but GET requests for these; making a user is ./users.ts, with a token of its own.
*
* Endpoints and field names are from Authentik's published API (`/api/v3/admin/version/`, `/admin/workers/`, `/outposts/instances/` and its `/health/`, `/crypto/certificatekeypairs/`,
* `/core/tokens/`, `/events/events/`) and were checked against a live server (Inspect), where `/admin/workers/` answered with something that is not JSON — the workers are then unknown, not none; every field is read defensively, and a part that cannot be read is left out.
* `/core/tokens/`, `/events/events/`) and were checked against a live server (Inspect), where `/admin/workers/` answered 404 — an Authentik without that endpoint — and the workers are then unknown, not none; every field is read defensively, and a part that cannot be read is left out.
*/
import { requestJson } from "../httpJson.js";
import { withDiagLogging } from "../../services/diagLog.js";