Aller au contenu principal

Architecture overview

Every service owns its MongoDB database (or immudb for audit), is stateless and scales horizontally. The public API is REST/JSON behind a custom Go gateway; services talk to each other through ConnectRPC (synchronous queries) and Kafka (events).

Routes for files, inventory and events come from the compose GATEWAY_ROUTES; borrowing (in progress) and vision are not shown.

Services​

ServiceLangResponsibilityStatus
gatewayGoRouting, browser sessions (BFF), API keys, principal signing, rate limiting, public cache, security headers, dev loginImplemented
authzGoPermission catalogue, roles, grants, API keys, Permify facade, Keycloak role sync, login history, organization settingsImplemented
membersGoProfiles, Workspace + Keycloak provisioning, membership terms, statuses, mandates, trainings, history, erasureImplemented
auditGoKafka → immudb writer, audit query APIImplemented
visionPythonCNI / EPITA card extraction, QR detection (stateless)Implemented
filesGoAttachments, upload pipeline, presigned URLsImplemented
inventoryGoItems, consumables, locations, stock, maintenance, issues, labelsImplemented
eventsGoEvents, recurrence, ICS feeds, Google Calendar pushImplemented
borrowingGoBorrowing sheets, external persons, encrypted ID documentsIn progress
bank-syncGoRead-only bank synchronisation (Wise, Enable Banking), consent trackingImplemented
projects, finance, notifications, search, devicesGoSee docs/specs/architecture.mdNot started
webTSTanStack Start frontend (SSR public pages)Public pages, members, profile, administration

Principles​

  • Deny by default: every permission is declared in pkg/catalog and checked through authz.
  • Every write is audited, sensitive reads and every API key call too; audit records hold identifiers only.
  • No PII in Kafka in clear: PII in event payloads is encrypted per subject (encryption).
  • Graceful degradation: rate limits and caches fail open, Kafka publishing from the gateway is buffered, OIDC discovery is lazy.
  • Configuration through env vars only, no data on local volumes (databases and S3 only).

Read next: communication, CQRS and outbox, Kafka topics, identity, authorization, main flows.