12 Glossary
Domain Terms
| Term | Definition |
|---|---|
| Nebu | Short for Nebuchadnezzar, the ship of the free in The Matrix. The name of this chat server. |
| Matrix | An open standard and communication protocol for real-time communication (https://matrix.org) |
| Homeserver | A Matrix server that stores user accounts, rooms, and events for a domain |
| Room | A Matrix concept: a named, persistent channel where users exchange messages and state events |
| Event | The fundamental unit in Matrix: a JSON object representing a message, state change, or reaction |
| Thread | A Matrix concept (spec §11.12) for grouping related replies under a parent event using m.relates_to with rel_type: "m.thread" |
| Bundled Aggregations | Inline relation metadata (e.g. thread reply count, latest reply) delivered in unsigned.m.relations of a parent event during /sync to avoid extra HTTP round-trips |
| m.relates_to | A Matrix event content key that links a reply or reaction to its parent event via event_id + rel_type |
| Sync | Matrix's long-polling endpoint (GET /sync) that delivers new events and room state to clients |
| since-token | An opaque cursor used with /sync to retrieve only events after a given point in time |
| Content-Hash Event ID | Event ID format $<base64url(SHA-256(canonical_json(event)))> - tamper-evident, deterministic |
| Server-Server API | The Matrix federation protocol - deliberately excluded from Nebu |
| Power Level | A numeric value (0–100) controlling what a room member can do in a room |
| EDU / PDU | Ephemeral Data Unit (typing, presence) / Persistent Data Unit (messages, state) in Matrix terminology |
Technical Terms
| Term | Definition |
|---|---|
| Go Gateway | (Historical, removed ADR-021) The stateless Go binary that formerly handled all HTTP traffic, TLS termination, OIDC validation, and Admin UI serving. Replaced by Nebu.Web + Nebu.Matrix.Http* in the single Elixir application. |
| Elixir Core | (Historical label) The Elixir/OTP application managing stateful chat logic. Now the whole stack — see Nebu application. |
| gRPC | (Historical, removed grpc-removal epic 2026-06-22) Google Remote Procedure Call — was the protocol for Go Gateway ↔ Elixir Core communication. All gRPC dependencies removed; in-process calls use plain Elixir functions. |
| EventBus | (Historical, removed) A gRPC server-streaming service from Elixir Core to Go Gateway for real-time event delivery. Removed with the Go gateway; sync wakeups now use :pg Process Groups. |
| message_buffer | (Historical, removed) A PostgreSQL table that held outgoing events when the Elixir Core was temporarily unavailable (ROT status). No longer needed — the HTTP layer and domain are in-process. |
| Drain Worker | (Historical, removed) A Go goroutine that processed buffered messages from message_buffer. Removed with the Go gateway. |
| GRÜN/GELB/ROT | (Historical, removed) German for Green/Yellow/Red — the three-state health model for the gRPC connection status between Go Gateway and Elixir Core. |
| Horde | An Elixir library providing CRDT-based distributed process registry and supervision (https://hexdocs.pm/horde) |
| ETS | Erlang Term Storage - an in-memory key-value store built into the Erlang/OTP runtime (no Redis needed) |
| libcluster | Elixir library for automatic cluster node discovery (Phase 2) |
| golang-migrate | (Historical, removed ADR-021/ADR-018) Go library for PostgreSQL schema migrations that the Go Gateway formerly ran. Replaced by Nebu.Release.migrate/0 (raw SQL, applied at app startup). |
| MinIO | S3-compatible object storage server used as the local-dev media backend (Epic 12). Apache 2.0 licensed. |
| nebu-media | The MinIO bucket (created by the createbuckets init container) where all media uploads are stored |
| Storer | Go interface (Put / Get / Delete) in media/internal/storage that abstracts file-system and S3 backends. LocalStorer implements it for the local filesystem; MinIOStorer for MinIO. Both handlers depend on Storer via injection (Story 12.2). |
| ClamAV | Self-hosted, open-source malware scanner daemon (clamd). Nebu.Media.ClamAV (a GenServer) speaks its INSTREAM protocol over :gen_tcp; chosen (ADR-024) over commercial/cloud alternatives because no file content or hash ever leaves the deployment — a DSGVO hard requirement (epic media-security-admin-control) |
| Collapsed client address | Every client behind a load balancer / reverse proxy resolves to the proxy's address (empty or wrong NEBU_TRUSTED_PROXY_CIDRS / lb_real_ip_cidrs): all per-IP buckets and per-source caps become global. Safe against spoofing, NOT safe for availability (one source can lock all users out of login). Warned about (never blocked) by W1 / W2 / W3; the manual POSITIVE client-IP test is the gate (story client-ip-misconfiguration-warnings, G3-2) |
| Media State Machine | The media_files.media_state lifecycle every upload passes through: quarantined → scanning → released | infected | scan_failed. No file is served to a Matrix client before reaching released (epic media-security-admin-control, ADR-031) |
| Scan Kill-Switch | Admin-configurable fail_open / fail_closed policy for what happens to in-flight uploads when ClamAV is unreachable. Nebu defaults to fail_closed — uploads queue/retry rather than being released unscanned (Story 10d-scan-kill-switch) |
| oapi-codegen | (Historical, removed ADR-021) A Go code generator that produced types and a ServerInterface from an OpenAPI 3.1 YAML spec. Removed with the Go gateway. |
| PSK | Pre-Shared Key - used for node registration security in the MVP (Docker Compose secrets) |
| mTLS | Mutual TLS - ephemeral certificate-based authentication planned for Phase 2 node registration |
| AIMD | Additive Increase Multiplicative Decrease - the adaptive drain rate algorithm for Phase 2 |
| OIDC | OpenID Connect - the authentication protocol used for all user logins (Keycloak, Azure AD, Dex, Google) |
| PKCE | Proof Key for Code Exchange - OIDC extension required for public clients |
| Bootstrap Mode | First-run state where the first OIDC login automatically receives instance_admin role |
| Four-Eyes Principle | Compliance access requires approval from two instance_admin users |
| Ed25519 | A fast elliptic-curve signing algorithm used for message non-repudiation |
| X25519 | An elliptic-curve Diffie-Hellman key exchange algorithm used for PII encryption |
| Canonical JSON | Deterministic JSON serialization (keys sorted alphabetically) used for event hashing |
| GDPR / DSGVO | General Data Protection Regulation (EU) / Datenschutz-Grundverordnung (German) |
| arc42 | A lean architecture documentation framework - see https://arc42.org |
| BMAD | Build More Architect Dreams - the agent-driven development method used for Nebu development |
| Trace Map Leitstand | The radial SVG "control room" visualization at /admin/logs/trace-map — nebu at center, domain circles (Matrix/Admin/Media/Health) on a compass layout around it, satellite endpoint nodes fanned around each domain, health-status color coding (epic enhanced-logging) |
| War Room Mode | A bounded, tagged, self-terminating diagnostic logging session (max entries / max duration), distinct from the persistent global DEBUG-collection toggle |
| Temporary Capture | A fine-grained, one-click, fixed 5-minute per-endpoint DEBUG/INFO logging override, for endpoints normally off by default (e.g. /sync) |
| OIDC Scopes Law | The base OIDC scope is always openid; extra scopes (profile/email/groups/etc.) are requested ONLY when an operator explicitly configures them — never a hardcoded default (bugfix-remove-default-scopes, centralized in Nebu.Web.OidcScopes) |
| SSO redirect confirmation | Page of the legacy m.login.sso flow (GET/POST /_matrix/client/v3/login/sso/confirm) shown after the IdP login when the client's https redirectUrl origin is not trusted; only Continue mints the loginToken. Trusted origins: https://<server_name>, the OAuth issuer, approved OAuth clients' registered redirect URIs and the Admin list sso_redirect_allowed_origins |
Roles
| Role | Definition |
|---|---|
| instance_admin | Can manage users, rooms, and configuration; can approve compliance requests |
| compliance_officer | Can request and access compliance exports (four-eyes approval required) |
| user | Regular chat user; no administrative privileges |
| Operator | The organization or individual who deploys and runs a Nebu instance |
| Hoster | An IT service provider who runs Nebu as a managed service for customers |
Source: CLAUDE.md, §Tech Stack, §Matrix API Scope; _bmad-output/planning-artifacts/architecture.md, §Naming Conventions; _bmad-output/planning-artifacts/prd.md, §User Journeys; Story 9-28 (Thread, Bundled Aggregations, m.relates_to); epic media-security-admin-control, Stories 3 (ClamAV GenServer) and 10d (Scan Kill-Switch)