ADR-MB-027: SeaweedFS as the bundled object store
Status
Accepted (replaces the vendored Bitnami MinIO chart)
Context
The demo environment ships one object store per application: twelve buckets spread over
nine releases (nextcloud, docs, drive, meet, projects, people, dictaphone,
conversations, messages). Until now these ran the vendored Bitnami MinIO chart
(helmfile/apps/common/charts/minio, 17.0.11).
MinIO changed its licence and distribution model: the upstream community images and the
minio binary are no longer published under terms that fit this repository, and the
Bitnami images we relied on moved to bitnamilegacy without a supported upgrade path.
Continuing on that chart would leave the demo environment on an unmaintained, licence-wise
unclear dependency.
The vendored chart also fought the repository policies: it needed per-app value files of
~1 800 lines to satisfy the label, security-context, imagePullPolicy, ServiceAccount and
NetworkPolicy rules, and its provisioning Job and console deployments added moving parts
(object browser, os-shell init container) that the suite never used.
Decision
We will replace MinIO with SeaweedFS and manage the chart ourselves.
- One SeaweedFS instance per application, in the application namespace, released as
<app>-seaweedfs. Public hostnames stay user-facing and use<app>-objectstore.<domain>. Per-app isolation is preserved: credentials, buckets and PVCs stay scoped to one application. - An in-house chart at
helmfile/apps/common/charts/seaweedfs, based on thetemplate/scaffold and the sharedcommonlibrary. It runsweed server(master + volume + filer + S3 gateway) as a single-replica StatefulSet. - S3-compatible on port 8333. The public Service exposes only the S3 API; master and filer are reachable through a headless Service and the NetworkPolicy limits them to the bucket setup Job.
- The S3 gateway config is rendered at container start from the
access-keyandsecret-keySecret keys, so chart-managed Secrets and External Secrets Operator behave identically. server.externalUrlis mandatory whenever the store is reachable through the Gateway, so presigned URLs and SigV4 verification work behind the reverse proxy.- Buckets are created by a post-install/post-upgrade Job that checks
s3.bucket.listbefore callings3.bucket.create, becauseweed shellis not idempotent for bucket creation. - Credential derivation moves from the
miniosalt toseaweedfs, and the OpenBao path from<env>/minioto<env>/seaweedfs. Existing credentials and presigned URLs are invalid after the cutover; no data migration is performed because the demo environment has no data of record.
Consequences
- The demo environment depends on
chrislusf/seaweedfs(Apache-2.0). The image tag is pinned incontainer.yaml.gotmpland bumped byupdatecli/updatecli.d/seaweedfs.yaml. appVersionin the chart is4.55.0while the image tag is4.55, becausepolicy/labels.regorequires theapp.kubernetes.io/versionlabel to be semver.- There is one object store pod per application. A pod restart is downtime for that
application's uploads; the PVC is
ReadWriteOnceand there is no replication. This is acceptable for the demo environment and documented as a production follow-up. - SeaweedFS keeps no console, so the per-app object browser is gone. It was never exposed: the MinIO console ingress was always disabled.
- Bucket lifecycle rules other than the
fs.configure -ttlused for Messages imports are not managed by the chart. Setting S3 lifecycle configuration requires a follow-up Job. - S3 client compatibility (checksum/chunked upload handling, presigned URL host verification, CORS preflight) must be verified per application; see the validation list in the migration issue.