No description
  • Makefile 84.4%
  • Dockerfile 15.6%
Find a file
Zamir Amir 6c143e45d5
All checks were successful
CI / migrations (push) Successful in 7s
CI / image (push) Successful in 4s
CI / chart-release (push) Successful in 4s
CI / chart (push) Successful in 5s
Release 0.3.0
2026-11-25 11:20:54 +01:00
.forgejo/workflows Scan the rendered chart with KICS on every push and pull request 2026-11-25 10:34:12 +01:00
helm Release 0.3.0 2026-11-25 11:20:54 +01:00
migrations Let a bericht name the vordering it is about 2026-11-25 11:06:48 +01:00
.dockerignore Offer shipments for a functional address as bronorganisatie 2026-11-23 11:13:02 +01:00
CHANGELOG.md Let a bericht name the vordering it is about 2026-11-25 11:06:48 +01:00
Dockerfile Turn the copy of source-organization-process into the bronorganisatie's database 2026-11-23 21:59:59 +01:00
LICENSE License under EUPL-1.2 2026-11-23 20:10:32 +01:00
Makefile Release source-organization-db with a version, chart and image together 2026-11-24 19:02:13 +01:00
README.md Release source-organization-db with a version, chart and image together 2026-11-24 19:02:13 +01:00

source-organization-db

The database of the bronorganisatie in Notificatie voor Burgers (blauwe-knop layering: process, service, db): a CloudNativePG cluster and the migrations of its schema. Only source-organization-service talks to it.

Migrations: 000001_berichten (berichten and volgnummers), 000002_retour (the verzenddienst's zending_referentie per bericht and the moment retour_op its zending came back as onbestelbaar), 000003_adreskaart (a bericht goes to an adreskaart instead of a functioneel adres) and 000004_volgnummers_per_digest (volgnummers keyed by the SHA-256 of the adreskaart, which is too long for a btree index entry) and 000005_burgers (the burgers the adresregister delivered, with name, BSN and adreskaart under an id of the bronorganisatie's own; a bericht goes to that id).

Contents

  • migrations/: golang-migrate migrations. Keep source-organization-service/internal/repositories/testdata/schema.sql equal to them; the service tests run against that copy.
  • Dockerfile: an image with nothing but the migrations and migrate.
  • helm/: a CloudNativePG Cluster (one instance, seccomp RuntimeDefault as Fundament requires) and a migration Job that runs after every install and upgrade. CloudNativePG creates the Secret <release>-app with the connection string (uri) that the service reads.

Development

CI applies the migrations up, down and up again against a real Postgres. Locally:

migrate -path migrations -database "$DATABASE_URL" up
helm lint helm

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.