Repository navigation
Closed as not planned
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Description
Problem
Checked at devops-cli main 3f8f7a9.
- dan-petty/danielpetty.com keeps owned data in namespace
danielpetty-com: notes in SQLite on alocal-pathvolume (dan-petty/danielpetty.com#29). Alocal-pathvolume stops with its node (docs/SERVICE_PATTERNS.mdST5). One worker is NotReady on 2026-11-21 (kubectl get nodes). - The Compose backup of the site (fix(backup): Replace broken backup with scheduled container danielpetty.com#5) is not planned: the cluster is the only hosted deployment (owner decision 2026-11-21).
- The cluster backup design: the SeaweedFS store (feat(k8s): run a three-node SeaweedFS object store #4750); buckets, identities and keys from git with the SeaweedFS operator CRs (feat(k8s): apply store buckets, keys and rules from git #4756); k8up restic Schedules (feat(k8s): Add scheduled off-node backup and restore for Gitea #2144, feat(k8s): back up the other app volumes off their node #4767). feat(k8s): apply store buckets, keys and rules from git #4756 gives each writer identity a Secret
object-store-<identity>with keysaccessKeyandsecretKeyin its namespace, an S3Credentials with asecretRefto it, and a ResourceReferenceGrant there. Its key works only on its own bucket, and the writer reaches the store on TCP 8333. feat(k8s): apply store buckets, keys and rules from git #4756 lists 9 buckets, and none is for the site. - k8up also needs a restic password for each repository, which the owner keeps offline (feat(k8s): back up the other app volumes off their node #4767).
- The Pixelfed data gets its own bucket in feat(k8s): add the danielpetty-com-pixelfed backup bucket and key #6649, so this item does not wait for the Pixelfed namespace.
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-comwith an S3Policy and an S3PolicyBinding, so the key works only on that bucket. S3Credentials withsecretRefto Secretobject-store-backup-danielpetty-comin namespacedanielpetty-com, and a ResourceReferenceGrant there. The project of the Application that applies these CRs getsdanielpetty-comas a destination. - ClusterSecret rows in stack
danielpetty-com:danielpetty-com/object-store-backup-danielpetty-com:accessKeyandsecretKeywith SecretGenerator values, in the form of feat(k8s): apply store buckets, keys and rules from git #4756;danielpetty-com/backup-restic: keypassword, required, generatorurlsafewith 32 bytes.change_note: a new value makes the old snapshots unreadable.
- The store perimeter admits namespace
danielpetty-comon 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,domainpasses. -
uv run devops k8s push-secrets --only danielpetty-com/object-store-backup-danielpetty-com --dry-runand the same command fordanielpetty-com/backup-resticlist the keys and no value. - After the sync:
kubectl -n object-store get buckets.seaweed.seaweedfs.com backups-danielpetty-comshows the bucket with its quota. - The S3Identity, S3Policy, S3PolicyBinding and S3Credentials of
backup-danielpetty-comshow a ready status inkubectl getof each kind. feat(backup): back up events.db off its node with k8up danielpetty.com#33 tests the key against the store.
Person steps
- Before the merge, from the branch:
uv run devops k8s push-secrets --only danielpetty-com/object-store-backup-danielpetty-comanduv run devops k8s push-secrets --only danielpetty-com/backup-restic. Then--planmust showunchanged. - 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
- feat(k8s): add the danielpetty-com namespace, project and Secret row #6642: the namespace and stack
danielpetty-com. - feat(k8s): run a three-node SeaweedFS object store #4750: the store.
- feat(k8s): apply store buckets, keys and rules from git #4756: the CRs and the key flow.
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
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard workscope/k8sKubernetes commands, Helm charts, pods, services, and policiessource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Activity
dan-petty commentedon Nov 21, 2026
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.devops-cli-service commentedon Nov 21, 2026
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:
Sources:
dan-petty commentedon Nov 21, 2026
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 Secretobject-store-backup(the key pair from an ESO Password generator at a namespaced remote key), and the labelbackup-clientthat 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.