DirectorySecurity AdvisoriesPricing
Sign in
Directory
supabase-postgres-meta-fips logoFIPS

supabase-postgres-meta-fips

packaged by Chainguard

Last changed
Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for supabase-postgres-meta-fips

FIPS-mode RESTful API for managing your Postgres. Fetch tables, add roles, and run queries

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/supabase-postgres-meta-fips:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

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-fips image is a FIPS-mode counterpart to the upstream supabase/postgres-meta image on Docker Hub, with these differences:

  • The image runs as the nonroot user (UID 65532) by default. The upstream image runs as root.
  • The application lives under /usr/share/postgres-meta-fips. /usr/src/app is a directory whose dist, node_modules, and package.json entries link 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.

FIPS Support

This Chainguard Container ships with a validated redistribution of OpenSSL's FIPS provider module. For more on FIPS support in Chainguard Containers, refer to the guide on FIPS-enabled Chainguard Images on Chainguard Academy.

Clients such as Supabase Studio can send their own database connection string in the x-connection-encrypted header, encrypted with CRYPTO_KEY. Upstream encrypts and decrypts this header with crypto-js, which derives the key with MD5 outside OpenSSL. This image decrypts it with node:crypto instead: PBKDF2-HMAC-SHA256 with a 16-byte salt and 10000 iterations derives the AES-256-CBC key and IV, and the header value is base64("Salted__" || salt || ciphertext). This has two effects:

  • Set CRYPTO_KEY to a strong secret, for example one from openssl rand -hex 32, and give clients the same key. The FIPS provider does not enforce a key length, and upstream's default, SAMPLE_KEY, is public, so don't use it. Requests without the header use PG_META_DB_URL and do not need the key.
  • Headers in upstream's crypto-js format are refused, so the upstream and non-FIPS Supabase Studio images cannot use this image. Pair it only with a client that uses the same format. Chainguard's supabase-studio-fips package encrypts the header this way, but no FIPS Studio image is available yet.

To connect to PostgreSQL over TLS, put sslmode=verify-full in PG_META_DB_URL and give the CA certificate itself, not a path, in PG_META_DB_SSL_ROOT_CERT:

docker run -d --name pgmeta -p 127.0.0.1:8080:8080 \
  -e PG_META_DB_URL="postgresql://postgres:<password>@<host>:5432/postgres?sslmode=verify-full" \
  -e PG_META_DB_SSL_ROOT_CERT="$(cat ca.crt)" \
  -e CRYPTO_KEY="$(openssl rand -hex 32)" \
  cgr.dev/ORGANIZATION/supabase-postgres-meta-fips:latest

postgres-meta verifies the server certificate and host name only with sslmode=verify-full. With require or verify-ca, the connection is encrypted but the certificate is not verified. Outside a local test setup, use sslmode=verify-full in every connection string, including the ones that clients send in the x-connection-encrypted header, which are verified against the same CA. Upstream applies each connection's sslmode to TLS settings that all connections share, so a connection string with another sslmode can also turn off verification for other connections, including ones whose own string has sslmode=verify-full.

Prerequisites

To follow the examples in this guide, you need:

Getting Started

First, start a PostgreSQL container on a shared network:

docker network create pgmeta-net

docker run -d --name pg --network pgmeta-net \
  -e POSTGRES_PASSWORD=postgres \
  -e POSTGRES_DB=postgres \
  cgr.dev/ORGANIZATION/postgres:latest

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. This local example connects to the database without TLS; for TLS, set sslmode=verify-full as in FIPS Support:

docker run -d --name pgmeta --network pgmeta-net -p 127.0.0.1:8080:8080 \
  -e PG_META_DB_URL="postgresql://postgres:postgres@pg:5432/postgres" \
  -e CRYPTO_KEY="$(openssl rand -hex 32)" \
  cgr.dev/ORGANIZATION/supabase-postgres-meta-fips:latest

Check that the server is healthy:

curl -fsS http://localhost:8080/health

List the schemas in the database:

curl -fsS http://localhost:8080/schemas

List the tables in the public schema:

curl -fsS "http://localhost:8080/tables?included_schemas=public"

Run a SQL query:

curl -fsS -X POST http://localhost:8080/query \
  -H 'Content-Type: application/json' \
  -d '{"query":"select 1 as answer;"}'

When you are done, remove the containers and network:

docker rm -f pgmeta pg
docker network rm pgmeta-net

Deploying with Helm

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:

helm repo add supabase https://supabase-community.github.io/supabase-kubernetes
helm repo update

Create a values file that points the postgres-meta component at the Chainguard image, replaces the chart's public default CRYPTO_KEY, and turns off the chart's Studio:

cat > values.yaml <<EOF
image:
  meta:
    repository: cgr.dev/ORGANIZATION/supabase-postgres-meta-fips
    tag: latest
secret:
  meta:
    cryptoKey: $(openssl rand -hex 32)
deployment:
  studio:
    enabled: false
EOF

Install the chart with the values file:

helm install supabase supabase/supabase \
  --namespace supabase --create-namespace \
  --values values.yaml

The chart deploys the upstream Studio, which encrypts the x-connection-encrypted header with crypto-js, and this image refuses that format, so the example turns Studio off. No FIPS Studio image is available yet. The chart also sets PG_META_DB_SSL_MODE to disable, so postgres-meta connects to the chart's database without TLS inside the cluster. 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.

Configuration

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=verify-full, with the server's CA certificate in PG_META_DB_SSL_ROOT_CERT. 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 API listens on port 8080/tcp, and a metrics server listens on 8081/tcp (PG_META_PORT + 1) at /metrics. Refer to the upstream README for the full list of settings.

Documentation and Resources

What are Chainguard Containers?

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.

Need additional packages?

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.

Learn More

Refer to our Chainguard Containers documentation on Chainguard Academy. Chainguard also offers VMs and Libraries — contact us for access.

Trademarks

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.

Licenses

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:

  • Apache-2.0

  • ISC

  • MIT

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

Chainguard 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 Chainguard

This image helps reduce time and effort in establishing PCI DSS 4.0 compliance with low-to-no CVEs.

PCI DSS at Chainguard

This is a FIPS validated image for FedRAMP compliance.

This image is STIG hardened and scanned against the DISA General Purpose Operating System SRG with reports available.

Learn more about STIGsGet started with STIGs

Related images
supabase-postgres-meta logo

supabase-postgres-meta


Category
FIPS
STIG

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.