Capabilities
A capability is a switch over what this instance offers at all: public links, groups, devices that unlock without the Secret Key. You decide it for every tenant and every member, and a tenant owner can switch some of them off further for their own tenant (ADR 0088).
What a capability is
Section titled “What a capability is”It is not a permission. Who may do what in a space is decided inside the space, by its owner and its members’
roles, not by you. A capability decides whether the thing is offered to anyone. When one is off, the instance leaves
its id out of the list it publishes before sign-in (GET /api/setup), so the web client hides the feature, and the
server refuses the action with 422 capability_disabled, so a client that ignores the list is refused all the same.
The entries form a tree. An id is a dotted path under a root: core for the platform, and an application’s own
name (memories, depot), which is an entry itself: the switch of that application as a whole. An entry is active only when it and every entry above it are on: the server ANDs along the
path, and no client works it out itself. Switching a parent off therefore switches its children off. A child keeps
its own switch while that happens: a child you switched off yourself stays off when its parent comes back on, and a
child you left on comes back with it.
There are two levels. You switch for the whole instance. A tenant owner switches for their own tenant as well, in
the tenant settings of the web client (Settings → Capabilities), and can only narrow what you allow, never widen it:
an entry is on in a tenant only when it is on for you and for them, along the whole path. Which entries a tenant owner
may switch is the catalog’s levels, marked below and in the console. Entries the web client offers on the sign-in
screen (remembered devices, unlocking without a password, adding a device from another one) are yours alone, because
the sign-in screen reads your list before any tenant is known. The list before sign-in (GET /api/setup) is your level;
after sign-in each member’s client reads their tenant’s (GET /api/tenants/{tenantId}/capabilities), and the gates
refuse per tenant.
Switching off deletes nothing at once. One switch erases later: an application left off in a tenant, whose content there is erased on a day its members are told. What a switch does to what already exists is below.
Switch an entry
Section titled “Switch an entry”In the admin console, Server → Capabilities shows the entries as a tree. Each entry shows its title, what it is for, and its state: On, Off, or Off through the parent that is off. Switch off first shows what that does to new and to existing data, in the entry’s own words, and asks you to confirm. Switch on asks nothing.
The CLI does the same (how to run it and sign in):
docker compose -f "releases/<release>/docker-compose.prod.yml" --env-file .env exec \ -e VEYQ_ADMIN_EMAIL=you@example.com -e VEYQ_ADMIN_PASSWORD \ admin veyq-admin capabilities list| Command | What it does |
|---|---|
capabilities list |
Print the tree: each id indented by its depth, its state (on, off, or off through <id> naming the nearest ancestor that is off), its title, and what it is for |
capabilities off <id> |
Switch the entry off, then print what that does to new and to existing data |
capabilities on <id> |
Switch the entry back on. Under a parent that is still off, it stays off until the parent is on |
All three print text, not JSON. --lang en or --lang de picks the language of the entries’ text. Without it the
CLI reads LC_ALL, then LANG, inside the container: German when the value starts with de, English otherwise.
An id the instance does not know is refused (capability_not_found, exit 1), and nothing is stored.
A switch is stored in the database, so a database backup carries it. It acts on the next request, without a restart: the application reads the switches through an in-process cache that each write clears, which holds for the single replica both recipes run.
External services
Section titled “External services”Four entries are outside services a member’s browser calls directly, never through your server: the map tiles
(memories.map), the geocoder that names places (memories.places), the breached-password check
(core.breached-password) and Expenses’ day exchange rates (expenses.exchange-rates). Their addresses are yours to
set, in Server → External services or with the CLI:
veyq-admin services listveyq-admin services set memories.map --url 'https://tiles.example.com/{z}/{x}/{y}.png' --attribution '© Example'veyq-admin services set memories.places --url https://geocoder.example.comveyq-admin services set expenses.exchange-rates --url 'https://rates.example.com/v2/providers/ecb/rates?date={date}'veyq-admin services unset core.breached-passwordA new instance starts with OpenStreetMap’s tiles, Nominatim, the Have I Been Pwned range API and Frankfurter’s endpoint
for the European Central Bank’s euro reference rates (https://api.frankfurter.dev/v2/providers/ecb/rates?date={date}).
A service is used only while it has an address and its entry is on: the members’ clients read the address from the
capabilities, and the Content Security Policy the server sends allows the service’s origin only then, so a browser
refuses any other. An instance without internet runs with all four unset (or switched off): no map, place names typed
by hand, no check of new passwords against known leaks, exchange rates typed by hand. Map tiles take a {z}/{x}/{y}
template and the attribution your provider asks for; the geocoder takes a Nominatim-compatible base address; the
breach check the prefix the first five characters of a hash are appended to; the exchange rates a template holding
{date} (the device’s date, YYYY-MM-DD) that answers the whole day’s table of ECB rates in Frankfurter’s v2 shape —
a mirror or a Frankfurter you run yourself. An address without its placeholders, or an attribution for a service that
takes none, is refused. A tenant owner may switch the maps, the place names and the exchange rates off for their own
space, and the exchange rates’ switch reaches that space’s link guests too; the policy follows your level only. The
admin console’s own first-run screen reaches only the default breach-check address.
Requirements
Section titled “Requirements”A requirement tightens an entry instead of switching it off (ADR 0088 decision 8). In the console each entry lists its requirements with Require and Clear; a requirement of days takes a number from 1 to 3650 first. Setting one shows what it does to what exists and asks you to confirm. The CLI:
veyq-admin capabilities require core.public-shares --requirement linkMaxDays --value 30veyq-admin capabilities require core.public-shares --requirement linkPassword --value 1veyq-admin capabilities require core.public-shares --requirement linkMaxDays --value offcapabilities list prints each entry’s requirements with their value. A tenant owner can set the requirements of the
entries they may switch for their own tenant; the value in effect is the stricter one (a flag set at either level, the
smaller number of days), so a tenant tightens yours and never loosens it. Every member’s client reads the values with
the capability, before sign-in yours, after it the tenant’s.
| Requirement | What it does |
|---|---|
Every link needs a passwordcore.public-shares linkPassword (flag) | Every link needs a password; existing links without one stop working until they get one. |
Links expire after this many dayscore.public-shares linkMaxDays (days) | Every link expires after this many days at the latest; existing links without an end date, or with a later one, stop working until they get one that fits. An expired link can be renewed. |
Being added to a group needs a yescore.group-space addConsent (flag) | Whoever is added to a group is asked first and joins only once they say yes, whatever their own setting says. Members already in a group stay. |
Ask for the password again after this many dayscore.remember-device passwordMaxDays (days) | Every signed-in device, remembered ones too, asks for the password again once this many days have passed since it signed in or was added. Devices already past that are asked within a quarter of an hour. |
A requirement acts at once, on what exists too: a link that misses one answers its guests like an unknown link until
its owner fixes it or you clear the requirement; nothing is written onto it. The members’ list of links marks such a
link and names why, a switch included, so nobody has to try a link to find out. passwordMaxDays is yours alone, like the
remembered-device switches, and counts from a session’s sign-in, or from the moment a device was added from another
one: switch core.device-linking off if a device must never get a session without the password.
The built entries
Section titled “The built entries”This table is generated from the catalog every client reads its words from
(contracts/platform/capabilities.json),
so it says what the console and the CLI say. Children are indented under their parent.
| Entry | What it is for, and what switching it off does |
|---|---|
Public links core.public-sharestenant owners too | Members can share the content of an area publicly for viewing via a link. Off: No new public link can be made, and existing links stop working at once, the two kinds below included. Nothing is deleted, so the links work again once this is back on. |
Links to look and add core.public-shares.contributetenant owners too | A public link whose guests can add to what they see, not only look at it. What a guest can add is up to the application the link leads into. Off: No new link of this kind can be made, and existing ones stop working at once. What guests added stays, and the links work again once this is back on. |
Drop boxes core.public-shares.drop-boxtenant owners too | A public link through which guests can add, but cannot see what is already there or what others added. Off: No new link of this kind can be made, and existing ones stop working at once. Drop boxes keep what is in them, and the links work again once this is back on. |
Links shown on other servers core.public-shares.embeddabletenant owners too | A member of another veyq server who keeps a link made here can see and use its content inside their own space. Their browser reads the link from this server directly, as when the link is opened, and this server learns nothing more than then. Off: Members of other servers can open links made here only on the link's own page, in a new tab. The links themselves keep working, and nothing is deleted. |
Received links opened in place core.share-embeddingtenant owners too | A link someone sent a member, kept in a space, shows its content right there, from this or any other veyq server. For this, members' browsers may connect to any HTTPS server, not only to this one and the services set here; this server still learns nothing of what they read. Off: A kept link opens the link's own page in a new tab again, and members' browsers may reach only this server and the services set here. Nothing kept is deleted. |
Groups core.group-spacetenant owners too | Members can create groups: spaces that several members use together, beside each member's own personal space. Off: No new group can be created, so only personal spaces are offered. Groups that already exist stay and work as before. |
Remembered devices core.remember-device | A device a member has signed in on can keep a key of its own, so that it unlocks next time with the password alone, without the Secret Key from the Emergency Kit. Off: No device can be newly remembered, and devices remembered before stop unlocking that way at once; unlocking without a password is off too. Members then need their password and their Secret Key from the Emergency Kit. Nothing is deleted, so switching back on restores every remembered device. |
Unlock without a password core.remember-device.passwordless | A remembered device can open straight in, with neither the password nor the Secret Key, because it holds a key that is enough on its own. Off: No device can be newly set up to unlock without a password, and a device added from another one keeps no key. Devices set up this way stop opening straight in at once; members then need their password and their Secret Key from the Emergency Kit. Nothing is deleted, so switching back on restores them. This entry is also off whenever Remembered devices is off. |
Add a device from another one core.device-linking | A member signs in on a new device by pairing it through a QR code with a device that is already unlocked, without typing the password and the Secret Key on the new one. Off: No device can be added this way any more, and an addition already under way stops. Devices added before are not affected. Members sign in on a new device with their password and their Secret Key. |
Breached-password check core.breached-password | When someone chooses a password, the browser asks a breached-password service whether it appears in a known leak, and warns them if it does. The service’s address is a setting of this instance. Off: Nobody’s new password is checked against known leaks any more, and the browser is no longer allowed to reach the service at all. Passwords already chosen are not affected. The same holds while no address is set. |
Memories memoriestenant owners too | Members keep photos and videos in Memories, with chapters, and share them. Place names and maps belong to it. Off: Nothing new can be added to Memories or changed in them. Where Memories already exist, everything there can still be opened and downloaded until the day shown at the top of veyq; then it is erased, unless Memories is switched on again before. Where there are none, Memories is simply not offered. |
Place names memories.placestenant owners too | A Memory’s place is named from its coordinates by a geocoding service the browser asks directly, so the name appears without typing. The service’s address is a setting of this instance. Off: No place is named by the service any more: members type a place’s name, and the browser is no longer allowed to reach the service. Places already named keep their names. The same holds while no address is set. |
Maps memories.maptenant owners too | Memories and spaces show a map of their places, drawn from map tiles the browser loads from a tile service. The service’s address and its attribution are settings of this instance. Off: No map is shown any more and no pin can be dropped on one; places stay, with their names, and can still be named by hand. The browser is no longer allowed to load tiles. The same holds while no address is set. |
Depot depottenant owners too | Members keep documents and any other file in their spaces, and collect files from others in drop boxes. Off: No files can be added or changed. Where files already exist, everything there can still be opened and downloaded until the day shown at the top of veyq; then it is erased, unless Depot is switched on again before. Where there are none, Depot is simply not offered. |
Expenses expensestenant owners too | Members and their link guests record shared expenses in Pots and see who owes whom. Off: No Pot can be created and no entry added or changed. Where Pots already exist, each can still be opened and downloaded until the day shown at the top of veyq; then it is erased, unless Expenses is switched on again before. Where there are none, Expenses is simply not offered. |
Exchange rates expenses.exchange-ratestenant owners too | Where an entry’s currency differs from its Pot’s, the browser fetches the day’s exchange rates from a rate service once a day and fills in the rate. The service’s address is a setting of this instance. Off: No rate is filled in any more: whoever writes an entry in another currency types its rate, and the browser is no longer allowed to reach the service. Entries already saved keep their rates. The same holds while no address is set. |
What acts at once, and what only on new data
Section titled “What acts at once, and what only on new data”The rule (ADR 0088 decision 5) is that a switch whose purpose an existing thing would defeat acts on that thing too, and any other switch refuses only what is new.
- Device switches act at once. With
core.remember-deviceoff the server leaves every remembered device’s key out of what it hands a member at sign-in; withcore.remember-device.passwordlessoff, every password-less device’s. It deletes neither. A member on such a device then needs the password and the Secret Key from the Emergency Kit, and the sign-in screen says why. The password with the Secret Key always works, so nobody is locked out, and switching back on lets every device unlock as before. Tell your members before you switch one off.core.device-linkingoff also stops an addition that is under way; devices added before are not affected. - Share switches act at once, on existing links too. With a share switch off, no link of its kind can be made,
renewed or switched back on, and every link of its kind that already exists stops working: a guest sees the same
“This link isn’t available” page as for an expired link, and nothing tells them the instance switched it off.
core.public-sharesstops every kind, its two children only their own. Nothing is deleted, so switching back on brings every link back as it was. A download or upload address the server signed just before stays usable until it expires, ten minutes by default, as after a member turns a link off. - An application switch acts at once, and makes the application read-only. With
memories,depotorexpensesoff, nothing of that application can be added or changed: no new Memory, file or Pot, no upload, entry, rename, move, cover or new link, and a guest’s write through a link that exists is refused. Everything in it still opens and downloads, for members and through the links that exist, and members can still delete to the trash and restore. A rotation of keys and a moderation measure still reach it. The application’s own entries below it (memories.places,memories.map,expenses.exchange-rates) are off with it. - An application left off is erased on its day. When an application goes off for a tenant that holds something
of it, at your level or the tenant owner’s, the tenant gets a day: that moment plus
veyq.application.off.retention, 30 days unless you set another (Configuration). Every member sees a banner naming the day, the tenant owner sees it beside the entry, and where the instance has its own mail (Storage and email) every member is mailed a notice and, seven days before the day, a reminder. On the day, everything of that application made before it is erased in every space of the tenant, personal spaces included, the way the trash’s purge erases: its files, the erasure ledger a restore replays, and every moderation hold’s copy kept. Folders stay. Switched back on before the day, nothing is erased and everything is as before; switched on after it, the erasure completes, and only what members then make as a new Memory, file or Pot stays. Switched off for the whole instance, every tenant gets its own day, a tenant already off keeps its earlier one, and the notice says only you can switch it back on. Only an application’s own entry erases;memories.placesand the other children erase nothing. - Where nothing of it exists, an application off is simply absent. A tenant that holds nothing of the application, nothing in its trash either, gets no day, no banner and no mail: its members are not offered it, and that is all. That is a tenant created while you hold the application off, every tenant of an instance where you left it out at first-run setup, and a tenant whose window ended with nothing of it left, which then starts no next one.
- Feature switches refuse only what is new. With
core.group-spaceoff no group can be created, and every existing group stays fully usable.
The off states are covered by tests; they have not yet been checked in a real browser against a switched instance.
Designed, not built
Section titled “Designed, not built”None of the following exists yet. It is the design in ADR 0088, not a promise of what comes next or when. Each entry names what the server would see in order to refuse it: a switch exists only where it can.
Core entries the catalog does not hold yet.
| Entry | What the server would see |
|---|---|
core.personal-space |
the personal scope; off means no new content in it, while the scope itself (keys, favorites) stays |
core.member-invites |
the member-invite endpoint |
core.self-registration (idea) |
a new sign-up endpoint, off by default |
core.push (native apps) |
the push services’ wake-up, which carries no content |
Memories.
| Entry | What the server would see |
|---|---|
memories.chapters |
the Chapter node kind |
memories.journal (planned) |
a node kind or blob role the server would then see |
memories.gpx (planned) |
a blob role for tracks: the server would learn that a Memory has a track, never where |
memories.faces (idea) |
a role for the face index, which is biometric data |
memories.public-shares, .contribute, .drop-box |
inherit from core.public-shares, so core switches every application’s links off at once |
memories.public-shares.download-originals |
the original file’s blob role. Waits on a measurement: if guests stream video from the original, this switch would also stop their video playback |
Depot. Its own public-shares, .contribute and .drop-box would inherit from core, and its drop box would also
gate creating a drop box, which core.public-shares.drop-box does for the whole instance today.
Beyond the entries.
- Two more requirements: sharing only with verified identities (not buildable as specified: there is no verified identity the server could check), and keeping no decrypted data on a native device (only the app could keep it, the server cannot enforce it).
- Configuration as code (inbox #444): declaring switches in the compose file or the Helm values instead of switching them in the console.
Not switches
Section titled “Not switches”- Export and import cannot be switched off, because no switch could be enforced: whoever can read something holds it in plain text on their own device.
- Mail, the object store and ACME are preconditions of an instance, not features of it.
- Quotas and limits (a tenant’s storage quota, the per-link storage limit, a file-size cap, retention periods) are parameters, set where they are described, not switched.
- Never switchable: derivatives, recovery (without it a forgotten password and a lost Emergency Kit lose the data), the trash and the other basics of a space.