Repository navigation
Let Host-Scoped secrets_sync Buckets Hold the Same Home-Relative Title - #4250
Conversation
A bucket named host-<name> is host-scoped. A push to one skips the other host-* buckets in the shared-title check, a title in a non-host bucket still collides with every bucket in both directions, and pull refuses two host-* buckets in one run, naming both. Closes #4249 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
There was a problem hiding this comment.
🟡 Changes recommended
An active moderate issue remains because an empty host name in BUCKET can bypass shared-title collision checks and the pull restriction.
1 open issue
What changed in this PR
This pull request updates secrets_sync so host-scoped buckets can share home-relative titles while preserving collision protection against shared buckets.
Changes:
- Adds host-aware title collision checks for push, pull, and status selection.
- Refuses pulls that select multiple host-scoped buckets.
- Adds regression coverage and documents the host-scoped bucket rules.
- Identifies that the empty
host-bucket name is incorrectly treated as host-scoped.
| File | Description |
|---|---|
| tests/test_secrets_sync.py | Adds regression tests covering host-bucket sharing, host/shared collisions, multi-host pull refusal, and status behavior. |
| scripts/secrets_sync.py | Implements host-scoped title collision rules and prevents pulls from selecting multiple host buckets. |
| scripts/README.md | Documents host-scoped bucket naming, collision semantics, and selection restrictions. |
Review effort: Lite
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #4250 +/- ##
===========================================
- Coverage 81.60% 78.05% -3.56%
===========================================
Files 26 42 +16
Lines 9070 15398 +6328
===========================================
+ Hits 7402 12019 +4617
- Misses 1668 3379 +1711
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
|
/review |
Action not completed
|
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
…trap Secret Restore (#4255) ## Summary Promotes `develop` to `main`. It carries nine changes: - [#4247](#4247): retires the `CLAUDE.md` pointer file, the second half of #4074. The hub's copy and its `spec/files.json` entry are gone, and a `retire` gap records why. The audit now reports a retired path the hub no longer tracks. A copy matching a past hub revision is reported for deletion, and any other copy is reported for the maintainer. It merged on the maintainer's go-ahead after reading its diff, which touches `host-setup/agent-safety/README.md`. - [#4256](#4256): that match compares line endings alone, so a retired copy differing in an action pin or a `needs:` list goes to the maintainer. It answers a Copilot finding on this promotion. - [#4260](#4260): the audit run stamp names the commits it read. HEAD carries `-dirty` where the read paths differ from it, and `main <sha>` is added where the fetched `main` differs. - [#4259](#4259): `pr-review-conduct` states the `pr_review.py` spelling rule once for every call a fleet skill prints. Under a restricted uv cache, a merge or a branch delete is reported to the maintainer as a blocked write. - [#4261](#4261): `validate-task.yml` takes a `test-matrix-file` input, read through the same validation as `test-matrix`. - [#4257](#4257): the pre-commit snippet says to exclude `hub_fetch_run.py` from a repository's own ruff with `force-exclude = true`. The short-form `AUDIT.md` snippet drops its two hub-audit authority sentences. - [#4246](#4246): `bootstrap.sh --secrets` and `bootstrap.ps1 -Secrets` restore named secret buckets, on their own or as a step of a `--host` or `--dev` stand-up. - [#4250](#4250): `host-*` buckets in `scripts/secrets_sync.py` may each hold the same home-relative title. - [#4258](#4258): a dry run with no 1Password account is refused rather than enrolling one, and the root-refused secrets tests skip on a root runner. It answers two CodeRabbit findings on this promotion. Hosts already carry the load-both setting the retirement relies on, from the 2.0.1483 kit. Closes #4074 Closes #4236 Closes #4238 Closes #4239 Closes #4242 Closes #4243 Closes #4248 Closes #4249 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Closes #4249
A bucket named
host-<name>is host-scoped inscripts/secrets_sync.py.host-*bucket skips the otherhost-*buckets in the shared-title check. Each host can keep its own copy of a file with the same path on every host.host-*still collides with every bucket, host buckets included, in both directions. This holds for push and for pull and status selection.pullrefuses twohost-*buckets in one run, naming both.statusdoes not report a title held by several host buckets as a conflict.scripts/README.mdstates the rule. The restore scripts pass buckets straight topull, so they need no change.Tests: five new cases in
tests/test_secrets_sync.py(push across two host buckets, host/shared collision in each direction, pull refusal of two host buckets, host/shared collision in a pull, status with several host buckets). The secrets_sync file went from 156 to 161 tests, and the full suite ran 4474 tests OK (4469 before).Local strict review: two passes recorded. The first found one stale README sentence about archiving before a move, fixed in the second commit. The second pass found nothing.
🤖 Generated with Claude Code