<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reference on Mimus</title><link>https://mimus.pgsty.com/docs/s3/reference/</link><description>Recent content in Reference 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/reference/index.xml" rel="self" type="application/rss+xml"/><item><title>Storage layout</title><link>https://mimus.pgsty.com/docs/s3/reference/storage/</link><guid>https://mimus.pgsty.com/docs/s3/reference/storage/</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 versioning, multipart uploads, and SSE-S3/SSE-C encryption are part of the core &lt;code&gt;pgsilo&lt;/code&gt; MVP. Object Lock retention/legal hold, bucket lifecycle rules, hard bucket quotas, and object annotations are &lt;strong&gt;Preview&lt;/strong&gt; features in the MVP release.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;&lt;code&gt;pgsilo&lt;/code&gt; stores all bucket metadata, object versions, byte segments, multipart parts, annotations, and IAM state in PostgreSQL (schema 14). Understanding the boundary between object visibility, logical quota accounting, and PostgreSQL physical space reclamation is essential for capacity planning.&lt;/p&gt;</description></item><item><title>ZIP extraction</title><link>https://mimus.pgsty.com/docs/s3/reference/zip/</link><guid>https://mimus.pgsty.com/docs/s3/reference/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;Read-only ZIP member extraction (&lt;code&gt;x-minio-extract: true&lt;/code&gt;) is a &lt;strong&gt;Preview&lt;/strong&gt; extension in the MVP release.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;Introduced in schema 13 and retained in schema 14, the PostgreSQL backend can expose members inside a stored &lt;code&gt;.zip&lt;/code&gt; object as read-only virtual objects over S3. The gateway never extracts files onto local disk, creates separate object rows, or persists a ZIP index in PostgreSQL.&lt;/p&gt;&#10;&lt;h2 id="request-forms"&gt;Request forms&#10;&lt;/h2&gt;&#10;&lt;p&gt;Include &lt;code&gt;x-minio-extract: true&lt;/code&gt; on a &lt;code&gt;GET&lt;/code&gt; or &lt;code&gt;HEAD&lt;/code&gt; request whose key path traverses inside a &lt;code&gt;.zip&lt;/code&gt; archive:&lt;/p&gt;</description></item><item><title>Annotations</title><link>https://mimus.pgsty.com/docs/s3/reference/annotations/</link><guid>https://mimus.pgsty.com/docs/s3/reference/annotations/</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 object annotation protocol is a &lt;strong&gt;Preview&lt;/strong&gt; extension in the MVP release. Policy evaluation for the four &lt;code&gt;s3:*ObjectAnnotation&lt;/code&gt; actions depends on the unpublished &lt;code&gt;silo-pkg&lt;/code&gt; revision (&lt;code&gt;27697e8&lt;/code&gt;) compiled into the &lt;code&gt;pgsilo&lt;/code&gt; branch.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;An object annotation is a named UTF-8 text payload attached to a specific parent object version—such as OCR text, classification labels, or review notes. Introduced in schema 13 and retained in schema 14, annotations are stored separately from S3 user metadata (&lt;code&gt;x-amz-meta-*&lt;/code&gt;) and object tags. Updating an annotation neither rewrites the parent object body nor creates a new parent version.&lt;/p&gt;</description></item><item><title>Authorization</title><link>https://mimus.pgsty.com/docs/s3/reference/authorization/</link><guid>https://mimus.pgsty.com/docs/s3/reference/authorization/</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;S3 IAM users, policies, and service accounts are part of the core &lt;code&gt;pgsilo&lt;/code&gt; MVP. SQL application role grants (&lt;code&gt;silo_api&lt;/code&gt; / &lt;code&gt;silo_bucket&lt;/code&gt;) and joint S3-to-PostgreSQL authorization (&lt;code&gt;iam_and_pg&lt;/code&gt; mode) are &lt;strong&gt;Preview&lt;/strong&gt; features in the MVP release.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;&lt;code&gt;pgsilo&lt;/code&gt; separates three kinds of identities:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Database owner (&lt;code&gt;silo_owner&lt;/code&gt;)&lt;/strong&gt;: the trusted ordinary PostgreSQL role used by &lt;code&gt;silo server&lt;/code&gt; gateways via &lt;code&gt;SILO_PG_DSN&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;SQL application logins (e.g., &lt;code&gt;app_sql&lt;/code&gt;)&lt;/strong&gt;: independent unprivileged PostgreSQL roles that call &lt;code&gt;silo_api&lt;/code&gt; functions.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;S3 identities&lt;/strong&gt;: S3 root credentials, IAM users, service accounts, and STS temporary sessions.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Never connect applications or S3 bindings as the installation owner (&lt;code&gt;silo_owner&lt;/code&gt;) or a PostgreSQL superuser.&lt;/p&gt;</description></item><item><title>S3 API</title><link>https://mimus.pgsty.com/docs/s3/reference/s3-api/</link><guid>https://mimus.pgsty.com/docs/s3/reference/s3-api/</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;Core bucket/object CRUD, versioning, multipart uploads, SSE-S3/SSE-C encryption, webhook notifications, IAM users/policies, and service accounts are part of the &lt;code&gt;pgsilo&lt;/code&gt; MVP target. Basic &lt;code&gt;AssumeRole&lt;/code&gt; STS, bucket lifecycle expiration/abort, Object Lock retention/legal hold, hard bucket quotas, object annotations, and read-only ZIP extraction are &lt;strong&gt;Preview&lt;/strong&gt; features.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;This page summarizes the HTTP S3 operations, headers, and extensions supported by the schema 14 PostgreSQL backend. Examples use path-style addressing (&lt;code&gt;/{bucket}/{key}&lt;/code&gt;). For hands-on examples, see &lt;a href="https://mimus.pgsty.com/docs/s3/tutorial/sdk/"&gt;SDK &amp;amp; CLI Access&lt;/a&gt; and &lt;a href="https://mimus.pgsty.com/docs/s3/tutorial/workflows/"&gt;Multipart, Lock &amp;amp; Notifications&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>SQL API</title><link>https://mimus.pgsty.com/docs/s3/reference/sql-api/</link><guid>https://mimus.pgsty.com/docs/s3/reference/sql-api/</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 public &lt;code&gt;silo_api&lt;/code&gt; SQL interface is a &lt;strong&gt;Preview&lt;/strong&gt; feature in the MVP release. Callers must connect with an ordinary application SQL role (never the installation owner) and execute write functions under &lt;code&gt;Read Committed&lt;/code&gt; isolation.&lt;/p&gt;&#10; &lt;/div&gt;&#10;&lt;/div&gt;&lt;p&gt;The public SQL API consists of the 11 functions in the &lt;code&gt;silo_api&lt;/code&gt; schema listed below. Functions and tables in the &lt;code&gt;silo&lt;/code&gt; schema are private implementation internals and must not be called by applications.&lt;/p&gt;</description></item><item><title>Configuration</title><link>https://mimus.pgsty.com/docs/s3/reference/configuration/</link><guid>https://mimus.pgsty.com/docs/s3/reference/configuration/</guid><description>&lt;p&gt;Set &lt;code&gt;SILO_PG_DSN&lt;/code&gt; to enable the PostgreSQL backend. In PostgreSQL mode, &lt;code&gt;silo server&lt;/code&gt; takes no filesystem directory arguments. Alternatively, pass a single &lt;code&gt;postgres://&lt;/code&gt; or &lt;code&gt;postgresql://&lt;/code&gt; URI on the command line. Do not combine both methods or add disk paths. For systemd services, store &lt;code&gt;SILO_PG_DSN&lt;/code&gt; in a protected environment file so database passwords do not appear in process arguments.&lt;/p&gt;&#10;&lt;h2 id="pg-settings"&gt;PostgreSQL backend variables&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table class="wide td-table--wide"&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Variable&lt;/th&gt;&#10; &lt;th scope="col"&gt;Default&lt;/th&gt;&#10; &lt;th scope="col"&gt;Range and semantics&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_DSN&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;None&lt;/td&gt;&#10; &lt;td&gt;Direct connection to PostgreSQL 16+ as a trusted ordinary database owner&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_READ_ONLY&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;off&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;on&lt;/code&gt; enforces read-only gateway mode; skips initialization, schema migration, and background maintenance&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_MAX_CONNS&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;32&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Total database connection budget per gateway (&lt;code&gt;5&lt;/code&gt;–&lt;code&gt;1024&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_CONTROL_CONNS&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;4&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Control-plane connection pool (&lt;code&gt;1&lt;/code&gt;–&lt;code&gt;64&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_COORD_CONNS&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;2&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Coordination pool (&lt;code&gt;2&lt;/code&gt;–&lt;code&gt;64&lt;/code&gt;), including the dedicated revision &lt;code&gt;LISTEN&lt;/code&gt; connection&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_SEGMENT_SIZE&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;8MiB&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Segment size (&lt;code&gt;1MiB&lt;/code&gt;–&lt;code&gt;64MiB&lt;/code&gt;), persisted in the database at initial setup&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_MAX_OBJECT_SIZE&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;256MiB&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Maximum object size (&lt;code&gt;1MiB&lt;/code&gt;–&lt;code&gt;1GiB&lt;/code&gt;), persisted at initial setup; applies to single PUT, copy, and completed multipart objects&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_ACQUIRE_TIMEOUT&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;5s&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Connection pool acquisition deadline (&lt;code&gt;1ms&lt;/code&gt;–&lt;code&gt;1m&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_REQUEST_TIMEOUT&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;15m&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Storage request deadline (&lt;code&gt;1ms&lt;/code&gt;–&lt;code&gt;24h&lt;/code&gt;)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;SILO_PG_QUEUE_TIMEOUT&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;&lt;code&gt;5s&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Maximum wait for a free concurrent request slot (&lt;code&gt;0s&lt;/code&gt;–&lt;code&gt;1m&lt;/code&gt;; &lt;code&gt;0s&lt;/code&gt; disables waiting). Added in &lt;code&gt;1d387725c&lt;/code&gt; (2026-11-08)&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;The data connection pool size equals &lt;code&gt;SILO_PG_MAX_CONNS - SILO_PG_CONTROL_CONNS - SILO_PG_COORD_CONNS&lt;/code&gt;. The result must be at least &lt;code&gt;2&lt;/code&gt; (&lt;code&gt;26&lt;/code&gt; with default settings). All three settings are validated together at startup: for example, &lt;code&gt;SILO_PG_MAX_CONNS=5&lt;/code&gt; is rejected if &lt;code&gt;CONTROL_CONNS&lt;/code&gt; (&lt;code&gt;4&lt;/code&gt;) and &lt;code&gt;COORD_CONNS&lt;/code&gt; (&lt;code&gt;2&lt;/code&gt;) remain at their defaults.&lt;/p&gt;</description></item></channel></rss>