Fix: strip butler auth header before forwarding to backends

This commit is contained in:
sascha 2026-04-18 10:05:12 +02:00
parent b1aa6671e2
commit b926732915

4
app.py
View file

@ -98,8 +98,8 @@ async def proxy(service: str, path: str, request: Request, _=Depends(_verify)):
headers = dict(request.headers) headers = dict(request.headers)
cookies = {} cookies = {}
# Remove hop-by-hop headers # Remove hop-by-hop headers and butler auth (replaced by service auth below)
for h in ["host", "content-length", "transfer-encoding"]: for h in ["host", "content-length", "transfer-encoding", "authorization"]:
headers.pop(h, None) headers.pop(h, None)
# Build auth # Build auth