No description
  • Makefile 84.4%
  • Dockerfile 15.6%
Find a file
Zamir Amir 6d9c1d6a59
All checks were successful
CI / migrations (push) Successful in 6s
CI / chart (push) Successful in 10s
CI / image (push) Successful in 3s
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.3.0 2026-11-24 20:41:45 +01:00
migrations Keep a log of what happened to registrations and deliveries 2026-11-24 20:19:21 +01:00
.dockerignore Store registrations and their deliveries for the adresregister 2026-11-24 17:15:30 +01:00
Dockerfile Store registrations and their deliveries for the adresregister 2026-11-24 17:15:30 +01:00
LICENSE Store registrations and their deliveries for the adresregister 2026-11-24 17:15:30 +01:00
Makefile Release address-register-db with a version, chart and image together 2026-11-24 19:02:12 +01:00
README.md Release address-register-db with a version, chart and image together 2026-11-24 19:02:12 +01:00

address-register-db

The database of the adresregister in Notificatie voor Burgers: a CloudNativePG Cluster and the migrations that shape it. Only address-register-service talks to this database; the process goes through that service.

It stores, per BSN, the latest registration or closure (the adreskaart, or none when closed), the app's signing key and a version that rises with every change, and per member of the wettelijke kring the delivery of that version. There is no name, no other BRP data and nothing about shipments: the register delivers once per change, never per shipment (docs/adresregister.md in getting-started).

  • 000001_registraties: registraties (one row per BSN) and leveringen (one row per BSN and member; a newer version replaces the row under a new id).

The BSN is stored readable this round; encrypting it in the application comes later (Q164).

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 address-register-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/address-register-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.