Skip to content

Let Host-Scoped secrets_sync Buckets Hold the Same Home-Relative Title #4249

Closed

Description

@ptr727

Problem

scripts/secrets_sync.py titles each item with its path under the home directory. Before a create, it refuses a title that another Secrets * bucket already holds. That refusal was added so two copies of one file cannot drift apart.

A host's own SSH key has the same path on every host. So once bucket host-alpha holds .ssh/id_ed25519, a push of host-beta's own .ssh/id_ed25519 is refused. Per-host buckets therefore work for one host only.

How to Reproduce

With the fake op in tests/test_secrets_sync.py: push .ssh/id_ed25519 from one temporary home to bucket host-alpha. Then push a different .ssh/id_ed25519 from a second temporary home to bucket host-beta. The second push is refused as a title host-alpha holds.

Decided Fix

Settled with the maintainer on 2026-11-16:

  • A bucket named host-<name> is host-scoped. The shared-title check skips other host-* buckets when the bucket being pushed is itself a host-* bucket. A title in any bucket not named host-* still collides with every other bucket, host buckets included.
  • pull refuses selecting two host-* buckets in one run, naming both. One host restores one host bucket.
  • status with no bucket still lists every vault's titles. A title held by several host buckets is not reported as a conflict.
  • The README states the host- prefix and what it changes.

Done

Merged into develop with tests covering the push across two host buckets, the collision of a host bucket with a shared one in each direction, and the pull refusal.

Activity

  1. added a commit that references this issue on Nov 17, 2026
    ef1c121
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions