Clear Web UI session on 401 and keep API/Ingress errors as JSON.

Include the missing resource id in not-found messages, expire auth to Guest
after 401, and document Ingress annotations so nginx does not rewrite 404/405
bodies into branded HTML.
This commit is contained in:
Sergey Antropoff
2026-07-22 06:52:23 +03:00
parent 15aad97de1
commit eee8572340
10 changed files with 172 additions and 24 deletions
@@ -35,6 +35,13 @@ seed:
ingress:
enabled: true
className: nginx
# Keep API JSON bodies (404/405/401). Cluster-wide custom-http-errors HTML
# pages must not rewrite simulator error responses.
annotations:
nginx.ingress.kubernetes.io/proxy-intercept-errors: "false"
# If the controller still injects branded HTML for 404/405, narrow or clear
# custom-http-errors on this Ingress (overrides controller defaults):
nginx.ingress.kubernetes.io/custom-http-errors: "502,503"
hosts:
- host: os-sim.example.com
paths: