authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Flow inspector is not displaying

Open Gufderald opened this issue 8 months ago • 3 comments

Describe the bug

#20154

When pressing "Use inspector" button on a flow page, no flow inspector is being displayed. Tested on different installation methods (helm-chart, docker-compose) and different browsers (firefox, chrome).

How to reproduce

  1. Deploy latest version of authentik (e.g. using docker-compose with this guide, 2026.2.1 as for the moment of issue creation).
  2. Log in as default superadmin
  3. Open "Flows and stages" -> "Flows" -> press on the flow of your choise
  4. Press "Use inspector" button under "Execute flow"
  5. Flow will be opened in a new tab, but no flow inspector will be displayed

Expected behavior

Flow inspector should be displayed in the new tab with selected flow

Screenshots

https://github.com/user-attachments/assets/0780463f-dc82-4743-bd6d-8d5cfa03ba25

Additional context

No response

Deployment Method

Issue reproduces both on kubernetes and docker installations

Version

2026.2.1

Relevant log output

server-1      | {"auth_via": "unauthenticated", "domain_url": "localhost", "event": "/-/health/live/", "host": "localhost:8000", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 111, "remote": "255.255.255.255", "request_id": "fdacabcec0e444e8aec7582c1fec11f3", "runtime": 16, "schema_name": "public", "scheme": "http", "status": 200, "timestamp": "2026-03-18T19:41:14.010097", "user": "", "user_agent": "goauthentik.io/router/healthcheck"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): starting planning process", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "timestamp": "2026-03-18T19:41:18.804259"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): building plan", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "timestamp": "2026-03-18T19:41:18.819566"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): not evaluating on plan", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-identification>", "timestamp": "2026-03-18T19:41:18.826744"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): stage has re-evaluate marker", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-identification>", "timestamp": "2026-03-18T19:41:18.827092"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): not evaluating on plan", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-password>", "timestamp": "2026-03-18T19:41:18.827325"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): stage has re-evaluate marker", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-password>", "timestamp": "2026-03-18T19:41:18.827529"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): not evaluating on plan", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-mfa-validation>", "timestamp": "2026-03-18T19:41:18.827722"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): stage has re-evaluate marker", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-mfa-validation>", "timestamp": "2026-03-18T19:41:18.827853"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): not evaluating on plan", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-login>", "timestamp": "2026-03-18T19:41:18.827984"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): stage has re-evaluate marker", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "stage": "<Stage: Stage default-authentication-login>", "timestamp": "2026-03-18T19:41:18.828100"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(plan): finished building", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "pid": 111, "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "schema_name": "public", "timestamp": "2026-03-18T19:41:18.828270"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "/api/v3/flows/instances/default-authentication-flow/execute/", "host": "localhost:9000", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 111, "remote": "172.18.0.1", "request_id": "5632eb09ae834c37a3ff966f3747e3fa", "runtime": 817, "schema_name": "public", "scheme": "http", "status": 200, "timestamp": "2026-03-18T19:41:18.840721", "user": "akadmin", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "/if/flow/default-authentication-flow/?inspector=open&next=/", "host": "localhost:9000", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 111, "remote": "172.18.0.1", "request_id": "1dec1412e13b42dfade913b6789a4a59", "runtime": 35, "schema_name": "public", "scheme": "http", "status": 200, "timestamp": "2026-03-18T19:41:18.970243", "user": "akadmin", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(exec): Continuing existing plan", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.views.executor", "pid": 111, "request_id": "e7c394741f24489eb61360a452268d2b", "schema_name": "public", "timestamp": "2026-03-18T19:41:19.299269"}
server-1      | {"auth_via": "session", "binding": "<FlowStageBinding: Flow-stage binding #10 to f70d8586-5eef-4b41-a77b-cf49f6d59521>", "domain_url": "localhost", "event": "f(plan_inst): stage has marker", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.planner", "marker": "ReevaluateMarker(binding=<FlowStageBinding: Flow-stage binding #10 to f70d8586-5eef-4b41-a77b-cf49f6d59521>)", "pid": 111, "request_id": "e7c394741f24489eb61360a452268d2b", "schema_name": "public", "timestamp": "2026-03-18T19:41:19.299530"}
server-1      | {"auth_via": "session", "binding": "<FlowStageBinding: Flow-stage binding #10 to f70d8586-5eef-4b41-a77b-cf49f6d59521>", "domain_url": "localhost", "event": "f(plan_inst): running re-evaluation", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.markers", "marker": "ReevaluateMarker", "pid": 111, "policy_binding": "<FlowStageBinding: Flow-stage binding #10 to f70d8586-5eef-4b41-a77b-cf49f6d59521>", "request_id": "e7c394741f24489eb61360a452268d2b", "schema_name": "public", "timestamp": "2026-03-18T19:41:19.299727"}
server-1      | {"auth_via": "session", "current_stage": "<IdentificationStage: Stage default-authentication-identification>", "domain_url": "localhost", "event": "f(exec): Current stage", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.views.executor", "pid": 111, "request_id": "e7c394741f24489eb61360a452268d2b", "schema_name": "public", "timestamp": "2026-03-18T19:41:19.348353"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "f(exec): Passing GET", "flow_slug": "default-authentication-flow", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.views.executor", "pid": 111, "request_id": "e7c394741f24489eb61360a452268d2b", "schema_name": "public", "stage": "<IdentificationStage: Stage default-authentication-identification>", "timestamp": "2026-03-18T19:41:19.348996", "view_class": "authentik.stages.identification.stage.IdentificationStageView"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "No webauthn_stage configured", "host": "localhost:9000", "level": "debug", "logger": "authentik.flows.stage", "pid": 111, "request_id": "e7c394741f24489eb61360a452268d2b", "schema_name": "public", "stage": "default-authentication-identification", "stage_view": "authentik.stages.identification.stage.IdentificationStageView", "timestamp": "2026-03-18T19:41:19.352250"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "/api/v3/flows/executor/default-authentication-flow/?query=inspector%3Dopen%26next%3D%2F", "host": "localhost:9000", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 111, "remote": "172.18.0.1", "request_id": "e7c394741f24489eb61360a452268d2b", "runtime": 130, "schema_name": "public", "scheme": "http", "status": 200, "timestamp": "2026-03-18T19:41:19.401154", "user": "akadmin", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "/api/v3/flows/inspector/default-authentication-flow/", "host": "localhost:9000", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 111, "remote": "172.18.0.1", "request_id": "48ca8f88877949368755539063db62ba", "runtime": 110, "schema_name": "public", "scheme": "http", "status": 200, "timestamp": "2026-03-18T19:41:19.442180", "user": "akadmin", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"}
server-1      | {"auth_via": "session", "domain_url": "localhost", "event": "/api/v3/flows/inspector/default-authentication-flow/", "host": "localhost:9000", "level": "info", "logger": "authentik.asgi", "method": "GET", "pid": 111, "remote": "172.18.0.1", "request_id": "dd30beb641ef42298d96cfc120ef93d3", "runtime": 83, "schema_name": "public", "scheme": "http", "status": 200, "timestamp": "2026-03-18T19:41:19.554008", "user": "akadmin", "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"}

Gufderald avatar Mar 18 '26 19:03 Gufderald

Could you post the URL you get redirect to when you click the Use Inspector button?

BeryJu avatar Mar 19 '26 01:03 BeryJu

It is http://localhost:8800/if/flow/default-authentication-flow/?inspector=open&next=/##/flow/flows/default-authentication-flow on local docker installation, and https://auth.mydomain.com/if/flow/phone-authn/?inspector=open&next=/##/flow/flows/phone-authn on kubernetes behing nginx ingress. inspector=open parameter is passed.

Gufderald avatar Mar 19 '26 08:03 Gufderald

alright, in that case i think this is an issue for @goauthentik/frontend

BeryJu avatar Mar 19 '26 13:03 BeryJu