<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Operations on Cerberus</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/operations/</link><description>Recent content in Operations on Cerberus</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://docs.artur-rios.tech/cerberus-docs/docs/operations/index.xml" rel="self" type="application/rss+xml"/><item><title>Configuration</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/operations/configuration/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/operations/configuration/</guid><description>&lt;h2 id="how-settings-are-read"&gt;How settings are read&lt;/h2&gt;&#10;&lt;p&gt;Every API setting is read as the environment variable &lt;code&gt;CERBERUS_&amp;lt;NAME&amp;gt;&lt;/code&gt; first, falling back to&#10;&lt;code&gt;Cerberus:&amp;lt;Property&amp;gt;&lt;/code&gt; in &lt;code&gt;appsettings.json&lt;/code&gt;. &lt;strong&gt;Environment variables win.&lt;/strong&gt; Keep nonsecret values in&#10;&lt;code&gt;appsettings.json&lt;/code&gt; (see &lt;code&gt;docs/operations/appsettings.example.json&lt;/code&gt;) and supply credentials through&#10;protected configuration.&lt;/p&gt;&#10;&lt;pre class="mermaid"&gt;flowchart LR&#10; Env[&amp;#34;CERBERUS_* environment variables&amp;#34;] --&amp;gt;|wins| Opt[&amp;#34;CerberusOptions&amp;#34;]&#10; Json[&amp;#34;appsettings.json&amp;lt;br/&amp;gt;Cerberus:Property&amp;#34;] --&amp;gt;|fallback| Opt&#10; Opt --&amp;gt; Val{&amp;#34;CerberusOptionsValidator&amp;#34;}&#10; Val -- valid --&amp;gt; Run([start])&#10; Val -- invalid --&amp;gt; Fail([&amp;#34;exit — prints the failing&amp;lt;br/&amp;gt;setting names only&amp;#34;])&lt;/pre&gt;&#10;&lt;p&gt;Run &lt;code&gt;--validate-configuration&lt;/code&gt; to check a configuration without starting the API.&lt;/p&gt;</description></item><item><title>Health</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/operations/health/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/operations/health/</guid><description>&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Probe&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Access&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Checks&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Answers&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;code&gt;GET /health/live&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Public&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Nothing — the process can answer.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;200 {&amp;quot;status&amp;quot;:&amp;quot;healthy&amp;quot;}&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;&lt;code&gt;GET /health/ready&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Public&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Database, identity and restore.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;200 {&amp;quot;status&amp;quot;:&amp;quot;healthy&amp;quot;}&lt;/code&gt; or &lt;code&gt;503 {&amp;quot;status&amp;quot;:&amp;quot;unhealthy&amp;quot;}&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;&lt;code&gt;GET /health/details&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Operational grant&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The same components, with timings.&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Components with &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;status&lt;/code&gt;, &lt;code&gt;elapsedMilliseconds&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;The public probes return only a status: tokens, query parameters and headers cannot opt into&#10;diagnostics, and nothing is cached (&lt;code&gt;no-store&lt;/code&gt;, no &lt;code&gt;304&lt;/code&gt;). Health routes are the only routes that&#10;bypass a closed restore barrier.&lt;/p&gt;</description></item><item><title>Backup and restore</title><link>https://docs.artur-rios.tech/cerberus-docs/docs/operations/backup-and-restore/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.artur-rios.tech/cerberus-docs/docs/operations/backup-and-restore/</guid><description>&lt;p&gt;A backup taken before a deletion still contains the deleted data. Cerberus makes sure a restore&#10;never brings it back: every completed erasure is also recorded in an &lt;strong&gt;erasure ledger&lt;/strong&gt; kept&#10;&lt;strong&gt;outside&lt;/strong&gt; the database, and a restored instance replays that ledger before it accepts traffic.&lt;/p&gt;&#10;&lt;h2 id="backups"&gt;Backups&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Take them with &lt;code&gt;pg_dump&lt;/code&gt; or a physical PostgreSQL backup, into &lt;code&gt;CERBERUS_BACKUP_PATH&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;Encrypt them independently of client keys — they contain only ciphertext, but they are still&#10;sensitive metadata.&lt;/li&gt;&#10;&lt;li&gt;Keep them for &lt;code&gt;CERBERUS_BACKUP_RETENTION&lt;/code&gt;; there is no unlimited default.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="the-erasure-ledger"&gt;The erasure ledger&lt;/h2&gt;&#10;&lt;p&gt;The ledger directory, &lt;code&gt;CERBERUS_ERASURE_LEDGER_PATH&lt;/code&gt;, holds one file per completed erasure&#10;(&lt;code&gt;kind-GUID.json&lt;/code&gt;), containing only the resource id, its kind and the deletion time.&lt;/p&gt;</description></item></channel></rss>