Skip to content
fyannkPublic

About

pgAdmin 4 container images for restricted OpenShift and Kubernetes: no Linux capability, no setuid or sudo in the hardened variant, rebuilt when a fix lands, signed, and scanned nightly next to the official image with grype and Trivy.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

54 Commits

Folders and files

fyannk/pgadmin logo: an elephant peeking over an application window bearing an ermine

pgadmin

pgAdmin 4 for restricted OpenShift and Kubernetes, with no privileged component left in the image.
Rebuilt as soon as a fix lands, signed, and measured against the official image every night, in public.

Nightly security report CI status Signed with cosign On GitHub Container Registry Apache-2.0 license On Docker Hub

The same pgAdmin release as the official image, without the capability a restricted platform refuses, so it runs as an unprivileged user or under whatever UID OpenShift assigns. The hardened variant goes further: rebuilt from pgAdmin's source with no setuid binary, no sudo and no mail server, and rebuilt again whenever Alpine or Python ship a fix. Every night both are scanned next to the official image; the report shows the result, including whatever is still left.

Important

This does not make pgAdmin itself any safer, and it cannot fix a vulnerability before Alpine, Python or the pgAdmin project do. "No known, fixable vulnerabilities" means none that the scanners know about and that have a fix that can be applied today; the report shows the rest, and how current the scanners' data is. The hardened variant also leaves out password-reset email, which needs the bundled mail server.

Note

An independent, personal project. It is not affiliated with, endorsed by or sponsored by the pgAdmin project, the PostgreSQL project, Docker, or any company.

Why use it?

  • Restricted-ready: no Linux capability and no root step, so it runs under OpenShift's restricted profile.
  • Patched sooner: the hardened variant is rebuilt when a fix lands, and at least once a week.
  • Two choices: latest for the hardened rebuild, <version> for the official image with only its capability removed.
  • Proven, not promised: a public, nightly comparison with the official image.
  • Signed: each image is signed as it is published, and comes with the list of what is inside it.

Quick start

docker run -d --name pgadmin -p 8080:8080 \
  -e PGADMIN_DEFAULT_EMAIL=admin@example.com \
  -e PGADMIN_DEFAULT_PASSWORD=change-me \
  ghcr.io/fyannk/pgadmin:latest

It listens on 8080 rather than 80, since binding a privileged port is exactly what it gives up. Everything else documented for the official image works the same way. The images are also on Docker Hub as fyannk/pgadmin.

Project status

Maintained. The newest pgAdmin release is published, for linux/amd64.

Documentation

Contributing

Contributions are welcome. Read CONTRIBUTING.md first. For larger changes, open an issue before writing code.

Security

Report vulnerabilities privately, as described in SECURITY.md.

License

Apache-2.0. See LICENSE. The images contain pgAdmin, under the PostgreSQL Licence, and the official image's own files; see NOTICE.


PostgreSQL® and the Slonik logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada. This project is not affiliated with or endorsed by the Association, nor with the pgAdmin project, whose release it packages.

About

pgAdmin 4 container images for restricted OpenShift and Kubernetes: no Linux capability, no setuid or sudo in the hardened variant, rebuilt when a fix lands, signed, and scanned nightly next to the official image with grype and Trivy.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages