Skip to content

Rewrite as standalone Go server with httputil.ReverseProxy#3

Merged
firecow merged 3 commits intoinitialfrom
rewrite/standalone-proxy
Feb 13, 2026
Merged

Rewrite as standalone Go server with httputil.ReverseProxy#3
firecow merged 3 commits intoinitialfrom
rewrite/standalone-proxy

Conversation

@firecow
Copy link
Member

@firecow firecow commented Feb 13, 2026

Summary

  • Replace Caddy plugin with standalone Go HTTP server using httputil.ReverseProxy
  • Fixes docker run/docker exec output by properly handling Docker's Upgrade: tcp connection hijacking
  • Add tests for auth middleware, services edit guard, and path matching

Test plan

  • go build succeeds
  • go test ./... passes (27 tests)
  • Auth rejection verified (no headers, wrong creds)
  • Auth pass verified (_ping, /version, /containers/json)
  • Connection hijacking verified (docker exec attach with output)
  • Services edit guard verified (forbidden/allowed prefix)

Replace Caddy plugin with a standalone HTTP server that properly
handles Docker's connection hijacking for docker run/exec.
@firecow firecow self-assigned this Feb 13, 2026
@firecow firecow merged commit 7e6082b into initial Feb 13, 2026
4 checks passed
@firecow firecow deleted the rewrite/standalone-proxy branch February 13, 2026 10:05
@firecow firecow restored the rewrite/standalone-proxy branch February 13, 2026 10:07
@firecow firecow deleted the rewrite/standalone-proxy branch February 13, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments