Business rules

The numbered rules of the Cerberus API and of the Cerberus UI.

Each repository numbers its own rules. Numbers are stable: a withdrawn rule keeps its number. The API rules govern what the server enforces; the client rules govern what the application does on the device. Where the two meet — encryption, trash, closure — they agree.

API rules

RuleStatement
BR-01Each user has their own Cerberus account, linked to exactly one Heimdall account.
BR-02Identity authentication and authorization are delegated to Heimdall; resource ownership and collection grants are enforced by Cerberus.
BR-03A vault profile is distinct from account details and belongs to one account.
BR-04A record or folder may appear in several profiles of its owning account.
BR-05A collection belongs to one account and may be associated with several profiles.
BR-06Records and folders may belong to several collections.
BR-07Folders nest; a cyclic parent relationship is rejected.
BR-08Every record has a name; its other fields are user-defined, of the four field types.
BR-09When a template is used, its mandatory fields are required; template-less records are allowed.
RuleStatement
BR-10End-to-end encryption: the API never holds plaintext or a usable decryption key.
BR-11Communication between clients, Cerberus and Heimdall is encrypted.
BR-12A master vault password, or distinct profile passwords; unlocking the vault is separate from signing in.
BR-13A recovery credential completes exactly one server-mediated recovery; a replacement is issued after success.
BR-14The recovery key can be refreshed at any time, which invalidates the previous one.
BR-15Authenticated software gets only explicitly granted access, as ciphertext it decrypts locally.
RuleStatement
BR-16Offline renewal defaults to 24 hours; the owner can change the interval or disable renewal.
BR-17Known revocations are enforced on reconnection; with renewal enabled, offline use is blocked after expiry until renewal succeeds.
BR-18Conflicting edits are resolved by the latest edit.
BR-19Online-only clients persist no vault data; web clients use temporary memory only, with no persistent storage or caching.
RuleStatement
BR-20Deleted records, folders, collections and profiles go to the trash, restorable for 30 days, then permanently deleted.
BR-21Owners can permanently delete a record immediately, or empty the trash at any time.
BR-22Deleting a folder deletes the records in it, through nested folders too.
BR-23Deleting a collection or a profile deletes it and its associations, but keeps the folders and records.
BR-24Closing an account needs fresh authentication, revokes access immediately, and can be cancelled within 30 days, before permanent deletion.
BR-25Immediate permanent account deletion is offered; it removes Cerberus data and grants, not the Heimdall identity.
BR-26Completed deletions are reapplied when a backup is restored.
BR-27Collections are shared with explicit read-only or read/write grants; only the owner manages sharing and deletes the collection.
BR-28A grant exposes only the included content; no ownership transfer, no access to unrelated data.
BR-29LGPD and GDPR are met through documented, verified controls.

Client rules

RuleStatement
BR-01The API is the sole authority on ownership, grants, lifecycle and server-visible facts.
BR-02Client validation is feedback only: always submit, and honour every refusal.
BR-03An online change is not “saved” until the API confirms it; an offline change shows as “saved on this device, pending synchronization”.
BR-04The API’s reason for a refusal is shown, unsoftened.
BR-05Plaintext and usable keys never leave the device; requests carry only envelopes, wrapped keys, public keys and proofs.
BR-06Only the reviewed protocol is used; dependent flows are blocked until the review passes.
BR-07Every envelope’s authenticated metadata is verified (owner, resource kind, resource id, key epoch); a mismatch is “tampered” and nothing is displayed.
BR-08Fresh randomness; a nonce is never reused under the same key.
BR-09Vault passwords and the recovery secret are never sent or stored.
BR-10A recipient key is never trusted because the API supplied it: its fingerprint is verified out of band before the first share, and a changed fingerprint blocks sharing until re-verified.
RuleStatement
BR-11Signing in never unlocks; unlocking is a separate, local step.
BR-12Decrypted content exists only while displayed; hidden fields stay concealed until revealed.
BR-13The vault locks on request, on inactivity, on sign-out and at session end; locking discards all keys and decrypted items.
BR-14A copied value is cleared from the clipboard after the interval, unless the clipboard has changed since.
BR-15Content is excluded from screenshots and the recent-apps preview where the platform allows.
BR-16An open profile shows only its content; another profile needs its own unlock.
BR-17A restricted device opens, stores and syncs only its profile; lifting the restriction needs fresh authentication.
BR-18The default storage mode exists on Windows, Linux and Android only; its store holds only ciphertext, metadata, the protection bundle, the lease and pending edits.
BR-19Online-only persists no vault data; switching to it deletes the store, after warning about pending edits.
BR-20The web persists nothing and disables HTTP caching; reloading signs the user out.
BR-21The storage mode is chosen per device and always visible.
RuleStatement
BR-22A lease is used only after its signature verifies against a pinned key; an expired renewal-enabled lease locks the offline vault until renewal.
BR-23A clock rollback never extends a lease: expiry is judged against the latest observed time.
BR-24On reconnection, revocations, visibility removals and tombstones are applied before new content is shown.
BR-25Offline edits are uploaded with client timestamps and operation ids; each outcome (applied, superseded, denied, permanently deleted) is shown, and a superseded edit is never silently discarded.
BR-26A permanently deleted item is never resurrected; a tombstone removes its local copy and pending edits.
BR-27Each action is offered only to an actor who may take it; shared content is always marked as shared.
BR-28A hidden control is never the only protection.
BR-29Revocation is presented honestly: it stops future access but cannot retract copies already made.
BR-30Every record has a name; fields are text, numeric, boolean or hidden text; template-required fields are enforced.
BR-31Search and sort happen on the device; no plaintext search term is sent to the API.
RuleStatement
BR-32Delete means trash, with a stated 30-day window; permanent deletion is separate, explicitly confirmed and stated as irreversible.
BR-33Deleting a folder takes its nested folders and records; deleting a collection or profile keeps them — the UI says which.
BR-34Closure needs fresh authentication; access is revoked immediately, with 30 days to cancel. Immediate deletion is separately confirmed and states that the Heimdall identity survives.
BR-35A credential exists only for its submission: never stored, retained, logged or kept on a screen the user has left.
BR-36The token lives only in platform secure storage (native) or in memory (web) — never in preferences, a URL or the local store.
BR-37A token rejected mid-session ends the session and locks the vault; no silent refresh, no replay.
BR-38Sign-out clears the token, locks the vault and drops in-memory state; in the default mode the store is kept unless the user removes it.
BR-39A second-factor challenge grants nothing; the app is signed out until it completes.
BR-40The recovery secret is shown once and the user confirms saving it; a refresh replaces it and the old one stops working.
BR-41No data goes anywhere but the Cerberus API: no analytics, telemetry or crash reporting.
BR-42No log carries secrets, plaintext or envelope bodies; release builds emit no log.
BR-43Export and deletion are reachable in the UI without contacting anyone; a decrypted export is offered only after unlock, with its plaintext consequence stated and confirmed.

Validation constraints

InputConstraint
Record nameRequired; no length or uniqueness limit.
Numeric fieldA number only.
TemplatesPassword: the password. Login: username or email, and a password. Note: the note.
Vault passwordEntered twice when set or changed; no strength rule beyond the protocol’s.
Recovery secretAccepted only in the exact encoding it was shown in.
FoldersNo cycles.
Offline renewal intervalPositive, or disabled.
Auto-lock and clipboard intervalsPositive, or “never” (with a warning).
Instance addressWell-formed HTTPS; HTTP in debug builds only.