Skip to content

fix(cli): allow proxy authority on loopback - #308

Merged
xingkaixin merged 1 commit into
mainfrom
feat/cs-186-trust-proxy-authority
Aug 11, 2026
Merged

fix(cli): allow proxy authority on loopback#308
xingkaixin merged 1 commit into
mainfrom
feat/cs-186-trust-proxy-authority

Conversation

@xingkaixin

Copy link
Copy Markdown
Owner

Summary

  • enforce loopback authority validation only for unauthenticated local listeners
  • preserve token and trusted-proxy TLS checks for authenticated reverse-proxy deployments
  • cover a public proxy Host header on a loopback-bound listener

Root cause

The loopback authority middleware was selected from the bind address alone. A trusted-proxy deployment still binds to loopback, so the middleware rejected the proxy's public Host header before token authentication and forwarded-TLS validation could run.

Verification

  • pnpm --filter codesesh lint
  • pnpm --filter codesesh format:check
  • pnpm --filter codesesh test
  • pnpm --filter codesesh build

Issue: CS-186

@xingkaixin
xingkaixin merged commit 8dc963a into main Aug 11, 2026
30 checks passed
@xingkaixin
xingkaixin deleted the feat/cs-186-trust-proxy-authority branch August 11, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant