Skip to content

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

Closed as not planned

Description

@dan-petty

Problem

Checked at devops-cli main 3f8f7a9.

Proposed remedy

After #4756, in its folder, with its CRs:

  • Bucket backups-danielpetty-com: quota 5 GiB, reclaimPolicy: Retain, no Expiration rule, no anonymous access.
  • S3Identity backup-danielpetty-com with an S3Policy and an S3PolicyBinding, so the key works only on that bucket. S3Credentials with secretRef to Secret object-store-backup-danielpetty-com in namespace danielpetty-com, and a ResourceReferenceGrant there. The project of the Application that applies these CRs gets danielpetty-com as a destination.
  • ClusterSecret rows in stack danielpetty-com:
    • danielpetty-com/object-store-backup-danielpetty-com: accessKey and secretKey with SecretGenerator values, in the form of feat(k8s): apply store buckets, keys and rules from git #4756;
    • danielpetty-com/backup-restic: key password, required, generator urlsafe with 32 bytes. change_note: a new value makes the old snapshots unreadable.
  • The store perimeter admits namespace danielpetty-com 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. The unit test of feat(k8s): apply store buckets, keys and rules from git #4756 that no backups-* bucket has an Expiration rule covers the new bucket.

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/object-store-backup-danielpetty-com --dry-run and the same command for danielpetty-com/backup-restic list the keys and no value.
  • After the sync: kubectl -n object-store get buckets.seaweed.seaweedfs.com backups-danielpetty-com shows the bucket with its quota.
  • The S3Identity, S3Policy, S3PolicyBinding and S3Credentials of backup-danielpetty-com show a ready status in kubectl get of each kind. feat(backup): back up events.db off its node with k8up danielpetty.com#33 tests the key against the store.

Person steps

  1. Before the merge, from the branch: uv run devops k8s push-secrets --only danielpetty-com/object-store-backup-danielpetty-com and uv run devops k8s push-secrets --only danielpetty-com/backup-restic. Then --plan must show unchanged.
  2. Keep a copy of the restic password outside the cluster and the workstation, as feat(k8s): back up the other app volumes off their node #4767 asks. Without it, no restore is possible.

Dependencies

Alternatives check of 2026-11-21: in-use.
The item already names this tool.
Tool: seaweedfs/seaweedfs-operator (https://github.com/seaweedfs/seaweedfs-operator), Apache-2.0, last activity 2026-11-18, maintained.
Reason: Searches found no tool that provisions this site's bucket, key and restic password; the SeaweedFS operator, already in use, covers only the bucket, identity and key part through its CRs.

Covers:

  • Bucket CR with quota and Retain reclaim policy
  • S3Identity, S3Policy and binding scoped to one bucket
  • S3Credentials secretRef for accessKey and secretKey

Lacks:

  • Restic repository password, kept offline, unreadable after change
  • ClusterSecret stack rows and push-secrets dry-run checks
  • Store perimeter, AppProject orphans, README rows and tests

Activity

  1. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor
    • Related: feat(k8s): apply store buckets, keys and rules from git #4756, which asks for a different change. Both work on SeaweedFS store buckets and keys in the object-store namespace, but #4756 delivers the general CR mechanism and 9 buckets while the candidate adds the 10th bucket with its own identity for danielpetty-com.
  2. added
    type/feature
    scope/k8s
    source/agent
    status/new
    effort/medium
    value/high
    priority/p2-medium
    on Nov 21, 2026
  3. 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 (5)

    Tools considered:

    Searches run:

    • SeaweedFS operator S3 bucket identity credentials Kubernetes CRD declarative, results: 5
    • k8up restic backup schedule per namespace bucket credentials secret, results: 5
    • seaweedfs-operator github, results: 5
    • k8up backup operator documentation, results: 5
    • "SeaweedFS" operator bucket S3Identity S3Credentials CRD docs, results: 5

    Sources:

  4. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Closed as not planned. After #4756, the tenant chart value backup.quotaGiB (dan-petty/infra#14) gives each tenant namespace a bucket, a scoped S3 identity and Secret object-store-backup (the key pair from an ESO Password generator at a namespaced remote key), and the label backup-client that the store perimeter of #4750 admits. The services entry of the site sets the quota of 5 GiB (dan-petty/homelab#86). The restic password is a PushSecret in the site repository (dan-petty/danielpetty.com#33). k8up comes from #2144.

  5. 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions