backups: community-data export has no sealed packer — the second Take-a-copy download 501s until ADR 0104 multi-dataset packing + a log archive land #1457
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1457
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?
Parent
Split out of #1429 (the two Take-a-copy exports get a packer). #1429 shipped
stack-configlive (the secret-free blueprint) and wired thestackExportseam in production;community-datais the deferred half. See ADR 0242 (the two bundle shapes) for the contract.What exists
internal/stackexportpacksstack-configand refusescommunity-dataloud (ErrCommunityDataUnavailable→POST /export/community-data/GET /export/community-data/manifest501; the dialog reads the sentence out as its download-failed state, AC3 of #1429).internal/backupexport.Store, Identity on the gateway). There is no multi-dataset "pack everything sealed" archiver, no remote-node snapshot packaging, and no log-archive primitive (/logs/download/{scope}serves bounded JSON lines, not a byte blob).What community-data must be (ADR 0242, Ben's ruling)
The community's CONTENT — files, each service's DB dump, and the operation logs — sealed with the same offsite-grade (age) encryption the backup engine's copies use (ADR 0104). Shipping it unsealed would put member content in plaintext in a browser download (a security-posture decision, not made implicitly).
What to do
stackexport(or backup-engine) seam: per dataset, a fresh snapshot → age-seal with the dataset's crown-jewel key → tar beside the service DB dumps and a log archive, served by the same TTL handle/exports/{ref}already serves.wholeBackupPorts, not the resting one).community-datarefusal ininternal/stackexportwith the real manifest + pack; flip the controlapi 501 to a real 200.Acceptance
age, no unsealed member content anywhere.stack-config+community-dataendpoints, andstackExportwired in production #1429Ruled by agent under ADR 0174 — veto anytime.
Ruling: category
enhancement+ stateready-for-agent.Triage checks.
internal/stackexportshipsstack-configlive and refusescommunity-dataloud (ErrCommunityDataUnavailable→ 501), andinternal/backupexport.Storepackages one locally-readable dataset snapshot at a time — there is no multi-dataset sealed archiver and no log-archive primitive. This ticket is the deferred half of #1429, correctly split.community-datais sealed content; ADR 0104 defines the offsite-grade (age) sealing to reuse; the dialog's download-failed state already exists. No missing flow/wireframe/seam → notneeds-design.Why a two-way door: an additive packer behind the existing
stackexport/backup-engine seam, wired only in the whole composition (where crown-jewel keys live), flipping a 501 to a real 200 — revertible by commit, and a revert simply restores today's honest refusal.What proves it: the three acceptance criteria are all test-provable — a sealed tar whose contents match the manifest part-for-part, a rebuild that reads it with the community's keys +
age(no unsealed member content anywhere), and a clean named-reason refusal when a dataset snapshot can't be reached (ADR 0100).The log-archive primitive choice (full blob vs. a bounded honest subset) is itself a two-way door for the implementer — start with the honest subset if the byte-blob primitive is a larger slice, and note it on the ticket.
swarm-claim host=matou-dev-server-01 run=22608
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1457 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope