Deploy RustFS for Backstage TechDocs storage #90

Open
opened 2026-11-25 17:19:29 +00:00 by martin · 8 comments
Owner

Summary

Deploy RustFS in the cluster as a private S3-compatible store for hosted Backstage TechDocs.

Context

  • Personal/backstage#30 is the overall hosted-deployment gate; Personal/cluster#88 deploys the Backstage application.
  • Backstage #25 records the TechDocs approach: build docs in CI, publish to private object storage, give CI write access and the Backstage backend read access. Personal/backstage#62 covers the shared Bun image/promotion workflow, not the TechDocs publisher.
  • RustFS is the chosen S3-compatible implementation. Its single-node/single-drive layout is standalone and cannot be expanded in place; choose and document the storage topology before creating the data store.
  • The cluster uses Nixidy/ArgoCD and SOPS-encrypted SopsSecret resources. No RustFS service or explicit object-storage deployment is currently tracked here.

Scope

  • Deploy a pinned RustFS release as a shared internal cluster service, using Nixidy/ArgoCD.
  • Select a durable storage class and topology for the RustFS data; keep the S3 API and administration interface private.
  • Create a dedicated TechDocs bucket and least-privilege credentials. Store cluster-side credentials using the existing SOPS workflow; CI credentials belong in the approved Woodpecker secret store.
  • Provide a private S3 endpoint reachable by the Backstage dev/prod backends and the authorized TechDocs publisher in CI.
  • Leave application-side TechDocs configuration and publication tests to Personal/backstage#30.

Acceptance criteria

  • A pinned RustFS release is deployed through Nixidy/ArgoCD in the shared infrastructure environment, with no public S3 or admin-console ingress.
  • RustFS data is stored on a verified persistent volume, not the container filesystem. Document the single-node topology and its migration constraint; verify restart persistence and a recovery path (restore backup or republish the generated docs).
  • A dedicated TechDocs bucket and private endpoint are available to the required Backstage and CI workloads; verify the S3 operations TechDocs needs (list, read, publish/update, and delete).
  • Backstage receives a read-only bucket key and CI receives a separate write-capable key; the RustFS root/admin credential is not used by either workload.
  • Cluster-side credentials are kept in encrypted SOPS SopsSecret resources. CI credentials use Woodpecker secrets. No plaintext credentials appear in Git or generated manifests.
  • Nixidy formatting, tests, and the relevant environment build pass; ArgoCD reports RustFS healthy and the encrypted Secret is reconciled.
## Summary Deploy RustFS in the cluster as a private S3-compatible store for hosted Backstage TechDocs. ## Context - [Personal/backstage#30](https://code.martials.no/Personal/backstage/issues/30) is the overall hosted-deployment gate; [Personal/cluster#88](https://code.martials.no/Personal/cluster/issues/88) deploys the Backstage application. - Backstage [#25](https://code.martials.no/Personal/backstage/issues/25) records the TechDocs approach: build docs in CI, publish to private object storage, give CI write access and the Backstage backend read access. [Personal/backstage#62](https://code.martials.no/Personal/backstage/issues/62) covers the shared Bun image/promotion workflow, not the TechDocs publisher. - RustFS is the chosen S3-compatible implementation. Its single-node/single-drive layout is standalone and cannot be expanded in place; choose and document the storage topology before creating the data store. - The cluster uses Nixidy/ArgoCD and SOPS-encrypted `SopsSecret` resources. No RustFS service or explicit object-storage deployment is currently tracked here. ## Scope - Deploy a pinned RustFS release as a shared internal cluster service, using Nixidy/ArgoCD. - Select a durable storage class and topology for the RustFS data; keep the S3 API and administration interface private. - Create a dedicated TechDocs bucket and least-privilege credentials. Store cluster-side credentials using the existing SOPS workflow; CI credentials belong in the approved Woodpecker secret store. - Provide a private S3 endpoint reachable by the Backstage dev/prod backends and the authorized TechDocs publisher in CI. - Leave application-side TechDocs configuration and publication tests to Personal/backstage#30. ## Acceptance criteria - [x] A pinned RustFS release is deployed through Nixidy/ArgoCD in the shared infrastructure environment, with no public S3 or admin-console ingress. - [ ] RustFS data is stored on a verified persistent volume, not the container filesystem. Document the single-node topology and its migration constraint; verify restart persistence and a recovery path (restore backup or republish the generated docs). - [ ] A dedicated TechDocs bucket and private endpoint are available to the required Backstage and CI workloads; verify the S3 operations TechDocs needs (list, read, publish/update, and delete). - [ ] Backstage receives a read-only bucket key and CI receives a separate write-capable key; the RustFS root/admin credential is not used by either workload. - [x] Cluster-side credentials are kept in encrypted SOPS `SopsSecret` resources. CI credentials use Woodpecker secrets. No plaintext credentials appear in Git or generated manifests. - [x] Nixidy formatting, tests, and the relevant environment build pass; ArgoCD reports RustFS healthy and the encrypted Secret is reconciled. ## Related - [Personal/backstage#30](https://code.martials.no/Personal/backstage/issues/30) — overall deployment gate; depends on this RustFS service and its verified storage. - [Personal/cluster#88](https://code.martials.no/Personal/cluster/issues/88) — Backstage dev/prod deployment consuming the service. - [Personal/backstage#25](https://code.martials.no/Personal/backstage/issues/25) — TechDocs publishing/storage decision. - [Personal/backstage#62](https://code.martials.no/Personal/backstage/issues/62) — shared Bun application image/promotion workflow.
Author
Owner

Progress

  • Added the pinned RustFS 1.0.6 Helm chart and Nixidy infra application: standalone, one replica, a retained 20 GiB local-path PVC, and a ClusterIP-only service. The S3 endpoint is http://rustfs-svc.infra.svc.cluster.local:9000; no ingress is generated.
  • Documented the single-node/no-expansion limitation, republish recovery path, and bucket-scoped read/publish policy guidance in docs/rustfs-techdocs.md.
  • Populated SOPS credentials are present in the infra admin and dev/prod Backstage resources. I verified SOPS decryption with output suppressed and confirmed generated manifests contain encrypted values; no secret values are included here.
  • Generated manifests for infra, dev, and prod in the working tree. No live cluster deployment was attempted.

Validation

  • just fmt passed before encrypted SOPS values were added; Nix/Markdown-only formatting passed afterward without touching encrypted YAML.
  • Unit tests passed (81/81) and integration tests passed (11/11).
  • Nixidy switch/build completed for infra, dev, and prod using the worktree path so untracked modules were included. Generated infra manifests use pinned images, a 20 GiB local-path PVC, and a ClusterIP Service; no public ingress is rendered.

Remaining

  • I did not commit or push, so ArgoCD health and actual persistence/S3 operation checks remain unverified. The CI secret in Woodpecker was not independently verified. After the GitOps change is reviewed and applied, create the bucket and scoped IAM users, verify the workload permissions, restart persistence, and republish recovery path.
## Progress - Added the pinned RustFS 1.0.6 Helm chart and Nixidy infra application: standalone, one replica, a retained 20 GiB `local-path` PVC, and a ClusterIP-only service. The S3 endpoint is `http://rustfs-svc.infra.svc.cluster.local:9000`; no ingress is generated. - Documented the single-node/no-expansion limitation, republish recovery path, and bucket-scoped read/publish policy guidance in `docs/rustfs-techdocs.md`. - Populated SOPS credentials are present in the infra admin and dev/prod Backstage resources. I verified SOPS decryption with output suppressed and confirmed generated manifests contain encrypted values; no secret values are included here. - Generated manifests for infra, dev, and prod in the working tree. No live cluster deployment was attempted. ## Validation - `just fmt` passed before encrypted SOPS values were added; Nix/Markdown-only formatting passed afterward without touching encrypted YAML. - Unit tests passed (81/81) and integration tests passed (11/11). - Nixidy switch/build completed for infra, dev, and prod using the worktree path so untracked modules were included. Generated infra manifests use pinned images, a 20 GiB local-path PVC, and a ClusterIP Service; no public ingress is rendered. ## Remaining - I did not commit or push, so ArgoCD health and actual persistence/S3 operation checks remain unverified. The CI secret in Woodpecker was not independently verified. After the GitOps change is reviewed and applied, create the bucket and scoped IAM users, verify the workload permissions, restart persistence, and republish recovery path.
Author
Owner

Progress

  • Opened PR #94 with the RustFS deployment, encrypted credentials, generated manifests, and storage/recovery documentation.
  • The PR does not close this issue. ArgoCD health, bucket/IAM permissions, S3 operations, and PVC recovery still need runtime verification after GitOps applies the change.
## Progress - Opened [PR #94](https://code.martials.no/Personal/cluster/pulls/94) with the RustFS deployment, encrypted credentials, generated manifests, and storage/recovery documentation. - The PR does not close this issue. ArgoCD health, bucket/IAM permissions, S3 operations, and PVC recovery still need runtime verification after GitOps applies the change.
Author
Owner

Progress

  • PR #94 is merged (merge commit f14e9d1).
  • Read-only cluster checks show rustfs-infra and the dev/prod credential applications Synced/Healthy; the RustFS pod is Ready; the 20 GiB local-path PVC is Bound; and the infra/dev/prod SopsSecrets report Healthy.

Remaining

  • S3 bucket/IAM operations and object persistence through a RustFS restart have not been verified here. The issue remains open pending those checks and confirmation of the republish recovery path.
## Progress - PR #94 is merged (merge commit `f14e9d1`). - Read-only cluster checks show `rustfs-infra` and the dev/prod credential applications Synced/Healthy; the RustFS pod is Ready; the 20 GiB `local-path` PVC is Bound; and the infra/dev/prod SopsSecrets report Healthy. ## Remaining - S3 bucket/IAM operations and object persistence through a RustFS restart have not been verified here. The issue remains open pending those checks and confirmation of the republish recovery path.
Author
Owner

Progress

  • Read-only cluster checks confirm the RustFS ArgoCD app and credential apps are healthy, the pod is Ready, the 20 GiB PVC is Bound, and all three SopsSecrets are Healthy.
  • Created the dedicated techdocs bucket using the RustFS admin credential.

Blocker

  • A read-only S3 list using the dev credential returns InvalidAccessKeyId, so the RustFS IAM user/policy matching the SOPS credentials has not been provisioned yet. The requested rustfs-cli package was not present in the resolved nixpkgs; I stopped rather than extracting the downloaded release after that action was declined. No test object was written and RustFS was not restarted.
## Progress - Read-only cluster checks confirm the RustFS ArgoCD app and credential apps are healthy, the pod is Ready, the 20 GiB PVC is Bound, and all three SopsSecrets are Healthy. - Created the dedicated `techdocs` bucket using the RustFS admin credential. ## Blocker - A read-only S3 list using the dev credential returns `InvalidAccessKeyId`, so the RustFS IAM user/policy matching the SOPS credentials has not been provisioned yet. The requested `rustfs-cli` package was not present in the resolved nixpkgs; I stopped rather than extracting the downloaded release after that action was declined. No test object was written and RustFS was not restarted.
Author
Owner

Progress

  • Created the private techdocs bucket and a bucket-scoped techdocs-read policy. The dev/prod SOPS identities are provisioned as separate RustFS users with that policy.
  • Used a disposable object to verify dev and prod can list/read it, while PutObject and DeleteObject are denied. The test object was removed and the test prefix is empty.
  • Added a separate techdocs-publish policy for CI. No CI user has been provisioned or tested because its key is only available in Woodpecker secrets.

Remaining

  • RustFS restart persistence and the recovery/republish path remain unverified. I have not restarted the service; please confirm before I perform that brief interruption.
## Progress - Created the private `techdocs` bucket and a bucket-scoped `techdocs-read` policy. The dev/prod SOPS identities are provisioned as separate RustFS users with that policy. - Used a disposable object to verify dev and prod can list/read it, while `PutObject` and `DeleteObject` are denied. The test object was removed and the test prefix is empty. - Added a separate `techdocs-publish` policy for CI. No CI user has been provisioned or tested because its key is only available in Woodpecker secrets. ## Remaining - RustFS restart persistence and the recovery/republish path remain unverified. I have not restarted the service; please confirm before I perform that brief interruption.
Author
Owner

Progress

  • Opened PR #95 to expose the unstable nixpkgs RustFS CLI output; review was requested from clank-bot.
  • This tooling PR does not close #90. The CI publisher identity and restart/recovery verification remain outstanding.
## Progress - Opened [PR #95](https://code.martials.no/Personal/cluster/pulls/95) to expose the unstable nixpkgs RustFS CLI output; review was requested from `clank-bot`. - This tooling PR does not close #90. The CI publisher identity and restart/recovery verification remain outstanding.
Author
Owner

Progress

  • PR #95 is merged, adding the unstable nixpkgs RustFS CLI output. Review was requested from clank-bot.
  • CI publisher IAM provisioning and RustFS restart/recovery verification remain outstanding; this issue stays open.
## Progress - PR #95 is merged, adding the unstable nixpkgs RustFS CLI output. Review was requested from `clank-bot`. - CI publisher IAM provisioning and RustFS restart/recovery verification remain outstanding; this issue stays open.
Author
Owner

Progress

  • Completed a controlled RustFS Deployment restart. The pod UID changed while PVC rustfs-data remained Bound to the same 20 GiB local-path volume.
  • A disposable object uploaded before the restart was read successfully afterward using the dev read-only identity, then deleted. The verification prefix is empty. ArgoCD remains Synced/Healthy and the SOPS resources report Healthy.

Remaining

  • The CI publisher RustFS user is not provisioned, so CI publish/update/delete and republish recovery remain unverified. The Backstage app is also not deployed yet under #88, so actual workload consumption of the dev/prod credentials has not been verified. Keeping this issue open.
## Progress - Completed a controlled RustFS Deployment restart. The pod UID changed while PVC `rustfs-data` remained Bound to the same 20 GiB `local-path` volume. - A disposable object uploaded before the restart was read successfully afterward using the dev read-only identity, then deleted. The verification prefix is empty. ArgoCD remains Synced/Healthy and the SOPS resources report Healthy. ## Remaining - The CI publisher RustFS user is not provisioned, so CI publish/update/delete and republish recovery remain unverified. The Backstage app is also not deployed yet under #88, so actual workload consumption of the dev/prod credentials has not been verified. Keeping this issue open.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Personal/cluster#90
No description provided.