Skip to content

feat(k8s): add the danielpetty-com-pixelfed backup bucket and key #6649

Closed as not planned

Description

@dan-petty

Problem

Checked at devops-cli main 3f8f7a9.

Proposed remedy

The form of #6648, with the CRs of #4756:

  • Bucket backups-danielpetty-com-pixelfed: quota 30 GiB, reclaimPolicy: Retain, no Expiration rule, no anonymous access.
  • S3Identity backup-danielpetty-com-pixelfed with an S3Policy and an S3PolicyBinding, so the key works only on that bucket. S3Credentials with secretRef to Secret object-store-backup-danielpetty-com-pixelfed in namespace danielpetty-com-pixelfed, and a ResourceReferenceGrant there. The project of the Application that applies these CRs gets that namespace as a destination.
  • ClusterSecret rows in stack danielpetty-com-pixelfed:
  • The store perimeter admits namespace danielpetty-com-pixelfed on TCP 8333.
  • AppProject danielpetty-com: orphan ignore entries for both Secrets.
  • k8s/README.md: the Secret table rows and the bucket list.
  • Change each test first.

Premise check: as in #6642 (#5134 plan step 12).

Acceptance criteria

  • uv run devops ci --check --only k8s,kube-linter,domain passes.
  • uv run devops k8s push-secrets --only danielpetty-com-pixelfed/object-store-backup-danielpetty-com-pixelfed --dry-run and the same command for danielpetty-com-pixelfed/backup-restic list the keys and no value.
  • After the sync: kubectl -n object-store get buckets.seaweed.seaweedfs.com backups-danielpetty-com-pixelfed shows the bucket with its quota.
  • The S3Identity, S3Policy, S3PolicyBinding and S3Credentials of backup-danielpetty-com-pixelfed show a ready status in kubectl get of each kind. feat(backup): back up the Pixelfed database and media off their node danielpetty.com#34 tests the key against the store.

Person steps

  1. Before the merge, from the branch: uv run devops k8s push-secrets --only danielpetty-com-pixelfed/object-store-backup-danielpetty-com-pixelfed and uv run devops k8s push-secrets --only danielpetty-com-pixelfed/backup-restic. Then --plan must show unchanged.
  2. Keep a copy of the restic password outside the cluster and the workstation.

Dependencies

Alternatives check of 2026-11-21: none.
Tool: none found.
Reason: Searches returned nothing usable except SeaweedFS and its cluster operator, which deploys the store but creates no per-namespace bucket, scoped key, or ClusterSecret and AppProject rows. The need is a repository-specific config change.

Lacks:

  • No bucket with 30 GiB quota and Retain policy
  • No per-bucket S3Identity, S3Policy or S3PolicyBinding
  • No ClusterSecret rows or push-secrets dry-run coverage
  • No store perimeter or AppProject orphan entries

Activity

  1. added
    type/feature
    scope/k8s
    on Nov 21, 2026
  2. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
  3. added
    source/agent
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 21, 2026
  4. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (7)

    Tools considered:

    Searches run:

    • SeaweedFS Kubernetes operator manage S3 bucket and credentials declaratively, results: 5
    • Kubernetes operator provision S3 bucket and scoped access key for backup, results: 5
    • seaweedfs-operator github bucket S3Identity S3Policy S3Credentials custom resources, results: 5
    • Crossplane seaweedfs provider bucket access key, results: 5
    • seaweedfs github, results: 5
    • barman-cloud ObjectStore CRD k8up Schedule restic S3 credentials secretRef, results: 5
    • seaweedfs operator kubernetes, results: 5

    Sources:

  5. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Closed as not planned. The same mechanism covers the Pixelfed namespace: the tenant chart (dan-petty/infra#14) makes the bucket backups-danielpetty-com-pixelfed, its scoped identity and the key Secret, and the services entry sets a quota of 30 GiB (dan-petty/homelab#86). The WAL archive objects and the restic password live in the site repository (dan-petty/danielpetty.com#34). The bucket form follows #4756, and k8up comes from #2144.

  6. removed
    status/new
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions