Commit graph

11 commits

Author SHA1 Message Date
Philipp Mundhenk
863f719da3 proxy-auth: remove check_proxy / proxy_ip settings
The "Check Proxy" option inspected the forwarded client IP returned
by Http::GetClientIp(true), which resolves to HTTP_X_FORWARDED_FOR
first and only falls back to REMOTE_ADDR. In any typical reverse-proxy
deployment that header carries the end-user's IP, not the proxy's, so
the option never actually validated that the request came from the
trusted proxy. It only constrained the set of end-user IPs allowed
to use SSO, which is not a meaningful guarantee on its own.

Drop the option, the paired proxy_ip subnet field, and the
ip_in_range helper. Document that access must be gated at the
network layer (firewall / docker network / bound interface) and
that the upstream proxy must strip any client-supplied value of
the configured remote-user header.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 10:44:36 +02:00
Philipp Mundhenk
60ee74c68a proxy-auth: fix check_proxy enforcement and persistence
The proxy IP check was never enforced: ServiceProxyAuth read config
key 'proxy_check' but the property is registered as 'check_proxy',
so the lookup always returned the default empty string and the
else-branch set $sProxyRequest = true unconditionally.

The BOOL property also had SetEncrypted(), which caused getDecrypted()
to call DecryptFromJSON() on a literal bool and fail with
"DecryptFromJSON() invalid $data", so the admin UI never reflected
the saved value. BOOLs are stored as plain bools in JSON; switch to
Get() and drop SetEncrypted() on the property.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 09:54:54 +02:00
the-djmaze
a4299c5f1c Fix extensions with login.credentials hook parameters 2024-09-21 00:01:02 +02:00
the-djmaze
4bb1b41505 Bump version for #1597 2024-05-26 18:33:29 +02:00
Philipp Mundhenk
8d3f4f5e1d introduced SensitiveString handling 2024-05-26 17:04:32 +02:00
the-djmaze
3017f8c656 Simplify LoginProcess handling 2024-03-28 02:43:39 +01:00
the-djmaze
5747b7add6 Version bump for #1400 2024-01-22 00:05:06 +01:00
Philipp Mundhenk
b947db2eb1 added documentation for usage of custom_logout_link 2024-01-21 15:31:32 +01:00
Philipp Mundhenk
081726d764 added automatic login 2024-01-21 14:57:47 +01:00
Philipp Mundhenk
84f739c72f added encryption 2024-01-14 18:22:41 +01:00
Philipp Mundhenk
ec937a5af1 implemented ProxyAuth 2024-01-14 14:39:23 +01:00