HostAuthorization blocks internal k8s cluster traffic #238

Closed
opened 2026-06-16 12:32:36 +00:00 by ldraney · 0 comments
Owner

Type

Bug

Lineage

Regression from PR #232 which fixed health probe blocking but left other internal traffic exposed.

Repo

ldraney/landscaping-assistant

What Broke

Production logs are wall-to-wall Blocked hosts: 10.42.0.127:3000. HostAuthorization returns 403 for every internal k8s request where the Host header is the pod IP instead of the hostname. AlertManager firing.

Expected Behavior

Internal k8s traffic (service mesh, ingress, probes) should pass through HostAuthorization without being blocked.

Repro Steps

  1. Deploy current main to k8s
  2. kubectl logs -n landscaping-assistant <pod> --tail=50
  3. Observe continuous Blocked hosts: 10.42.0.127:3000

Environment

  • Production k8s (landscaping-assistant namespace)
  • Pod IP: 10.42.0.127
  • Image: 2147dfecb8

Acceptance Criteria

  • Blocked hosts log spam stops
  • Health probes still pass (pod 1/1)
  • External access via landscaping-assistant.tail5b443a.ts.net unaffected
  • DNS rebinding protection still active for named hosts
  • PR #232 — previous partial fix
  • PR #230 — added config.hosts entries
### Type Bug ### Lineage Regression from PR #232 which fixed health probe blocking but left other internal traffic exposed. ### Repo ldraney/landscaping-assistant ### What Broke Production logs are wall-to-wall `Blocked hosts: 10.42.0.127:3000`. HostAuthorization returns 403 for every internal k8s request where the Host header is the pod IP instead of the hostname. AlertManager firing. ### Expected Behavior Internal k8s traffic (service mesh, ingress, probes) should pass through HostAuthorization without being blocked. ### Repro Steps 1. Deploy current main to k8s 2. `kubectl logs -n landscaping-assistant <pod> --tail=50` 3. Observe continuous `Blocked hosts: 10.42.0.127:3000` ### Environment - Production k8s (landscaping-assistant namespace) - Pod IP: 10.42.0.127 - Image: 2147dfecb8f612ee1a722339975f91796cedf33c ### Acceptance Criteria - [ ] `Blocked hosts` log spam stops - [ ] Health probes still pass (pod 1/1) - [ ] External access via `landscaping-assistant.tail5b443a.ts.net` unaffected - [ ] DNS rebinding protection still active for named hosts ### Related - PR #232 — previous partial fix - PR #230 — added config.hosts entries
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/landscaping-assistant#238
No description provided.