Files
Jeremy Schneider 0c6740f146 feat: include authenticated user identity in HTTP access log (#9991)
Set an X-Remote-User response header containing the authenticated username
on every request when the LOG_AUTHENTICATED_USER config option is enabled
(disabled by default). This allows the HTTP access log to be configured to
include user identity via standard log format directives
(%({x-remote-user}o)s in gunicorn, %{X-Remote-User}o in Apache) without
requiring any changes to pgAdmin's session or authentication behaviour. The
default gunicorn access log format is updated to surface the header.

The username is sanitised to a header-safe value: it is transliterated to
Latin-1 (HTTP headers are Latin-1 only) and any non-printable characters,
including CR/LF, are stripped, so unusual usernames cannot cause a 500 on
every response.
2026-06-19 09:26:32 +01:00
..
2021-02-09 16:15:13 +00:00

pgAdmin Docker Container Builds

This directory contains the files required to create a docker container running pgAdmin.

Building

From the top level directory of the pgAdmin source tree, simply run:

docker build .

You can also run make docker, which will call docker build . but also tag the image like:

pgadmin4 pgadmin4:latest pgadmin4:4 pgadmin4:4.12

WARNING

The build should be run in a CLEAN source tree. Whilst some potentially dangerous files such as config_local.py or log files will be explicitly excluded from the final image, other files will not be.

Running

See the documentation at docs/en_US/container_deployment.rst for information on running the container.