|
| 1 | +# PostgreSQL 19 beta 4 on Wolfi |
| 2 | + |
| 3 | +This is a disposable Linux/amd64 test image built by Runasmidja, not a |
| 4 | +Chainguard/OpenSerbia/PostgreSQL-maintained distribution or production claim. |
| 5 | +The maintainer authorized the source-build approach on 2026-10-03. |
| 6 | + |
| 7 | +The official [PostgreSQL tarball and checksum](https://www.postgresql.org/ftp/source/v19beta4/) |
| 8 | +are pinned in source.lock.json. The Wolfi base is an immutable platform leaf |
| 9 | +authorized by its signed index and exact reviewed Chainguard workflow/issuer. |
| 10 | +APK verifies repository/package signatures using the base image's bundled keys; |
| 11 | +current repository packages are resolved during each rebuild. Builds are not |
| 12 | +claimed bit-for-bit reproducible; their final dependency inventories are retained. |
| 13 | + |
| 14 | +The example [postgres-wolfi](https://github.com/openserbia/postgres-wolfi/) at |
| 15 | +3f87615e52a712d65e66aea1e49ef7a3d86db808 was reviewed as a design reference. |
| 16 | +Its recipe/entrypoint are not copied. Its PostgreSQL 16–18 package approach does |
| 17 | +not supply 19 beta 4. Our separate compiler stage builds the official source |
| 18 | +and bundled contrib extensions; the runtime has neither compiler, Perl nor gosu. |
| 19 | + |
| 20 | +Only the current fixture is supported: fixed database `runasmidja`, peer local |
| 21 | +authentication, SCRAM host authentication, a validated 64-byte lowercase-hex |
| 22 | +password file and fixed PGDATA. Password envs, root, symlinks, partial/legacy |
| 23 | +data and other database/auth settings are rejected. Initialization runs a |
| 24 | +socket-only temporary server, then starts the final server after setup completes. |
| 25 | +The image runs UID/GID 999 with a read-only root, no capabilities and mapped |
| 26 | +rootless host ownership. The database volume remains writable; socket/temp |
| 27 | +directories are bounded namespace-private sticky tmpfs mounts. |
| 28 | +`qualification_postgres.py` verifies actual UTF8/C.UTF-8, runtime package absence |
| 29 | +and 12 fail-closed startup profiles. Full stack qualification calls it too. |
| 30 | +ICU/readline and unqualified optional integrations are outside this profile. |
| 31 | + |
| 32 | +Use `python3 scripts/build_postgres_image.py` to build/scan, or ordinary |
| 33 | +`stack.py up` to build a missing image and validate it. The image gate requires |
| 34 | +the current recipe fingerprint, local owner-only receipt, immutable image ID, |
| 35 | +archive/config/layer SHA-256 binding and a current scan before execution. |
| 36 | +No signing secret is created: public-source builds need none. Local receipts |
| 37 | +trust the host user; they are not cryptographically authenticated release |
| 38 | +provenance. Production signing/build identity retains its later owner. |
| 39 | + |
| 40 | +Weekly freshness checks detect upstream PostgreSQL releases/checksum drift and |
| 41 | +new Wolfi base indexes. Review/update pins, rebuild, rescan and requalify before |
| 42 | +admission. A new image ID cannot silently replace an existing container. |
| 43 | +The old official PostgreSQL pin and data stay retained, with no CVE waiver. |
| 44 | +The application component is recorded with its source hash in the runtime SBOM; |
| 45 | +Trivy's OS scan does not automatically analyze advisories for compiled C source. |
| 46 | +PostgreSQL upstream security/release review remains a separate requirement. |
| 47 | +The [security information](https://www.postgresql.org/support/security/), |
| 48 | +[19 beta 4 announcement](https://www.postgresql.org/about/news/postgresql-19-beta-4-released-3386/) |
| 49 | +and [preceding security update](https://www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365/) |
| 50 | +were reviewed on 2026-10-03. This beta fixture does not certify all PostgreSQL |
| 51 | +features; the existing beta-to-GA upgrade and production qualification passes |
| 52 | +remain required. |
| 53 | + |
| 54 | +The recipe/entrypoint are EUPL-1.2. PostgreSQL remains under its |
| 55 | +[PostgreSQL License](https://www.postgresql.org/about/licence/), not EUPL; |
| 56 | +Wolfi packages retain their individual SBOM licenses/source notices. Public image |
| 57 | +redistribution needs the complete corresponding notices/source obligations and |
| 58 | +separate publishing authorization. This task publishes no image or tag. |
0 commit comments