packaged by Chainguard
Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.
A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries
Chainguard Containers are regularly-updated, secure-by-default container images.
For those with access, this container image is available on cgr.dev:
Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.
postgres-meta is a RESTful API for a PostgreSQL database. It lets you inspect schemas, tables, and columns, create and drop tables and columns, and run SQL queries over HTTP. It is built with TypeScript on Node.js and licensed under the Apache License 2.0. Refer to the upstream README for the complete API.
Chainguard's supabase-postgres-meta image is comparable to the upstream supabase/postgres-meta image on Docker Hub, with these differences:
65532) by default. The upstream image runs as root./usr/share/postgres-meta. /usr/src/app links to it so the upstream working directory and command still work.The image keeps the upstream entrypoint (docker-entrypoint.sh), command (node dist/server/server.js), and PG_META_PORT=8080 default.
To follow the examples in this guide, you need:
cgr.dev/ORGANIZATION/supabase-postgres-meta. Refer to Authenticating with the Chainguard Registry.postgres image.First, start a PostgreSQL container on a shared network:
Next, run postgres-meta and point it at the database. The 127.0.0.1 prefix publishes port 8080 on the loopback interface only, so other hosts cannot reach the unauthenticated API:
Check that the server is healthy:
List the schemas in the database:
List the tables in the public schema:
Run a SQL query:
When you are done, remove the containers and network:
postgres-meta is usually deployed as one component of the full Supabase stack. The community Supabase Helm chart deploys it alongside the other Supabase services, and its image.meta values select the postgres-meta image.
Add the chart repository:
Create a values file that points the postgres-meta component at the Chainguard image:
Install the chart with the values file:
This example replaces only the postgres-meta image. The chart's other components, such as the database, auth, REST, realtime, and storage services, keep their upstream images. In particular, the chart's database uses Supabase's extended PostgreSQL image, which ships extensions and initialization scripts the other services depend on, so don't swap it for a plain PostgreSQL image. Chainguard has not validated replacements for those companion images with this chart.
If you pull from a private Chainguard registry, create an image pull secret in the namespace and reference it with image.meta.pullSecrets in values.yaml. Refer to the chart's values.yaml for the database connection and other settings.
You configure postgres-meta with environment variables. For example, to serve the API to other containers on the same network while connecting to a database that requires TLS, set:
PG_META_DB_URL: The PostgreSQL connection string, such as postgresql://user:password@db:5432/postgres?sslmode=require. postgres-meta uses this connection for every request that does not supply its own, so give it a database user with only the privileges your clients need.PG_META_HOST: The address the HTTP server binds to. Keep the default to listen on all container interfaces, and control exposure with the container's port mapping or a Kubernetes Service.PG_META_PORT: The port the HTTP server listens on. The image sets it to 8080, matching upstream; change it only if that port conflicts with another service.The image exposes port 8080/tcp. Refer to the upstream README for the full list of settings.
Chainguard's free tier of Starter container images are built with Wolfi, our minimal Linux undistro.
All other Chainguard Containers are built with Chainguard OS, Chainguard's minimal Linux operating system designed to produce container images that meet the requirements of a more secure software supply chain.
The main features of Chainguard Containers include:
For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a development, or -dev, variant.
In all other cases, including Chainguard Containers tagged as :latest or with a specific version number, the container images include only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager.
Although the -dev container image variants have similar security features as their more minimal versions, they include additional software that is typically not necessary in production environments. We recommend using multi-stage builds to copy artifacts from the -dev variant into a more minimal production image.
To improve security, Chainguard Containers include only essential dependencies. Need more packages? Chainguard customers can use Custom Assembly to add packages, either through the Console, chainctl, or API.
To use Custom Assembly in the Chainguard Console: navigate to the image you'd like to customize in your Organization's list of images, and click on the Customize image button at the top of the page.
Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.
This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.
Chainguard's container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:
ISC
MIT
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementChainguard Containers are SLSA Level 3 compliant with detailed metadata and documentation about how it was built. We generate build provenance and a Software Bill of Materials (SBOM) for each release, with complete visibility into the software supply chain.
SLSA compliance at ChainguardThis image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.
PCI DSS at Chainguard