Skip to content

Harden storage, device enrollment, and Git import boundaries - #37

Merged
hmirin merged 24 commits into
mainfrom
fix/daybreak-security-audit
Nov 16, 2026
Merged

hmirin merged 24 commits into
mainfrom
fix/daybreak-security-audit

Conversation

@hmirin

@hmirin hmirin commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Require verified device identity and explicit role during enrollment.
  • Restrict local Git carriers to an explicit trusted URL form and block executable transports and indexed filters.
  • Harden rollback state, recovery budgets, carrier index handling, diagnostics, and local tag updates.
  • Verify complete authenticated pack ciphertext before starting Git import.

Verification

  • cargo fmt --check
  • cargo test --all-targets --quiet
  • cargo clippy --all-targets -- -D warnings
  • Focused security regressions and independent read-only reviews for individual fixes.

This is a draft while the remaining audit findings and their design choices are being resolved.

Fresh fetches check every tree tag against a 256-root and 4,000,000-entry
budget, but publication did not, so a writer could publish a ref set no
new clone can accept. Apply the same budget to the ref set before
publishing, skipping refs whose objects this repository does not hold.
A writer that never fetched another writer's tree tags could add one
more and exceed the fresh-fetch tree-root budget, because tags it did
not hold were skipped. When a push adds or moves a tag, every retained
tag must now resolve locally; otherwise the push fails with a fetch-first
error before HEAD changes. Pushes that leave all tags unchanged are not
affected.
@hmirin
hmirin marked this pull request as ready for review November 16, 2026 10:57
@hmirin
hmirin merged commit 804c675 into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant