Conversation
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughA browser-facing signature relay endpoint is added to the production Caddy configuration. Requests to ChangesSignature Relay Endpoint
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Review rate limit: 4/5 reviews remaining, refill in 12 minutes. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a browser-facing signature relay endpoint in the production Caddyfile and adds a suite of tests to verify routing, CORS, and mTLS configurations. The review feedback identifies a logic error in a test helper function that causes it to return prematurely and recommends expanding the allowed CORS headers for the new relay endpoint to ensure consistency with existing API blocks and prevent potential preflight failures.
5cfe4a4 to
0f38942
Compare
Summary
POST /relay/generate-signature*at the public API edge before the SPA/web fallback/api/generate-signature*blocked publicly and preserve the existing internal mTLS listenerProduction repro
https://oullin.io/writingshowsNo articles found.and console errors for API requests failing with status 403POST https://oullin.io/relay/generate-signaturecurrently returnsHTTP/2 403with two CaddyviahopsHTTP/2 204, so the broken path is the POST relay hopVerification
go test ./infra/caddygo test ./...docker run --rm -v /Users/gocanto/Sites/oullin/api/infra/caddy/Caddyfile.prod:/etc/caddy/Caddyfile:ro -v /Users/gocanto/Sites/oullin/api/infra/caddy/mtls:/etc/caddy/mtls:ro caddy:2.10.2 caddy validate --config /etc/caddy/CaddyfileSummary by CodeRabbit
Release Notes
New Features
Tests