45 Architecture
lip edited this page 2026-12-01 09:48:25 +00:00

Architecture

Running in the dev stack: konbi/infra → stack/, on *.dev.konbi.cc. Official images, pinned versions.

stack/compose.yaml is the stack as installed on a server; the dev server adds compose.dev.yaml and dev/ (images built there, Forgejo's address, test users). The stack in use is to move to a server of its own, this one keeping builds, tests and deployment (decision 144). The install and what it still lacks: README.

Component Role Dev URL Repo
LLDAP 0.6.3 People, groups and aliases: the single place accounts are created https://ldap.dev.konbi.cc (behind Authelia) konbi-lldap (fork)
Stalwart 1.1.0 Mail server. Its only directory is LLDAP (LDAP bind for passwords). A webmail@ account opens the signed-in person's mailbox for the webmail. File storage turned off https://stalwart.dev.konbi.cc, IMAPS 993, SMTP 465 konbi-stalwart (fork)
Bulwark 1.22.1 (our build) Webmail; Authelia signs people in (decision 132), hosts our plugins. Built from konbi-bulwark: upstream plus what the core needs (decision 138) https://mail.dev.konbi.cc konbi-bulwark (fork)
Authelia 4.39 The sign-in (webmail, Photos), and 2FA for the admin pages (forward-auth) https://auth.dev.konbi.cc konbi-authelia (fork)
SFTPGo 2.7.6 File storage, WebDAV and share links; replaces Stalwart's file storage https://files.dev.konbi.cc, https://dav.dev.konbi.cc konbi-sftpgo (fork)
EdenText 0.16.0 Word processor (.docx, .odt) the SFTPGo plugin embeds; static, holds no documents https://docs.dev.konbi.cc - (official image + infra/stack/edentext shim)
konbi draw (Excalidraw 0.18, pdf.js, Toast UI, open-xlsx-editor 0.9.1) The editors Drive embeds: whiteboard, PDF viewer, Markdown, spreadsheet; static, holds no files https://draw.dev.konbi.cc infra/stack/draw
Immich 3.4.2 Photos and videos: timeline, albums, places, sharing, phone backup. No machine learning, so no search by content or faces (decision 142). Driven from Bulwark by the Photos plugin (API through Bulwark's proxy, each person's own key from sftpgo-hooks' provisioning service); sign-in with Authelia (OIDC); sftpgo-hooks/group_albums.py keeps an album per team group https://photos.dev.konbi.cc (web and mobile app) - (official images)
sftpgo-hooks Checks WebDAV passwords against LLDAP; creates SFTPGo users for the files group; hands the Drive and Photos plugins their person's keys; moves shared folders; keeps Photos' group albums and access (to be split: Services) - infra/stack/sftpgo-hooks
Caddy TLS (Let's Encrypt) and routing - -
Forgejo This server: code, issues, CI http://15.235.253.162:3000 -
           LLDAP  ── accounts, aliases, groups
          /  |  \
 Stalwart    |   Authelia ── the sign-in ──► Bulwark, Photos
 (LDAP dir)  |   (LDAP)    └─ forward-auth ─► LLDAP UI, SFTPGo admin
     │       └─ sftpgo-hooks ─► SFTPGo (WebDAV passwords, auto-create users in `files`)
     └─ JMAP ──► Bulwark (opens the signed-in person's mailbox)

Accounts and groups

  • mail group: has a mailbox. files group: has SFTPGo storage. lldap_admin: admin pages.
  • Primary address in mail; aliases in mailAlias1…mailAlias5 (LLDAP can't filter on list attributes yet, see konbi-lldap #4).
  • Group folders in Drive: each LLDAP team group is a shared SFTPGo folder for its members, mounted by sftpgo-hooks at login: at /<group>, or in one of the person's own folders where they moved it (decision 58).
  • Directory (Bulwark Contacts > Directory): the accounts Stalwart knows, which it creates from LLDAP on first use; scripts/sync-directory.py adds every konbi member up front and keeps their cards in the team address book, as the service account directory-sync (decision 143).
  • A group with a mail attribute (e.g. konbi@, the whole team) is a Stalwart shared mailbox: members open it under "Shared"; it isn't copied to their inboxes.

Plugins instead of frames

Features from other services appear inside Bulwark as plugin pages with clean URLs (/apps/sftpgo/files/<path>, /apps/stalwart-lldap/people/<uid>), drawn with Bulwark's UI kit. Plugins reach other services only through Bulwark's credential proxy, which holds the secret server-side. That's why our forks add API keys (LLDAP L1, SFTPGo S1).

The SFTPGo plugin, shown to users as Drive, is the hub for files: its app (left menu, folders, links) also opens documents in EdenText, spreadsheets and whiteboards in konbi draw (/apps/sftpgo/files/~edit/<path>), and zips (SFTPGo streamzip) or unzips (in the browser) files. The plugin always holds the file: it reads it from SFTPGo, hands the bytes to the editor and writes the result back. EdenText runs inside the plugin's sandbox (opaque origin), so it gets a small storage shim and no frame-ancestors.

Authelia's own pages stay separate on purpose: WebAuthn keys are bound to its origin.

Removed parts

Tasks, Projects, AI, Chat (with calls) and Newsletters were optional parts of the stack. Since 2026-12-01 they are no longer in infra (decision 140); the tag CORE-1.0RC has them, with the webmail that runs them. Tasks are the webmail's own: in the calendar, kept by Stalwart, over CalDAV at https://stalwart.<domain>/dav/. What a stack that ran a part keeps: stack README, "Removed parts".