soulteary/otterio
About
S3-compatible object storage server in Go, independently maintained as a fork of the Apache-licensed MinIO codebase.
Systems & InfrastructureWhat you can do
- SSE metadata injection (GHSA-3rh2-v3gr-35p9 class) — reserved-prefix metadata is rejected at both the router edge and extractMetadata.
- Precondition GET / HEAD metadata disclosure (GHSA-95fr-cm4m-q5p9 / CVE-2024-36107) — s3:ExistingObjectTag/* and s3:RequestObjectTag/* are now first-class condition keys, and the precondition path re-runs auth before writing ETag / Last-Modified so a tag-gated deny no longer leaks object state.
- Service-account privilege escalation — GHSA-jjjj-jwhf-8rgr (own-account create-SA bypass), the RELEASE.2025-10-15 sub-policy escalation, and GHSA-xx8w-mq23-29g4 / CVE-2024-24747 (admin:UpdateServiceAccount) are all closed; sub-policies must be a subset of the caller's capability.
- AddUser PolicyName privilege escalation (CVE-2021-43858) — defence-in-depth at both the handler (HTTP 400) and IAM-layer (silent strip).
Measured star growth
- in 24h
- +1
- in 7 days
- +2
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalOtterIO is a high-performance, S3-compatible object storage server. It is suitable for building infrastructure for machine learning, analytics, backup, and general application data workloads.
This README covers running OtterIO on bare metal, Docker, and from source. The documentation index links deployment, administration, security, and development guides; OC provides the companion CLI and independent Web Console, and OtterIO SDK is the Go client.
[!IMPORTANT] OtterIO is an independent, community-maintained fork of the upstream Apache-licensed MinIO codebase. It is not affiliated with, endorsed by, or sponsored by MinIO, Inc. See Trademark & Upstream Notice and the Security Advisory before deploying.
What is OtterIO
OtterIO is a customized fork of the last Apache License 2.0 release of MinIO (≈ RELEASE.2021-04-22T15-44-28Z). It differs from upstream in the following ways:
- HTTP layer — request router built on
gofiber/fiber/v3instead ofgorilla/mux. - Bucket notification targets — only
elasticsearch,mysql,postgresql,redis, andwebhookare supported. The message-queue targets (Kafka, NATS, NATS Streaming, NSQ, AMQP, MQTT) have been removed. - Gateways — only
nasands3remain. Theazure,gcs, andhdfsgateways have been removed. - Toolchain — requires Go
1.27.4or newer (seego.mod); use the latest patch release for security fixes. - Container images — published at
soulteary/otterio(Docker Hub) andghcr.io/soulteary/otterio(GitHub Container Registry).
OtterIO continues to be distributed under the Apache License, Version 2.0. All original copyright notices are retained — see NOTICE.
Quick Start
Set your own credentials, then run a single-node OtterIO instance with Docker. The password generation below requires OpenSSL. Save the generated credentials securely and reuse them when restarting or connecting from another shell; do not generate a different password just to reconnect.
export OTTERIO_ROOT_USER=otterio-admin
OTTERIO_ROOT_PASSWORD="$(openssl rand -hex 32)"
export OTTERIO_ROOT_PASSWORD
docker run -p 127.0.0.1:9000:9000 -p 127.0.0.1:9001:9001 \
-e OTTERIO_ROOT_USER -e OTTERIO_ROOT_PASSWORD \
-v /mnt/data:/data \
soulteary/otterio:latest server --console-address ":9001" /data
Port 9000 serves S3 and port 9001 serves the Admin API. The Web interface runs separately in oc-console; see Verify for OC setup and an upload/download check. This source branch removes the embedded Web; published images retain their own version's behavior. See the removal candidate and migration status before selecting a replacement release.
[!IMPORTANT] Container startup now rejects missing or default credentials. Older no-credential Docker examples must be updated before upgrading. For
_FILEsecrets, a non-root Compose profile, and migration instructions, see Docker security. Only an explicit local-development opt-in,OTTERIO_ALLOW_DEFAULT_CREDENTIALS=1, permits default credentials; keep such demos bound to loopback. Production deployments should pin a reviewed release tag or digest instead oflatest.
[!NOTE] A single-drive server has no erasure redundancy. Erasure sets contain 4–16 drives, which can be local or distributed across servers; a supported distributed topology does not require four drives on every server. Plan failure domains and per-set read/write quorum before deploying. See erasure coding, distributed deployment, and service limits.
Installation
Docker
OtterIO publishes container images to both Docker Hub and the GitHub Container Registry:
# Docker Hub
docker pull soulteary/otterio:latest
# GitHub Container Registry
docker pull ghcr.io/soulteary/otterio:latest
| Tag | Description |
|---|---|
latest |
Latest stable release. |
edge |
Bleeding-edge build from main — for testing only. |
For disposable testing, run a standalone server with an anonymous data volume, using the credentials configured in Quick Start. --rm removes the container and its anonymous volume when it stops:
: "${OTTERIO_ROOT_USER:?Set your saved username first}"
: "${OTTERIO_ROOT_PASSWORD:?Set your saved password first}"
export OTTERIO_ROOT_USER OTTERIO_ROOT_PASSWORD
docker run --rm -p 127.0.0.1:9000:9000 \
-e OTTERIO_ROOT_USER -e OTTERIO_ROOT_PASSWORD \
soulteary/otterio:latest server /data
For persistent storage, map a host directory to /data:
: "${OTTERIO_ROOT_USER:?Set your saved username first}"
: "${OTTERIO_ROOT_PASSWORD:?Set your saved password first}"
export OTTERIO_ROOT_USER OTTERIO_ROOT_PASSWORD
docker run -p 127.0.0.1:9000:9000 \
-e OTTERIO_ROOT_USER -e OTTERIO_ROOT_PASSWORD \
-v /mnt/data:/data soulteary/otterio:latest server /data
macOS
Download otterio-darwin-arm64 for Apple Silicon or otterio-darwin-amd64 for Intel from GitHub Releases, together with that release's otterio-<TAG>-checksums.txt. These are raw binaries, not archives. Check the selected binary against its entry with shasum -a 256; see release verification. For Apple Silicon:
mv otterio-darwin-arm64 otterio
chmod +x otterio
mkdir -p "$HOME/otterio-data"
./otterio server "$HOME/otterio-data"
Set and export your saved OTTERIO_ROOT_USER and OTTERIO_ROOT_PASSWORD before starting the binary, as in Quick Start. The release workflow does not publish a Homebrew tap.
Linux
Download the otterio-linux-<arch> binary and otterio-<TAG>-checksums.txt from the same GitHub Release. Verify the selected binary against its entry with sha256sum, then rename it to otterio. For an amd64 host:
mv otterio-linux-amd64 otterio
chmod +x otterio
mkdir -p "$HOME/otterio-data"
./otterio server "$HOME/otterio-data"
Export your saved root credentials before starting the binary. See release verification for checksum details.
The release pipeline (release.yml) currently produces Linux binaries for the following architectures:
| Architecture | goarch |
|---|---|
| 64-bit Intel/AMD | amd64 |
| 64-bit ARM | arm64 |
| 64-bit PowerPC LE | ppc64le |
The tag-driven workflow publishes raw binaries and SHA-256 checksums; it does not publish .deb or .rpm packages. See the release guide.
Windows
Download otterio-windows-amd64.exe and otterio-<TAG>-checksums.txt from the same GitHub Release. Compare (Get-FileHash .\otterio-windows-amd64.exe -Algorithm SHA256).Hash with its checksum entry, then run it in PowerShell:
Rename-Item .\otterio-windows-amd64.exe otterio.exe
# Set these to the same non-default credentials you saved for this deployment.
$env:OTTERIO_ROOT_USER = Read-Host 'Root username'
$env:OTTERIO_ROOT_PASSWORD = Read-Host 'Root password' -MaskInput
New-Item -ItemType Directory -Force D:\otterio-data | Out-Null
.\otterio.exe server D:\otterio-data
Read-Host -MaskInput requires PowerShell 7.1 or newer. You can also supply the environment variables from your secret manager.
FreeBSD
OtterIO does not currently provide an official FreeBSD package. Build from source on FreeBSD using the Build from Source instructions below.
Build from Source
Source builds are intended for developers and advanced users. Install Git, Make, and Go 1.27.4 or newer (see How to install Go); make build checks dependencies and builds ./otterio. Export your saved root credentials before running it.
git clone https://github.com/soulteary/otterio.git
cd otterio
make build
mkdir -p "$HOME/otterio-data"
./otterio server "$HOME/otterio-data"
[!WARNING] We strongly recommend against running compiled-from-source binaries in production. Use a tagged release for production deployments.
Configuration
Independent Web Console
Use OC Console for browser access. This branch removes OtterIO's embedded page, Web RPC and Web-specific upload/download/ZIP routes. OC's current source supports independent native IAM and OIDC sessions; use a version containing the required mode and a compatible backend. Browser users retain their own backend permissions. A shared startup alias shares one identity and must not substitute for independent users.
This is a removal candidate, not a certified release migration. Published replacement pairs, platform/upgrade checks and the historical notification/fallback windows remain incomplete. See the removal assessment and deprecation history.
Omit OTTERIO_BROWSER or set it to off. Explicit on fails with migration guidance; it cannot restore the removed Web.
Run S3 and Admin on separate ports
By default S3 and Admin share the listener bound to --address. OtterIO can serve Admin on a dedicated port so that reverse proxies, firewalls, and network policies can govern storage and management traffic independently.
Enable the dedicated Admin listener via the compatibility name --console-address or OTTERIO_BROWSER_ADDRESS:
# CLI flag
otterio server --address ":9000" --console-address ":9001" /data
# Environment variable (equivalent)
export OTTERIO_BROWSER_ADDRESS=":9001"
otterio server --address ":9000" /data
When the dedicated Admin listener is enabled:
:9000serves the S3 API, STS, health, and metrics.:9001serves the Admin API (/otterio/admin/v3/*), without an embedded Web page.- The Admin port must differ from the S3 port; otherwise startup fails fast.
Ctrl+C/SIGTERMshuts down both listeners gracefully.
[!NOTE] The Admin API (used by
oc admin ...and OC Console's permitted management operations) uses the dedicated Admin port. OC keeps the S3 URL and an independent--admin-urlin one alias; see Verify. Regular S3 operations (oc cp,oc ls, etc.) continue to use the S3 port. Private CAs can be configured independently for each endpoint; see OC configuration.
If --console-address is not provided, both surfaces share a single port (the original behaviour).
Dedicated TLS certificates for the Admin listener
When you split listeners, S3 and Admin can use independent TLS keypairs and CA trust. The compatibility names remain --console-certs-dir and OTTERIO_BROWSER_CERTS_DIR; they configure OtterIO's Admin listener, not OC Console's browser TLS:
otterio server \
--address ":9000" \
--console-address ":9001" \
--certs-dir /etc/otterio/certs/s3 \
--console-certs-dir /etc/otterio/certs/console \
/data
The directory pointed to by --console-certs-dir must contain public.crt and private.key, the same layout used by --certs-dir. Notes:
--console-certs-dirrequires--console-address; otherwise startup fails fast.- If
--console-certs-diris not set, the Admin listener reuses the certificates loaded from--certs-dir. - The S3 listener always uses
--certs-dir; only the Admin listener honours--console-certs-dir. - Both keypairs are watched and hot-reloaded by the same certificate manager used for
--certs-dir.
Firewall
By default OtterIO listens on port 9000 for S3 traffic (and the configured Admin port, 9001 in these examples, when split). Restrict Admin access to the management network or local OC process; the browser endpoint belongs to OC Console. Some platforms block these ports until you explicitly open them.
ufw (Debian / Ubuntu)
ufw allow 9000
# Range
ufw allow 9000:9010/tcp
firewall-cmd (CentOS / RHEL)
firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=9000/tcp --permanent
firewall-cmd --reload
--permanent makes the rule persist across reboots and reloads.
iptables (RHEL, CentOS, etc.)
iptables -A INPUT -p tcp --dport 9000 -j ACCEPT
service iptables restart
# Range
iptables -A INPUT -p tcp --dport 9000:9010 -j ACCEPT
service iptables restart
Pre-existing data
When deployed on a single drive, OtterIO server lets clients access any pre-existing data in the data directory. For example, if OtterIO is started with otterio server /mnt/data, any pre-existing data in /mnt/data is accessible to clients. The same applies to all gateway backends.
Verify
Use the credentials configured at startup. The Docker examples above pass OTTERIO_ROOT_USER and OTTERIO_ROOT_PASSWORD; they do not use a default password. In a new shell, restore those same saved values before running the client commands below. Bare-metal binaries are not subject to the container entrypoint check, but should also be configured with non-default credentials before deployment.
OC Web Console
Install a compatible oc-console using the OC Console guide, configure the actual S3 and Admin endpoints, then open the browser address printed by OC. OtterIO's 9000 and 9001 endpoints do not serve the Web Console. Select native IAM or OIDC mode for independent users and retain each user's backend permissions; do not share an administrator alias among them.
The removal assessment distinguishes source acceptance from published replacement availability. The optional backend protocols have separate layered acceptance and a report entry.
OC client
Install OC, the companion client for S3 operations and OtterIO administration. The following example uses the Quick Start's two ports. When OC prompts, enter the root username and password used to start OtterIO:
oc alias set local http://127.0.0.1:9000 \
--api s3v4 --path on --admin-url http://127.0.0.1:9001
oc mb local/otterio-quickstart
printf 'Hello from OtterIO\n' > otterio-hello.txt
oc cp otterio-hello.txt local/otterio-quickstart/hello.txt
oc cp local/otterio-quickstart/hello.txt otterio-downloaded.txt
cmp otterio-hello.txt otterio-downloaded.txt
oc ls local/otterio-quickstart/
oc admin info local
cmp exits successfully when the downloaded bytes match. The example creates a bucket and two local files; choose another bucket name if you already used it. For a single-port server, omit --admin-url. For applications, use an IAM-issued access key with the required permissions instead of the root credentials.
OtterIO SDK provides the Go client and a working upload example. Other S3 clients such as aws-cli, s3cmd, and upstream mc can target the S3 endpoint, subject to the features and signing behavior your workload needs. OtterIO's management API uses /otterio/admin/v3; upstream mc admin targets a different path, so use OC for administration.
Further Reading
Project documentation (this repository)
- Documentation index · 中文文档索引
- OC command-line client · Go SDK
- Erasure Coding
- Distributed mode
- Multi-user / IAM
- STS — temporary credentials
- TLS
- KMS
- Bucket notifications
- Bucket replication
- Bucket lifecycle / retention / versioning / quota
- Metrics & Prometheus
- Logging
- Docker · Orchestration
- Security advisories backlog
- LDAP DN normalisation migration
- Limits
Upstream references (third-party)
The links below point to the original upstream MinIO project's documentation. They remain useful as background reading on S3-compatible workflows, but they describe upstream MinIO behaviour and are not maintained by OtterIO:
- Erasure Code Quickstart Guide (upstream)
mcClient Quickstart (upstream)aws-cliwith MinIO (upstream)s3cmdwith MinIO (upstream)- Go SDK Quickstart (upstream)
Contributing
Thank you to our reporters and contributors. See the acknowledgment records for their specific contributions.
Contributions are welcome via the project repository at https://github.com/soulteary/otterio. Start with the local Contributor's Guide for the repository layout, supported toolchain and checks. The current project assessment records the reviewed source, release boundary and documentation gaps.
Security Advisory
Click to expand — please read before deploying.
Because OtterIO is forked from the last Apache 2.0 release of MinIO (≈ RELEASE.2021-04-22T15-44-28Z), every CVE / GHSA published against upstream minio/minio after that date must be evaluated and back-ported separately. OtterIO does not automatically inherit those fixes.
The rolling advisory backlog records each item's applicability, source-level fix and regression tests. A source fix or closed item does not prove that your deployed release contains it; verify the selected tag and artifact. New advisories are added with status Pending and tracked there. This record does not replace a deployment-specific security assessment.
Operators upgrading from a previous OtterIO build that used LDAP should consult docs/security/ldap-dn-normalization-migration.md before rolling out: the new release canonicalises every LDAP DN before it touches the IAM policy map, which is a one-shot breaking change for deployments that happened to rely on case-only DN differences.
Before adopting OtterIO, please evaluate fitness against your own deployment context — workload profile, capacity / throughput targets, compliance and data-residency requirements, supported-version policy, and your organisation's change-management expectations. As with any infrastructure component, we recommend a staged rollout (lab → staging → production) and validating the relevant codepaths against your own regression suite. See SECURITY.md for the disclosure policy and the supported-versions matrix.
Hardening highlights
Relative to the 2021-04-22 Apache-licensed MinIO baseline OtterIO has back-ported and (where applicable) hardened the following upstream advisories — full per-item context, codepaths, and regression tests live in docs/security/upstream-cve-backlog.md:
- SSE metadata injection (GHSA-3rh2-v3gr-35p9 class) — reserved-prefix metadata is rejected at both the router edge and
extractMetadata. - Precondition GET / HEAD metadata disclosure (GHSA-95fr-cm4m-q5p9 / CVE-2024-36107) —
s3:ExistingObjectTag/*ands3:RequestObjectTag/*are now first-class condition keys, and the precondition path re-runs auth before writingETag/Last-Modifiedso a tag-gated deny no longer leaks object state. - SSE-KMS context binding (multiple post-2022 CVEs) — bucket / object AAD is reconstructed from the runtime
(bucket, object)on every seal and unseal, hostile or tamperedMetaContextblobs are rejected with a dedicated 403 sentinel before the KMS is ever called, and the seven legacyErrNotImplementedPUT-handler stubs have been replaced with a singleenforceSSEKMSRequestsecurity gate covering single-PUT, multipart, copy and post-policy paths. - Service-account privilege escalation —
GHSA-jjjj-jwhf-8rgr(own-account create-SA bypass), the RELEASE.2025-10-15 sub-policy escalation, andGHSA-xx8w-mq23-29g4 / CVE-2024-24747(admin:UpdateServiceAccount) are all closed; sub-policies must be a subset of the caller's capability. AddUserPolicyName privilege escalation (CVE-2021-43858) — defence-in-depth at both the handler (HTTP 400) and IAM-layer (silent strip).- LDAP DN normalisation family (2022–2024 advisories) — RFC 4514 + RFC 4518 canonicalisation at every DN egress and at the IAM boundary, with a one-shot persisted-data migration; see the migration note linked above.
- Bucket / IAM policy parsing —
Principal/Resource/Actionunmarshal panics fixed, attacker-controlled input no longer reflected into error messages, fuzz corpus added. - SigV4 signed-headers and chunked-upload hardening — empty
X-Amz-Content-Sha256is treated as "not provided" instead of coercing the canonicaliser,SignedHeadersis case-folded, and aws-chunked uploads must signx-amz-decoded-content-length. - Replication-header IAM gate — fork-private
X-Otterio-Source-*headers now require thes3:ReplicateObjectaction viaenforceSourceHeaderIAM, closing a forge path that could rewrite object mtime / ETag or force delete-markers under ordinarys3:PutObject/s3:DeleteObjectpermissions. - CVE-2023-28432 bootstrap info disclosure —
VerifyHandleris now gated on the same inter-node JWT validator used by peer-rest / storage-rest / lock-rest; onlyHealthHandlerremains anonymous. - Multi-value
Hostheader smuggle (fork-introduced concern) — audited and pinned: both fasthttp and net/http collapse or reject duplicate Host headers before any handler runs, and SigV4 reads only the scalarr.Host, so the two-header smuggle is not constructible.
Two further upstream advisories (CVE-2021-41137 regular-user policy bypass and GHSA-cwq8-g58r-32hg ImportIAM privilege escalation) are not applicable to the 2021-04 baseline — see the backlog for the audit trail and the negative-pinning regression tests.
Trademark & Upstream Notice
Click to expand
OtterIO is an independent, community-maintained fork of the upstream Apache-licensed MinIO codebase. This project is not affiliated with, endorsed by, or sponsored by MinIO, Inc.
"MinIO" is a trademark of MinIO, Inc., used here solely to identify the upstream project from which this fork is derived. No trademark rights are granted by the Apache License 2.0 (see Section 6 of the license).
OtterIO is based on the last Apache License 2.0 release of MinIO, prior to MinIO's relicensing to the GNU AGPLv3, and remains distributed under the Apache License, Version 2.0. The original copyright notices of MinIO, Inc. and all third-party subcomponents are retained — see NOTICE.
OtterIO publishes its own binaries on GitHub Releases and container images at soulteary/otterio (Docker Hub) and ghcr.io/soulteary/otterio (GitHub Container Registry). Use these OtterIO artifacts or build from source to get the fork's customizations. Links to docs.min.io, dl.min.io, etc. refer to the original upstream project.
Project home: https://github.com/soulteary/otterio
License

OtterIO is governed by the Apache License, Version 2.0, found at LICENSE. Attribution and third-party notices are listed in NOTICE.
"MinIO" is a trademark of MinIO, Inc. OtterIO is not affiliated with, endorsed by, or sponsored by MinIO, Inc.
Explore related projects
Loading…
