infra: restore Delta R2 backup credentials in SOPS #272
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
status:blocked
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
type:cleanup
type:docs
type:epic
type:release
type:research
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta#272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
delta-r2-backup.serviceis configured on the VPS, but its expected env file is missing, so the backup job has been failing. The existing Vaultwarden R2 token was tested against thedeltabucket and returnedAccessDenied, so it should not be assumed to be the Delta backup token.Needed data
R2_ACCESS_KEY_ID.R2_SECRET_ACCESS_KEY.s3://delta/.Scope
delta-r2-backup.serviceto a root-owned/run/secrets/...env file.delta-envlimited to runtime app secrets.Acceptance criteria
aws s3 ls s3://delta/access check passes with the Delta token.delta-r2-backup.servicecompletes successfully on the VPS.Nix side is now prepared: delta-r2-backup.service uses a SOPS-backed EnvironmentFile when secrets/vps/delta-r2-backup-env exists, and the timer is not enabled until that encrypted secret is present. Current VPS timer was stopped because no valid Delta R2 token is available yet.
Per request, deployed a SOPS-backed delta-r2-backup-env using the placeholder/revoked R2 S3 credential values. The VPS now has /run/secrets/delta-r2-backup-env, delta-r2-backup.timer is enabled/active, and the activation-triggered backup run reported success. This still needs replacement with a fresh non-exposed token before considering the credential side healthy.