fix(deploy): proxy machine prefixes in split topology - #2030
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 053372a8bc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Fresh fix-diff review completed for
One LOW hardening note is declined under the bounded fix budget: the directive assertion is substring-based and could theoretically accept a commented directive. That is a future test-strength issue, not a defect in the current active nginx configuration. |
…y-machine-prefixes
|
Fresh integration review completed at The final-base diff remains limited to both split-proxy templates and their contract script. Static/rendered parity, nginx 1.27 syntax, exact/bare/descendant lowercase routing, near-prefix exclusion, path preservation, hub WebSocket headers, MCP |
Summary
/api,/hubs,/health, and/mcpto the API container in both split-container nginx templates./hubs.Implementation notes
The machine-prefix regex locations match the exact bare prefix and slash descendants while rejecting near-prefix paths such as
/apix.proxy_pass http://api:8080;deliberately omits a URI component so nginx preserves each incoming path without a rewrite.Tests
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/deploy/Test-TaskdeckReverseProxyConfig.ps1— passeddocker run --rm --add-host api:127.0.0.1 --add-host web:127.0.0.1 -v ${PWD}/deploy/nginx/reverse-proxy.conf:/etc/nginx/conf.d/default.conf:ro nginx:1.27-alpine nginx -t— passedpowershell -NoProfile -ExecutionPolicy Bypass -File scripts/deploy/Test-TaskdeckTerraformBaseline.ps1— passed for dev, staging, and prodgit diff --check— passedScope and follow-ups
Refs #1992