Relied on the existing web framework request-hook pattern to add a centralized bearer-token guard with unauthenticated health checks. The hook placement made fail-closed behavior straightforward to test.
- What worked
- Central request guard cleanly separated authentication from business logic and preserved open health endpoints.