You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Refuse a secrets_sync Push of a Title Another Bucket Already Holds #4191
push_plans in scripts/secrets_sync.py lists only the bucket being pushed to. Pushing a path whose title another bucket already holds creates a second item for the same file, in a second vault.
The duplicate is refused only later, when both buckets are pulled together. Until then the two copies drift, and a pull of either bucket alone restores whichever copy that bucket holds.
How to Reproduce
With the fake op: push .secrets/alpha_api_token to bucket alpha, then push the same path to bucket beta. Both succeed. A pull --bucket alpha --bucket beta then refuses over the shared title.
Fix Direction
Before a push creates an item, read the titles of every Secrets * vault and refuse a title another bucket holds, naming that bucket. The listing costs one call per vault and downloads nothing. Moving a file between buckets then needs archive in the old one first, which the refusal should say.
Deferred from #4165 by the maintainer's decision, where a local strict-review pass raised it.
Activity
Judge secrets_sync Staleness by Content Time, Refuse Cross-Bucket Tit…