From ab3edbdf7b0f710c8d634701b0cabd271339a4a8 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Tue, 27 Oct 2026 20:18:03 -0500 Subject: [PATCH] fix: show source address when rejecting proxy auth --- CHANGELOG.md | 4 ++++ src/backend/database/routes/users.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d13cd3d1..4ffa99fee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ - The plugin list tells the mobile app which plugin API each plugin needs, so the app can say when it or a plugin needs an update - Hosts can have a color and an icon, which sync to the desktop and mobile apps +### Fixed + +- The log line for a rejected proxy login now shows the source address, so you can add it to TRUSTED_PROXY_AUTH_TRUSTED_PROXIES + ## 26.10.5 ### Added diff --git a/src/backend/database/routes/users.ts b/src/backend/database/routes/users.ts index bc4a915bf..598a6b40e 100644 --- a/src/backend/database/routes/users.ts +++ b/src/backend/database/routes/users.ts @@ -318,7 +318,7 @@ router.post("/proxy-login", async (req, res) => { try { if (!isTrustedProxyAddress(sourceAddress, config.trustedProxies)) { authLogger.warn( - "Rejected proxy authentication from an untrusted source", + `Rejected proxy authentication from an untrusted source: ${sourceAddress ?? "unknown"}`, { operation: "trusted_proxy_auth_rejected", sourceAddress,