security: bind cloud eviction authority records to private storage - #182
security: bind cloud eviction authority records to private storage#182seonghobae wants to merge 6 commits into
Conversation
|
Warning Review limit reached
Next review available in: 9 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
Rate Limit Exceeded
|
There was a problem hiding this comment.
Pull request overview
OpenCode cannot approve yet because required coverage evidence did not pass.
Review outcome
1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
-
Problem: The required coverage-evidence job result was
failure, so OpenCode cannot establish approval sufficiency for this head. -
Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.
-
Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present. -
Result: REQUEST_CHANGES
-
Reason: coverage-evidence result was
failure, so required test/docstring evidence was not proven for current heade14553f71f1832e3aba0f13597625f7a294dc874. -
Head SHA:
e14553f71f1832e3aba0f13597625f7a294dc874 -
Workflow run: 31930573919
-
Workflow attempt: 1
Coverage evidence
Coverage Decision
- Result: FAIL
- Test evidence: not proven passing
- Docstring evidence: not proven passing when configured
- Failure count: 1
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (2 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (2 files)"]
R1 --> V1["required checks"]
OpenCode Review Overview
Pull request overviewOpenCode cannot approve yet because required coverage evidence did not pass. Review outcome1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
Coverage evidenceCoverage Decision
Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (2 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (2 files)"]
R1 --> V1["required checks"]
|
Dismissing: this REQUEST_CHANGES referenced workflow run 31930573919 where coverage-evidence failed at the same head SHA. coverage-evidence has since been re-run and now reports pass (verified via gh pr checks). No unresolved review threads remain. Re-request review to re-validate.
Purpose
Harden the durable control records that bind cloud-source eviction intent, completion, and attributed human approval. Protected main created these immutable records with process-default file mode and only later re-resolved the pathname to mark them read-only; the control directory also accepted Unix group/world write authority. A crash before chmod could therefore leave a broader authority record, a pathname replacement could redirect post-write hardening, and another principal with directory write access could replace an authority record between operations.
Test-first repair
ce9a1c6a987beb5578ccc501c5894df614ce460cadds a production-bound regression throughwrite_immutable_source_eviction_approval, proving group-write (0o020) and other-user-write (0o002) directories fail closed and create no approval record. It also locks the atomic-create/object-bound hardening contract.39c01799ee689558ee0120d7976cd6d4ca20e0earejects shared-writable Unix control directories with stableeviction-dir-writable-by-others, creates authority records with Unix mode0o400atcreate_new, and performs post-write hardening through the already-opened file descriptor withfile.set_permissionsinstead of re-resolving the pathname.main -> headcomparison isahead,ahead_by = 2,behind_by = 0, with merge base exactly current protected main.Exact current state
39c01799ee689558ee0120d7976cd6d4ca20e0ea.main:bc22aa078b4ad57574e5a11f3c99e667833a76bd.src-tauri/src/cloud_eviction.rsplussrc-tauri/tests/cloud_eviction_record_authority.rs.Scope / non-duplication
This does not enable source eviction; protected main still fails closed where identity-bound OS recycle is unavailable. It narrows only local durable authority storage. #179 owns the analogous provider-sync evidence boundary, #181 owns cloud-review decision files, #174 owns generic cleanup routing, #156 owns repository-wide exact production coverage, #150 owns Podman desktop evidence, and #149 owns canonical acquisition documentation. No other active line is imported here.
Required before merge
Keep Draft until the unchanged exact head passes native and all live required central workflows, all valid current-head findings are addressed, repository-wide exact 100% owned-production coverage is satisfied without exclusions or threshold weakening, and fresh live-base ancestry remains current. Pending, queued, skipped-required, failed, stale, predecessor, status-only, model-only, or synthetic evidence is not passing.