- Go 89.1%
- Makefile 6%
- Dockerfile 3.1%
- Go Template 1.8%
| .forgejo/workflows | ||
| api | ||
| cmd/mailbox-host-management-process | ||
| helm | ||
| internal | ||
| .dockerignore | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
mailbox-host-management-process
The management component of the hoster in Notificatie voor Burgers. It builds the overview for
mailbox-host-management-ui by reading from mailbox-host-service with its own service key, and
holds no data itself. Following the blauwe-knop layering, management is a component of its own:
mailbox-host-management-ui → mailbox-host-management-process → mailbox-host-service →
mailbox-host-db.
Internal only: its Service is reached through the management UI's proxy and never routed directly.
API
The contract is api/openapi.yaml (OpenAPI 3.1, Dutch interface following the NL
API Design Rules), served as JSON at /v1/openapi.json and /v1/openapi.yaml (both committed in api/, as in blauwe knop). Every response carries API-Version;
errors are application/problem+json.
GET /v1/overzicht→{rol: "hoster", aantalBrievenbussen, aantalApparaten, aantalOpgeslagenEnveloppen, bezorgingenPerUur: [{uur, aantal}], recenteGebeurtenissen: [{tijdstip, soort, envelopGrootte}]};502when the service cannot be read
It can only show what the service stores: never a sender, content, functional address or volume per mailbox. An envelope is only a number of bytes, so nothing changes once envelopes are encrypted.
Configuration
MAILBOX_HOST_SERVICE_URL,MAILBOX_HOST_SERVICE_API_KEY: the data layer and this component's service keyLISTEN_ADDRESS: defaults to:8080
CI
.forgejo/workflows/ci.yml tests and lints, checks the OpenAPI document with Redocly and the ADR
checker, lints the chart, and on main pushes
code.digitaledienst.overheid.nl/mijn-betaaloverzicht/mailbox-host-management-process:<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.