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:
3 files changed
+90
-8
No files matched your search
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user