You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to get real IP in logs instead of bridge IP? #237
When installed in docker and behind some reverse proxy like nginx, container logs does not show real client IP address even if passing right headers from proxy.
ty for info. I've set env PASSBOLT_SECURITY_PROXIES_ACTIVE=1 but it's won't work. Still bridge IP logged.
'proxies' => [
'active' => filter_var(env('PASSBOLT_SECURITY_PROXIES_ACTIVE', false), FILTER_VALIDATE_BOOLEAN),
// If your instance is behind multiple proxies, redefine the list of IP addresses of proxies in your control in passbolt.php'trustedProxies' => [],
],
what section in passbolt.php I should use to define proxies with 'trustedProxies' setting?
how I should define localhost proxy and keep this setting after settings update?
May be I should map passbolt.default.php to container as passbolt.php and set this settings there?
At the moment we don't support such configuration through env vars. I'll forward your request to the backend team so they can provide a path to configure the trusted proxies through an env var.
At the moment we don't support such configuration through env vars. I'll forward your request to the backend team so they can provide a path to configure the trusted proxies through an env var.
I am not sure what PASSBOLT_SECURITY_PROXIES_ACTIVE does really, as trusted proxies is empty by default 'trustedProxies' => [], so if you cannot set that, it's not doing anything.
I completely forgot to update this thread but as part of passbolt 5.6.0 users should now be able to define the trusted proxies array using an environment variable. Let us know if this fixes this issue.
Activity
[-]How to get real IP in logs instead of bridge.[/-][+]How to get real IP in logs instead of bridge IP?[/+]dlen commentedon Apr 12, 2025
Hi, Have you tried to set PASSBOLT_SECURITY_PROXIES_ACTIVE env var? https://github.com/passbolt/passbolt_api/blob/master/config/default.php#L363
vshuraeff commentedon Apr 12, 2025
ty for info. I've set env
PASSBOLT_SECURITY_PROXIES_ACTIVE=1but it's won't work. Still bridge IP logged.passbolt.phpI should use to define proxies with'trustedProxies'setting?May be I should map
passbolt.default.phpto container aspassbolt.phpand set this settings there?mannp commentedon Aug 13, 2025
I am having the same issue and recall having to mount my own passbolt.php when passbolt first started.
I was hoping something like this would be available, but it isn't,
PASSBOLT_SECURITY_PROXIES_TRUSTED_PROXIES = [ "127.0.0.1","etc" ]Is there a way of directly changing these proxies from env variables @dlen
Thanks in advance :)
dlen commentedon Aug 13, 2025
Hey @mannp, long time no see!
At the moment we don't support such configuration through env vars. I'll forward your request to the backend team so they can provide a path to configure the trusted proxies through an env var.
Thanks for the feedback!
mannp commentedon Aug 13, 2025
Hi @dlen it's been a while for sure :)
Congrats to you and the team on the progress :)
I am not sure what PASSBOLT_SECURITY_PROXIES_ACTIVE does really, as trusted proxies is empty by default
'trustedProxies' => [],so if you cannot set that, it's not doing anything.dlen commentedon Dec 18, 2025
Hi,
I completely forgot to update this thread but as part of passbolt 5.6.0 users should now be able to define the trusted proxies array using an environment variable. Let us know if this fixes this issue.
Xeudoron commentedon Dec 18, 2025
Hi,
using
image: passbolt/passbolt:5.7.2-1-ceI addedin .env for my compose.yaml and after a restart I still see
but also a new log appears
I wasn't able to find any info on this in docs or elsewhere other than what's in 5.6.0