bug(caddy): respond @actuator 404 swallowed by catch-all handle; /actuator/health returns 302
#512
Reference in New Issue
Block a user
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?
Summary
The
(block_actuator)Caddyfile snippet emitsrespond @actuator 404at the top level of each archive vhost. But each vhost also contains a catch-allhandle { reverse_proxy ... }block. In Caddy's directive order,handleis mutually exclusive — once ahandlematches, the request never reaches a top-levelrespond. The catch-allhandlealways matches/actuator/*, so the request hits the backend and Spring Security 302s to/login.Reproduction
Impact
/actuator/health → 404assertion.Fix
Move the actuator block inside its own
handledirective so it participates in the mutually-exclusive route table.handleblocks are sorted by path specificity (most specific first), so/actuator/*takes precedence over the catch-allhandle:Discovered
Direct curl against the up-and-running staging stack while debugging #510.