No description
  • Makefile 84.3%
  • Dockerfile 15.7%
Find a file
Zamir Amir 747bac5d36
All checks were successful
CI / migrations (push) Successful in 6s
CI / chart (push) Successful in 18s
CI / image (push) Successful in 4s
CI / chart-release (push) Has been skipped
Scan the rendered chart with KICS on every push and pull request
The chart decides whether the container runs as root, privileged or
with a writable filesystem, and helm lint does not judge any of that.
The scan fails on critical and high findings, like blauwe knop's and
dispatch-management-ui's (ADR 0009). A release tag is not scanned, so a
new KICS query cannot hold back a release that is already tagged.
2026-11-25 10:34:11 +01:00
.forgejo/workflows Scan the rendered chart with KICS on every push and pull request 2026-11-25 10:34:11 +01:00
helm Release 0.2.0 2026-11-24 19:40:26 +01:00
migrations Store the burgerenvelop as text: it is a JWE now, not a JSON object 2026-11-24 13:08:34 +01:00
.dockerignore Turn the copy of delivery-process into the bezorgdienst's database 2026-11-23 21:30:37 +01:00
Dockerfile Turn the copy of delivery-process into the bezorgdienst's database 2026-11-23 21:30:37 +01:00
LICENSE License under EUPL-1.2 2026-11-23 20:10:32 +01:00
Makefile Release delivery-db with a version, chart and image together 2026-11-24 19:02:12 +01:00
README.md Release delivery-db with a version, chart and image together 2026-11-24 19:02:12 +01:00

delivery-db

The database of the bezorgdienst in Notificatie voor Burgers: a CloudNativePG Cluster and the migrations that shape it. Only delivery-service talks to this database; the process and the management component go through that service.

It stores the address table (functional address → technical address of a mailbox) and a bounded log of the last 200 events. There is no column for a sender: the bezorgdienst never learns who sent a shipment.

  • 000002_zendingen: zendingen in behandeling (no sender column; delivered zendingen are deleted) and the results poging-mislukt and retour for events.
  • 000003_burgerenvelop_als_tekst: the burgerenvelop is a compact JWE (text); zendingen in progress in the old format are dropped.

Contents

  • migrations/: golang-migrate migrations (up and down)
  • Dockerfile: the image that applies them
  • helm/: the CNPG Cluster (one instance, seccomp RuntimeDefault as Fundament requires) and a migration Job that runs after every install and upgrade. CNPG creates the Secret <release>-app with the connection string under the key uri.

Development

docker run -d --rm --name delivery-db-test -e POSTGRES_PASSWORD=test -p 5432:5432 postgres:17-alpine
migrate -path migrations -database 'postgres://postgres:test@localhost:5432/postgres?sslmode=disable' up
helm lint helm

CI

.forgejo/workflows/ci.yml applies the migrations up, down and up again against a real Postgres, lints the chart and on main pushes the image code.digitaledienst.overheid.nl/mijn-betaaloverzicht/delivery-db:<commit>.

Release

make release VERSION=1.2.3   # on an up-to-date main: writes helm/Chart.yaml, commits, tags v1.2.3
git push --follow-tags

The tag pipeline tags the image 1.2.3 and v1.2.3 and publishes the chart at 1.2.3 to the Forgejo Helm registry (see the charts repository). The environments repository pins that version.

License

EUPL-1.2, see LICENSE.