<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tutorials on Mimus</title><link>https://mimus.pgsty.com/docs/s3/tutorial/</link><description>Recent content in Tutorials on Mimus</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 06 Dec 2026 15:37:05 +0800</lastBuildDate><atom:link href="https://mimus.pgsty.com/docs/s3/tutorial/index.xml" rel="self" type="application/rss+xml"/><item><title>Multipart, Object Lock and STS</title><link>https://mimus.pgsty.com/docs/s3/tutorial/workflows/</link><guid>https://mimus.pgsty.com/docs/s3/tutorial/workflows/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;Multipart uploads, S3 bucket notifications and IAM service accounts are &lt;strong&gt;Supported&lt;/strong&gt; MVP features. Object Lock (retention and legal hold), the &lt;code&gt;silo_api&lt;/code&gt; SQL transactional outbox and Basic AssumeRole STS are &lt;strong&gt;Preview&lt;/strong&gt; features.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;This tutorial covers five multi-step workflows: multipart uploads with failure cleanup, Object Lock retention and legal hold, S3 bucket webhook notifications, a transactional SQL outbox committed with an object, and service accounts / Basic AssumeRole STS credentials. Complete &lt;a href="https://mimus.pgsty.com/docs/s3/tutorial/sdk/"&gt;Use an S3 SDK&lt;/a&gt; first.&lt;/p&gt;</description></item><item><title>Annotations and ZIP</title><link>https://mimus.pgsty.com/docs/s3/tutorial/annotations-zip/</link><guid>https://mimus.pgsty.com/docs/s3/tutorial/annotations-zip/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;Object annotations (&lt;code&gt;?annotation&lt;/code&gt;) and ZIP member extraction (&lt;code&gt;x-minio-extract&lt;/code&gt;) are &lt;strong&gt;Preview&lt;/strong&gt; features in the MVP scope. Annotations also depend on four &lt;code&gt;silo-pkg&lt;/code&gt; policy actions (&lt;code&gt;s3:*ObjectAnnotation*&lt;/code&gt;) that have not been published to the public &lt;code&gt;silo-pkg&lt;/code&gt; repository yet, and the general Silo Console (2.6.0) does not include an annotation UI.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;This tutorial uses SigV4-signed Python requests to write, read, list and delete object annotations, and to list and read members inside an uploaded ZIP archive without unpacking it into separate S3 objects. Complete &lt;a href="https://mimus.pgsty.com/docs/s3/tutorial/sdk/"&gt;Use an S3 SDK&lt;/a&gt; first.&lt;/p&gt;</description></item><item><title>Encryption</title><link>https://mimus.pgsty.com/docs/s3/tutorial/encryption/</link><guid>https://mimus.pgsty.com/docs/s3/tutorial/encryption/</guid><description>&lt;p&gt;This tutorial configures static-key &lt;code&gt;SSE-S3&lt;/code&gt; (&lt;code&gt;AES256&lt;/code&gt;) on a gateway and bucket, then runs a round-trip write and read with a client-supplied &lt;code&gt;SSE-C&lt;/code&gt; customer key. Complete &lt;a href="https://mimus.pgsty.com/docs/s3/operations/install/"&gt;Install&lt;/a&gt; and &lt;a href="https://mimus.pgsty.com/docs/s3/tutorial/sdk/"&gt;Use an S3 SDK&lt;/a&gt; first.&lt;/p&gt;&#10;&lt;h2 id="static-key-sse-s3"&gt;Configure static-key SSE-S3&#10;&lt;/h2&gt;&#10;&lt;p&gt;Generate a 32-byte key file once on the gateway host (refusing to overwrite an existing key file):&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-f40873a8-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="1"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-f40873a8-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo sh -c &lt;span class="s1"&gt;&amp;#39;set -eu; umask 027; test ! -e /etc/silo/kms.key; set -C; { printf &amp;#34;silo-key-1:&amp;#34;; openssl rand -base64 32; } &amp;gt; /etc/silo/kms.key; chown root:silo /etc/silo/kms.key; chmod 0640 /etc/silo/kms.key&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;p&gt;Back up the exact key ID (&lt;code&gt;silo-key-1&lt;/code&gt;) and raw key bytes outside the database, and copy the identical &lt;code&gt;/etc/silo/kms.key&lt;/code&gt; file to every gateway that connects to this PostgreSQL database.&lt;/p&gt;</description></item><item><title>Versioning</title><link>https://mimus.pgsty.com/docs/s3/tutorial/versioning/</link><guid>https://mimus.pgsty.com/docs/s3/tutorial/versioning/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;Bucket versioning is a &lt;strong&gt;Supported&lt;/strong&gt; MVP feature. Lifecycle rules, Object Lock and hard bucket quotas described in the second half of this page are &lt;strong&gt;Preview&lt;/strong&gt; features.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;This tutorial enables bucket versioning, writes multiple versions of an object, reads a historical version by &lt;code&gt;VersionId&lt;/code&gt;, and configures lifecycle expiration and a hard bucket quota. Use the &lt;code&gt;silo-admin&lt;/code&gt; profile and &lt;code&gt;mcli_pg&lt;/code&gt; alias from the &lt;a href="https://mimus.pgsty.com/docs/s3/quickstart/"&gt;Quick start&lt;/a&gt; and &lt;a href="https://mimus.pgsty.com/docs/s3/tutorial/sdk/"&gt;Use an S3 SDK&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Use an S3 SDK</title><link>https://mimus.pgsty.com/docs/s3/tutorial/sdk/</link><guid>https://mimus.pgsty.com/docs/s3/tutorial/sdk/</guid><description>&lt;p&gt;This tutorial connects the AWS CLI and the Python SDK (&lt;code&gt;boto3&lt;/code&gt;) to a Silo PostgreSQL gateway, generates a presigned download URL, and configures bucket CORS for browser requests. Complete the &lt;a href="https://mimus.pgsty.com/docs/s3/quickstart/"&gt;Quick start&lt;/a&gt; first so the &lt;code&gt;attachments&lt;/code&gt; bucket, &lt;code&gt;app-s3&lt;/code&gt; user and local &lt;code&gt;hello.txt&lt;/code&gt; file exist.&lt;/p&gt;&#10;&lt;p&gt;Set the endpoint and working directory in your terminal:&lt;/p&gt;&#10;&lt;div class="td-code td-code--untitled" id="td-code-7d4765cb-fence-0" data-td-code data-td-code-auto-id&#10; data-td-language="bash" data-td-line-count="3"&gt;&#10; &lt;div class="td-code__viewport" id="td-code-7d4765cb-fence-0-viewport" data-td-code-viewport&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;SILO_ENDPOINT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;https://s3.example.net:9000&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;SILO_TUTORIAL_DIR&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/.local/share/silo-tutorial/files&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;AWS_CA_BUNDLE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;&amp;#39;/path/to/s3-ca.crt&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;h2 id="aws-cli-and-boto3"&gt;AWS CLI and Python SDK&#10;&lt;/h2&gt;&#10;&lt;p&gt;Configure an AWS CLI profile (&lt;code&gt;silo-app&lt;/code&gt;) with the &lt;code&gt;app-s3&lt;/code&gt; credentials, region &lt;code&gt;us-east-1&lt;/code&gt; and path-style addressing:&lt;/p&gt;</description></item><item><title>Objects from SQL</title><link>https://mimus.pgsty.com/docs/s3/tutorial/sql/</link><guid>https://mimus.pgsty.com/docs/s3/tutorial/sql/</guid><description>&lt;div class="td-callout td-callout--note" role="note"&gt;&#10; &lt;div class="td-callout__title"&gt;&lt;i class="td-callout__icon fa-solid fa-circle-info" aria-hidden="true"&gt;&lt;/i&gt;&lt;span class="td-callout__label"&gt;Note&lt;/span&gt;&lt;/div&gt;&#10; &lt;div class="td-callout__body"&gt;&#10;&lt;p&gt;The SQL transaction API (&lt;code&gt;silo_api&lt;/code&gt;) and PostgreSQL native authorization (&lt;code&gt;silo_bucket&lt;/code&gt;) are &lt;strong&gt;Preview&lt;/strong&gt; features in the MVP scope.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;This tutorial writes an invoice row and its attachment in one PostgreSQL transaction, verifies both from SQL and S3, rolls back a second transaction, and reads paginated lists and object segments. Complete the &lt;a href="https://mimus.pgsty.com/docs/s3/quickstart/"&gt;Quick start&lt;/a&gt; first so the &lt;code&gt;silo&lt;/code&gt; database and plaintext &lt;code&gt;attachments&lt;/code&gt; bucket exist.&lt;/p&gt;&#10;&lt;h2 id="create-sql-role"&gt;Create an application SQL role&#10;&lt;/h2&gt;&#10;&lt;p&gt;Connect to &lt;code&gt;silo&lt;/code&gt; as a database administrator and create an unprivileged login role (&lt;code&gt;app_sql&lt;/code&gt;) and application schema (&lt;code&gt;app_demo&lt;/code&gt;):&lt;/p&gt;</description></item></channel></rss>