FeatureFuel
1

Unauthenticated liveness/readiness endpoint for Kubernetes probes

Source: paperless-ngx/paperless-ngx#14844 · opened by @rhierlmeier
Description Paperless-ngx has no dedicated health endpoint for orchestrator probes. The image's Docker HEALTHCHECK does curl -fsSL i.e. it renders the login page. Kubernetes users have to copy that pattern for readinessProbe / startupProbe. This is related to, but different from, #10773: that request was about exposing the full system status for monitoring, and /api/status/ covers that (it requires admin auth). This request is only about a cheap, unauthenticated "is the web server up and able to serve requests" signal, without exposing any data. Why it matters more since 3.5.0: when PAPERLESS_URL is set, ALLOWED_HOSTS is now restricted to that host plus localhost (previously *). A plain Kubernetes httpGet probe sends the pod IP as Host header and now gets 400 Bad Request (DisallowedHost). It works only if you know to add httpHeaders: [{name: Host, value: localhost}]. Without a probe at all, the pod is marked Ready before the web server listens, and in-cluster API cl…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests