- Makefile 84.3%
- Dockerfile 15.7%
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. |
||
|---|---|---|
| .forgejo/workflows | ||
| helm | ||
| migrations | ||
| .dockerignore | ||
| Dockerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
dispatch-db
The database of the verzenddienst in Notificatie voor Burgers: a CloudNativePG Cluster and the
migrations that shape it. Only dispatch-service talks to this database; the process and the
management component go through that service.
It stores the senders that may dispatch, a bounded log of the last 200 events and the number of forwarded shipments per sender per day, and per zendingReferentie the sender that offered it (for a retour; removed after the retour period). There is no column for a functional address or anything else about the recipient: the verzenddienst knows the sender, never the recipient.
Contents
migrations/: golang-migrate migrations (upanddown)Dockerfile: the image that applies themhelm/: the CNPGCluster(one instance, seccompRuntimeDefaultas Fundament requires) and a migration Job that runs after every install and upgrade. CNPG creates the Secret<release>-appwith the connection string under the keyuri.
Development
docker run -d --rm --name dispatch-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/dispatch-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.