Skip to content

Skip backend creation for pure-redirect entrypoints#118

Merged
Shine-neko merged 1 commit into
mainfrom
fix/no-backend-for-pure-redirect
Jul 5, 2026
Merged

Skip backend creation for pure-redirect entrypoints#118
Shine-neko merged 1 commit into
mainfrom
fix/no-backend-for-pure-redirect

Conversation

@Shine-neko

Copy link
Copy Markdown
Contributor

An entrypoint whose redirect policy is permanent or unauthorized answers at the frontend and never forwards to a backend. Today the parser still attaches a Backend to it, which registers a phantom backend the health checker then probes forever — and if the entrypoint declares no .port, that backend falls back to :80 where nothing listens, so it's reported unhealthy indefinitely and pollutes the cluster's backend set.

This skips backend creation when the redirect policy is Permanent or Unauthorized. Forwarding redirects still proxy, so they keep their backend.

Covered by the existing parser tests (25 passing); cargo fmt and clippy clean.

@Shine-neko Shine-neko force-pushed the fix/no-backend-for-pure-redirect branch from 3489ecb to 67c26a5 Compare July 5, 2026 15:11
@Shine-neko Shine-neko merged commit 1a59346 into main Jul 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant