Fix HostAuthorization blocking k8s health probes and Tailscale hostname #231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Regression from
ldraney/landscaping-assistant #224— PR #230 addedconfig.hostsentry that broke probe authorization and Tailscale access.Repo
ldraney/landscaping-assistantWhat Broke
PR #230 added
config.hosts << "landscaping-assistant.app"to production config. This enables RailsHostAuthorizationmiddleware but only whitelists the custom domain. Two things break:10.42.0.x:3000), not inconfig.hosts. Rails returns 403, probe fails, pod crash-loops (5+ restarts in 10 minutes).landscaping-assistant.tail5b443a.ts.netnot in the allowed hosts list.Old pod (46h, pre-#230 image) still serving. New pod cannot roll out.
Repro Steps
b654b58to Harbor10.42.0.165:3000/upExpected Behavior
/uphealth endpoint responds 200 regardless of Host headerlandscaping-assistant.tail5b443a.ts.netandlandscaping-assistant.applandscaping-dev.tail5b443a.ts.netEnvironment
b654b58Acceptance Criteria
landscaping-assistant.tail5b443a.ts.netandlandscaping-assistant.applandscaping-dev.tail5b443a.ts.net/uphealth endpoint responds 200 regardless of Host headerdocs/networking.mdupdated with allowed hosts sectionRelated
project-landscaping-assistant