- 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 | ||
mailbox-host-db
The database of the hoster in Notificatie voor Burgers: a CloudNativePG cluster and the schema
migrations, following the blauwe-knop layering (mailbox-host-process → mailbox-host-service →
mailbox-host-db). Only mailbox-host-service talks to this database.
Contents
migrations/: golang-migrate SQL files. The access token is stored only as a hash; envelopes are stored as text, character for character, because they are compact JWEs encrypted for the citizen; mailboxes keep the public ECDSA key the app signed their creation with; events have no reference to a mailbox.Dockerfile: the migration image (golang-migrate plus the migrations).helm/: the CloudNativePGCluster(seccompRuntimeDefault, required on Fundament) and a post-install/post-upgrade Job that applies the migrations with the connection string from the cluster's<release>-appSecret.
Install this chart before mailbox-host-service. The cluster's default storage class is used
unless cluster.storage.storageClass is set.
mailbox-host-service/internal/repositories/testdata/schema.sql mirrors these migrations for the
service's tests; change both together.
CI
.forgejo/workflows/ci.yml applies the migrations up, down and up again against a Postgres service
container, lints the chart, and on main pushes
code.digitaledienst.overheid.nl/mijn-betaaloverzicht/mailbox-host-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.