P7 r8 fix: forward_auth trust boundary (XFF/XFH honored only from trusted proxy; direct/spoofed requests use socket identity) + adversarial tests

This commit is contained in:
Hermes committed 2026-10-03 23:25:23 -07:00
1 parent 1e606bf0f3
commit d4973f3af3
3 files changed
+90 -8

No files matched your search

+2
View File
@@ -853,6 +853,8 @@ async function createApp() {
p7ForwardAuthRouter = networkForwardAuthRoutes({
service,
asyncHandler: ctx.asyncHandler,
trustedProxies: (config.FORWARD_AUTH_TRUSTED_PROXIES || '127.0.0.1,::1')
.split(',').map((s) => s.trim()).filter(Boolean),
log: ctx.log,
});
}