No description
  • Makefile 84.3%
  • Dockerfile 15.7%
Find a file
Zamir Amir 5387db2da2
All checks were successful
CI / migrations (push) Successful in 10s
CI / chart (push) Successful in 7s
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:12 +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.2.0 2026-11-24 19:40:35 +01:00
migrations Keep the app's signing key and the envelope as encrypted text 2026-11-24 13:06:39 +01:00
.dockerignore Turn the copy of mailbox-host into the hoster's database 2026-11-23 20:40:14 +01:00
Dockerfile Turn the copy of mailbox-host into the hoster's database 2026-11-23 20:40:14 +01:00
LICENSE License under EUPL-1.2 2026-11-23 20:10:32 +01:00
Makefile Release mailbox-host-db with a version, chart and image together 2026-11-24 19:02:13 +01:00
README.md Release mailbox-host-db with a version, chart and image together 2026-11-24 19:02:13 +01:00

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 CloudNativePG Cluster (seccomp RuntimeDefault, required on Fundament) and a post-install/post-upgrade Job that applies the migrations with the connection string from the cluster's <release>-app Secret.

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.