<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flows on Cerberus</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/</link><description>Recent content in Flows on Cerberus</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://docs.artur-rios.tech/cerberus-docs/docs/flows/index.xml" rel="self" type="application/rss+xml"/><item><title>Authentication and vault access</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/authentication/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/flows/authentication/</guid><description>&lt;p&gt;Cerberus keeps two questions apart:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Who are you?&lt;/strong&gt; Answered by Heimdall. The result is a bearer token.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Can you open this vault?&lt;/strong&gt; Answered on the device, by knowing the password, and proven to the&#10;API with a signed challenge. The result is a vault-access handle.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;A token alone opens nothing: &lt;code&gt;GET /api/accounts/me&lt;/code&gt; with only a token answers&#10;&lt;code&gt;401 vault_access_required&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2 id="registration"&gt;Registration&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; actor U as Prospective owner&#10; participant C as Cerberus UI&#10; participant A as Cerberus API&#10; participant H as Heimdall&#10;&#10; U-&amp;gt;&amp;gt;C: name, email, password&#10; Note over C: generate accountId (GUID) and idempotencyKey,&amp;lt;br/&amp;gt;encrypt account details locally&#10; C-&amp;gt;&amp;gt;A: POST /api/accounts&amp;lt;br/&amp;gt;{accountId, idempotencyKey, identity, details envelope}&#10; A-&amp;gt;&amp;gt;A: persist RegistrationOperation&amp;lt;br/&amp;gt;(HMAC fingerprint of the request)&#10; A-&amp;gt;&amp;gt;H: POST /api/scopes/{scope}/persons&amp;lt;br/&amp;gt;(scope-owner service token)&#10; H--&amp;gt;&amp;gt;A: person created (role 3)&#10; A-&amp;gt;&amp;gt;A: bind account to identity atomically&#10; A--&amp;gt;&amp;gt;C: 201 {id, revision, onboardingState, replayed}&lt;/pre&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The account id is generated by the client, so details can be encrypted before registration.&lt;/li&gt;&#10;&lt;li&gt;A retry with the same idempotency key is reconciled with the stored operation and returns the&#10;same outcome (&lt;code&gt;replayed: true&lt;/code&gt;); the fingerprint key &lt;code&gt;CERBERUS_REGISTRATION_FINGERPRINT_KEY&lt;/code&gt;&#10;makes that comparison without storing the request.&lt;/li&gt;&#10;&lt;li&gt;The scope owner must own exactly the configured scope; there is no global-admin fallback.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="sign-in-with-a-second-factor"&gt;Sign-in with a second factor&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; actor U as Owner&#10; participant C as Cerberus UI&#10; participant A as Cerberus API&#10; participant H as Heimdall&#10;&#10; U-&amp;gt;&amp;gt;C: email, password&#10; C-&amp;gt;&amp;gt;A: POST /api/auth/login&#10; A-&amp;gt;&amp;gt;H: POST /api/auth/login (configured scope)&#10; alt second factor required&#10; H--&amp;gt;&amp;gt;A: challenge&#10; A--&amp;gt;&amp;gt;C: requiresTwoFactor, challengeToken, availableMethods&#10; Note over C: ChallengePending — in memory only,&amp;lt;br/&amp;gt;no token stored, every other route signed out&#10; U-&amp;gt;&amp;gt;C: code (or recovery code)&#10; C-&amp;gt;&amp;gt;A: POST /api/auth/2fa/verify&#10; A-&amp;gt;&amp;gt;H: POST /api/auth/2fa/verify&#10; H--&amp;gt;&amp;gt;A: token&#10; else no second factor&#10; H--&amp;gt;&amp;gt;A: token&#10; end&#10; A--&amp;gt;&amp;gt;C: identity {token, expiresAt, …} &amp;#43; account {id, revision}&#10; Note over C: store token (secure storage on native,&amp;lt;br/&amp;gt;memory on web), clear credential fields&#10; C-&amp;gt;&amp;gt;C: route to /unlock (or /vault/setup if no protection)&lt;/pre&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Credentials exist only for the submission: never stored, logged or kept on a screen the user has&#10;left.&lt;/li&gt;&#10;&lt;li&gt;A refused code shows the API&amp;rsquo;s message, clears the field and keeps the challenge outstanding.&#10;Leaving the screen discards the challenge.&lt;/li&gt;&#10;&lt;li&gt;If platform secure storage is unavailable, the app says the session cannot be kept and may&#10;continue for this run with the token in memory — it never falls back to preferences or a file.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="session-restore"&gt;Session restore&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;flowchart TD&#10; S([App starts]) --&amp;gt; T{Token in&amp;lt;br/&amp;gt;secure storage?}&#10; T -- no --&amp;gt; SI[/sign-in/]&#10; T -- yes --&amp;gt; St[&amp;#34;/starting — neutral screen&amp;lt;br/&amp;gt;guard holds the start&amp;#34;]&#10; St --&amp;gt; Q[&amp;#34;GET /api/vault/protection&amp;lt;br/&amp;gt;(outcome only; material discarded unread)&amp;#34;]&#10; Q -- &amp;#34;200&amp;#34; --&amp;gt; UL[&amp;#34;/unlock&amp;lt;br/&amp;gt;(or the remembered deep link)&amp;#34;]&#10; Q -- &amp;#34;404 not_found&amp;#34; --&amp;gt; VS[/vault/setup/]&#10; Q -- &amp;#34;401 authentication_required&amp;#34; --&amp;gt; Del[&amp;#34;delete token&amp;lt;br/&amp;gt;sign-in: session ended&amp;#34;]&#10; Q -- &amp;#34;unreachable&amp;#34; --&amp;gt; Off{&amp;#34;Default mode&amp;lt;br/&amp;gt;with a valid lease?&amp;#34;}&#10; Off -- yes --&amp;gt; OU[Offer offline unlock]&#10; Off -- no --&amp;gt; R[Offer retry, keep token]&lt;/pre&gt;&#10;&lt;p&gt;On the web there is never a stored token: a reload always lands on sign-in.&lt;/p&gt;</description></item><item><title>Vault protection and recovery</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/vault-protection/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/flows/vault-protection/</guid><description>&lt;h2 id="initializing-protection"&gt;Initializing protection&lt;/h2&gt;&#10;&lt;p&gt;After the first sign-in the account has no protection, and the client routes to &lt;code&gt;/vault/setup&lt;/code&gt;.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; actor U as Owner&#10; participant C as Cerberus UI&#10; participant A as Cerberus API&#10;&#10; U-&amp;gt;&amp;gt;C: choose master password (twice) or per-profile passwords&#10; Note over C: generate key pairs and roots,&amp;lt;br/&amp;gt;Argon2id(password) → password wrapper,&amp;lt;br/&amp;gt;random recovery secret → recovery wrapper&#10; C-&amp;gt;&amp;gt;U: show the recovery secret once&#10; U-&amp;gt;&amp;gt;C: confirm it is saved&#10; C-&amp;gt;&amp;gt;A: POST /api/vault/protection&amp;lt;br/&amp;gt;{accountId, expectedAccountRevision, material}&#10; A--&amp;gt;&amp;gt;C: 201 — revision, epochs and generation set to 1&lt;/pre&gt;&#10;&lt;p&gt;&lt;code&gt;material&lt;/code&gt; is exactly the opaque &lt;code&gt;passwordWrapper&lt;/code&gt; and &lt;code&gt;recoveryWrapper&lt;/code&gt; plus the public&#10;&lt;code&gt;unlockVerifier&lt;/code&gt;, &lt;code&gt;recoveryVerifier&lt;/code&gt;, &lt;code&gt;recipientKey&lt;/code&gt; and &lt;code&gt;authorKey&lt;/code&gt; — four distinct P-256 JWKs.&#10;Initializing needs no vault session; the protection material can be read back with&#10;&lt;code&gt;GET /api/vault/protection&lt;/code&gt; for local decryption.&lt;/p&gt;</description></item><item><title>Collection sharing</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/sharing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/flows/sharing/</guid><description>&lt;p&gt;Only &lt;strong&gt;collections&lt;/strong&gt; are shared — never profiles, never a whole vault — and only with another&#10;Cerberus account that already has vault protection. A share is a &lt;strong&gt;grant&lt;/strong&gt;: read-only or&#10;read/write, managed only by the collection&amp;rsquo;s owner.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;A recipient with…&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Can&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;read-only&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Read the effective members of the collection.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;read/write&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Read and edit the existing effective members. No deletion, no membership changes, no sharing administration.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="sharing-a-collection"&gt;Sharing a collection&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; actor O as Owner&#10; participant C as Owner&amp;#39;s client&#10; participant A as Cerberus API&#10; actor R as Recipient&#10;&#10; C-&amp;gt;&amp;gt;A: look up the recipient&amp;#39;s public key&#10; A--&amp;gt;&amp;gt;C: recipient key (JWK)&#10; Note over C: compute the RFC 7638 fingerprint&#10; alt first share with this recipient&#10; C-&amp;gt;&amp;gt;O: show the fingerprint&#10; O-&amp;gt;&amp;gt;R: compare it out of band (in person, a call)&#10; O-&amp;gt;&amp;gt;C: confirm — the fingerprint is pinned&#10; else fingerprint changed since pinned&#10; C--&amp;gt;&amp;gt;O: sharing blocked until re-verified&#10; end&#10; O-&amp;gt;&amp;gt;C: choose read-only or read/write&#10; Note over C: HPKE-wrap the collection root for the recipient,&amp;lt;br/&amp;gt;bound to grant id, revision, both fingerprints,&amp;lt;br/&amp;gt;signed with the author key&#10; C-&amp;gt;&amp;gt;A: POST /api/collections/{id}/grants&amp;lt;br/&amp;gt;{grantId, recipientAccountId, expectedRevision: null,&amp;lt;br/&amp;gt;access, keyEnvelope}&#10; A--&amp;gt;&amp;gt;C: 201 collection_access_granted&lt;/pre&gt;&#10;&lt;div class="alert alert-info" role="alert"&gt;&lt;div class="h4 alert-heading" role="heading"&gt;Not available yet&lt;/div&gt;&#10;&lt;p&gt;The API does not yet offer a lookup of a recipient&amp;rsquo;s public key and fingerprint, nor a list of a&#10;collection&amp;rsquo;s grants; the client&amp;rsquo;s sharing use cases (UC-30, UC-32, UC-33) wait on them. See&#10;&lt;a href="https://docs.artur-rios.tech/cerberus-docs/docs/reference/roadmap/#what-the-client-needs-from-the-api"&gt;Roadmap&lt;/a&gt;&#10;.&lt;/p&gt;</description></item><item><title>Software access</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/software-access/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/flows/software-access/</guid><description>&lt;p&gt;Software — a deployment script, a service, a CI job — can read &lt;strong&gt;selected&lt;/strong&gt; secrets without a&#10;person&amp;rsquo;s password. It authenticates as a &lt;strong&gt;Heimdall application identity&lt;/strong&gt; and receives only&#10;ciphertext it decrypts with its own private key.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; O([&amp;#34;Owner&amp;#34;]) -- &amp;#34;grant: records / collections&amp;#34; --&amp;gt; A{{Cerberus API}}&#10; S[&amp;#34;Software&amp;lt;br/&amp;gt;(holds its P-256 private key)&amp;#34;] -- &amp;#34;1 · POST /api/applications/token&amp;#34; --&amp;gt; H[(&amp;#34;Heimdall&amp;#34;)]&#10; H -- &amp;#34;application JWT&amp;#34; --&amp;gt; S&#10; S -- &amp;#34;2 · GET /api/software-secrets&amp;lt;br/&amp;gt;Bearer: application JWT&amp;#34; --&amp;gt; A&#10; A -- &amp;#34;live check:&amp;lt;br/&amp;gt;GET /api/applications/self&amp;#34; --&amp;gt; H&#10; A -- &amp;#34;ciphertext &amp;#43; key wrapped&amp;lt;br/&amp;gt;for the software&amp;#39;s key&amp;#34; --&amp;gt; S&#10; S -- &amp;#34;3 · decrypt locally&amp;#34; --&amp;gt; P[&amp;#34;plaintext secret&amp;#34;]&lt;/pre&gt;&#10;&lt;h2 id="granting"&gt;Granting&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; actor O as Owner&#10; participant C as Owner&amp;#39;s client&#10; participant A as Cerberus API&#10;&#10; O-&amp;gt;&amp;gt;C: pick the software identity and targets&#10; Note over C: for each target, wrap its root for the&amp;lt;br/&amp;gt;software&amp;#39;s P-256 public key (HPKE)&#10; C-&amp;gt;&amp;gt;A: POST /api/software-grants&amp;lt;br/&amp;gt;{grantId, softwareIdentityId, expectedRevision,&amp;lt;br/&amp;gt;recipientKey, targets[{kind: record|collection, id, keyEnvelope}]}&#10; A--&amp;gt;&amp;gt;C: 201 {grantId, revision}&lt;/pre&gt;&#10;&lt;h2 id="retrieving"&gt;Retrieving&lt;/h2&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;GET /api/software-secrets?grantId=…&amp;amp;kind=record|collection&amp;amp;id=…[&amp;amp;collectionId=…]&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Authorization: Bearer &amp;lt;Heimdall application token&amp;gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&#10;&lt;li&gt;Only this endpoint accepts an &lt;strong&gt;application&lt;/strong&gt; token. It must carry &lt;code&gt;tokenKind=application&lt;/code&gt; and&#10;the dedicated application audience, which must differ from the person audience; zero clock skew&#10;is allowed.&lt;/li&gt;&#10;&lt;li&gt;Every read is checked live with Heimdall (&lt;code&gt;GET /api/applications/self&lt;/code&gt;); there is no positive&#10;cache.&lt;/li&gt;&#10;&lt;li&gt;The response (&lt;code&gt;software_secret_found&lt;/code&gt;) carries &lt;code&gt;ownerAccountId&lt;/code&gt;, &lt;code&gt;grantId&lt;/code&gt;, &lt;code&gt;grantRevision&lt;/code&gt;,&#10;&lt;code&gt;target&lt;/code&gt;, &lt;code&gt;provisioning&lt;/code&gt;, &lt;code&gt;recipientKey&lt;/code&gt; and &lt;code&gt;authorKey&lt;/code&gt;. Access is read-only.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="revoking"&gt;Revoking&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;DELETE /api/software-grants/{id}&lt;/code&gt; with &lt;code&gt;{expectedRevision}&lt;/code&gt; revokes the grant. Closing the&#10;account revokes all of its software grants. As with any revocation, anything the software already&#10;fetched and decrypted cannot be retracted.&lt;/p&gt;</description></item><item><title>Offline use and synchronization</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/offline-sync/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/flows/offline-sync/</guid><description>&lt;h2 id="storage-modes"&gt;Storage modes&lt;/h2&gt;&#10;&lt;p&gt;Each device chooses how much it keeps. The mode is always visible in the app.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;strong&gt;Default&lt;/strong&gt; (offline-capable)&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;strong&gt;Online-only&lt;/strong&gt;&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Available on&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Windows, Linux, Android&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Windows, Linux, Android — and always on the web&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Local store&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;drift (SQLite): envelopes, server-visible metadata, protection bundle, lease, cursor, pending edits — &lt;strong&gt;ciphertext only&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;None — everything in memory&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Works offline&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Yes, until the lease expires&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;No&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Identity token&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Platform secure storage&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Secure storage (native) or memory (web)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Switching to online-only warns about pending edits (offering to upload them first) and deletes the&#10;store; if the deletion fails, the mode does not change. Switching back creates the store at the&#10;next unlock and runs an initial synchronization.&lt;/p&gt;</description></item><item><title>Deletion, closure and export</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/flows/deletion/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/flows/deletion/</guid><description>&lt;h2 id="the-trash"&gt;The trash&lt;/h2&gt;&#10;&lt;p&gt;Deleting a record, folder, collection or profile moves it to the trash for &lt;strong&gt;720 hours (30&#10;days)&lt;/strong&gt;, keeping its ciphertext and a snapshot of its associations. Online deletes send&#10;&lt;code&gt;expectedRevision&lt;/code&gt;.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; participant C as Client&#10; participant A as Cerberus API&#10; participant W as Retention worker&#10;&#10; C-&amp;gt;&amp;gt;A: DELETE /api/folders/{id} {expectedRevision}&#10; A--&amp;gt;&amp;gt;C: one trash operation — folder, subfolders and records&#10; C-&amp;gt;&amp;gt;A: GET /api/trash&#10; A--&amp;gt;&amp;gt;C: one root per operation: kind, operationId, resourceId,&amp;lt;br/&amp;gt;revision, deletedAt, purgeAt, envelope&#10; alt restore before purgeAt&#10; C-&amp;gt;&amp;gt;A: POST /api/trash/{operationId}/restore {expectedRevision}&#10; A--&amp;gt;&amp;gt;C: restored, omissions reported&#10; else after purgeAt&#10; C-&amp;gt;&amp;gt;A: POST /api/trash/{operationId}/restore&#10; A--&amp;gt;&amp;gt;C: 410&#10; end&#10; W-&amp;gt;&amp;gt;A: purgeAt reached (UC-53)&#10; Note over W: terminal intent → erasure ledger → physical removal&lt;/pre&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Action&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Endpoint&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;List the trash&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;GET /api/trash&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Restore an entry&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;POST /api/trash/{id}/restore&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Empty the trash now&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;DELETE /api/trash&lt;/code&gt; → &lt;code&gt;{accountId, purgedAt, counts, totalPurged}&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Delete a record permanently, skipping the trash&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;DELETE /api/records/{id}/permanent&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;A restored folder returns with the contents its deletion removed.&lt;/li&gt;&#10;&lt;li&gt;A restored collection&amp;rsquo;s shares are &lt;strong&gt;not&lt;/strong&gt; revived.&lt;/li&gt;&#10;&lt;li&gt;A permanent deletion writes a tombstone, so the item is never resurrected — not by a sync, not by&#10;a restored backup.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="account-closure"&gt;Account closure&lt;/h2&gt;&#10;&lt;pre class="mermaid"&gt;sequenceDiagram&#10; autonumber&#10; actor O as Owner&#10; participant C as Client&#10; participant A as Cerberus API&#10; participant H as Heimdall&#10;&#10; O-&amp;gt;&amp;gt;C: close my account&#10; C-&amp;gt;&amp;gt;O: re-authenticate&#10; C-&amp;gt;&amp;gt;A: POST /api/accounts/me/closure {expectedRevision}&amp;lt;br/&amp;gt;(token signed &amp;lt; 60 s ago)&#10; A-&amp;gt;&amp;gt;A: state ClosurePending, revocation generation &amp;#43; 1,&amp;lt;br/&amp;gt;revoke sessions, challenges, all grants,&amp;lt;br/&amp;gt;schedule purge at &amp;#43;30 days&#10; A--&amp;gt;&amp;gt;C: closureRequestedAt, closureDeadline, serverTime&#10; C-&amp;gt;&amp;gt;C: remove local store, lock, sign out,&amp;lt;br/&amp;gt;show the deadline on sign-in&#10;&#10; Note over O,H: within 30 days&#10; O-&amp;gt;&amp;gt;C: cancel closure&#10; C-&amp;gt;&amp;gt;A: POST /api/auth/closure/login (&amp;#43; /closure/2fa/verify)&#10; A-&amp;gt;&amp;gt;H: authenticate&#10; C-&amp;gt;&amp;gt;A: POST /api/accounts/me/closure/cancel {expectedRevision}&#10; A--&amp;gt;&amp;gt;C: Active again — or 410 closure_expired&lt;/pre&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;After cancelling, old sessions and grants are &lt;strong&gt;not&lt;/strong&gt; revived: the owner unlocks again and&#10;re-shares.&lt;/li&gt;&#10;&lt;li&gt;When the deadline passes, the retention worker purges the account.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="permanent-account-deletion"&gt;Permanent account deletion&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;DELETE /api/accounts/me/permanent&lt;/code&gt; with &lt;code&gt;{expectedRevision}&lt;/code&gt;, an account-wide vault-access handle&#10;and a freshly signed token. The client asks the user to type a confirmation phrase and&#10;re-authenticate, and says plainly that owned collections vanish for their recipients and that the&#10;&lt;strong&gt;Heimdall identity survives&lt;/strong&gt;.&lt;/p&gt;</description></item></channel></rss>