Skip to content

Technical documentation ​

This section covers Registry's engineering: the two-service architecture, the reactive backend, the Angular frontend, the data model and API contracts, the security model, and the Architecture Decision Records (ADRs) that justify each choice. It assumes the functional documentation — in particular the Roles and permissions baseline — is understood.

The system at a glance ​

Registry ships as two independently versioned services and two supporting infrastructure components:

The browser loads the SPA from nginx, which calls the backend over REST, authenticating with HttpOnly cookies rather than a token kept in JavaScript. Authentication is delegated to an external OIDC provider; the backend both validates JWTs (as a resource server) and orchestrates the code/refresh exchanges (as a confidential client). All state lives in a single PostgreSQL database. See Security for the cookie/CSRF mechanics and the separate, unauthenticated management port that carries health, metrics and documentation.

Documentation map ​

PagePurpose
Getting startedRun the whole stack locally: prerequisites, dependencies and configuration
ArchitectureThe hexagonal backend, the Angular frontend, and the end-to-end path of a request
Backend · FrontendHow each service is built, tested and configured
E2E testsThe Playwright suite that checks user journeys in a real browser, and its conventions
Development conventionsThe rules shared by the repositories: writing code, tests, reviews, branches and commits
SecurityEach security mechanism, what it is for and what it prevents (beginner-friendly)
Data modelThe PostgreSQL schema, entity relationships, history, audit and search
API contractThe shared conventions of /api/v2 and its organization by domain (the details are in OpenAPI)
GlossaryThe technical terms, jargon and acronyms used in the documentation, with their definitions
ADR indexAll the Architecture Decision Records, in causal order

Stack summary ​

Versions are given to the major version; the source repositories contain the exact versions.

LayerBackendFrontend
LanguageKotlin (JVM toolchain pinned by Gradle)TypeScript
FrameworkSpring Boot · WebFlux (reactive)Angular (standalone, zoneless)
ArchitectureHexagonal (ports and adapters), checked by ArchUnitcore / pages / shared, stores loaded on demand per route
State / dataR2DBC (reactive) + Flyway migrations@ngrx/signals stores behind per-domain facades
UI—@sgdf/ui web components + Tailwind CSS (layout only)
AuthOAuth2 resource server + confidential client (OIDC), HttpOnly cookies, stateless HMAC CSRFwithCredentials HTTP interceptor relaying the CSRF header, route guards
TraceabilityAudit log of access to personal data, log history—
HardeningRate limiting, security headers, isolated management portnginx: nonce-based CSP, hardening headers
API docsspringdoc OpenAPI 3.0 (enabled by feature flag)—
i18nSpring MessageSource (en, fr)Transloco (fr, en)
ObservabilityActuator + Micrometer/Prometheus—
BuildGradle (Kotlin DSL)Angular CLI + pnpm
Runtime imageDistroless Java, non-root, JVM jarUnprivileged nginx serving the static bundle
PersistencePostgreSQL (pg_trgm trigram search)—
Releasesemantic-release → GHCR (retention of 5)semantic-release → GHCR (retention of 5)