Skip to content

Review backlog (security): Baseline advanced to a post-update head that is not proven to be the hive's merge #14534

Closed

Description

@hivecommons-hive

Blocked on PR #14401. This finding came from reviewing PR #14401 and is about code that PR is changing. Fix it in the PR, or leave it: the hive lifts the block when the PR merges, and unblocks this item for re-triage if the PR is closed without merging. Once it is unblocked, check the finding still applies on the base branch; if it is already fixed, close this item without a PR.

Filed from an out-of-scope finding in the Hive review of PR #14401.

PR: #14401 (#14401)
Perspective: security
Severity: low (P3)
Evidence: src/cmd/hive/main_helpers.go:364 (

store.AdvanceHygiene(repo, pr.Number, newHead, commits)
)
Finding: Baseline advanced to a post-update head that is not proven to be the hive's merge

Pre-existing, unchanged by this PR: after an accepted update, maintainHeldPRMergeability refetches commits (main_helpers.go:350) and, if the head differs from the requested head (:355), calls AdvanceHygiene with that head (:364). A contributor push landing between the 202 and the refetch is treated as hive hygiene and advances the held baseline past unreviewed commits. The new SettleUpdateRequest path deliberately does NOT advance the baseline for the between-ticks case (pkg/holdguard/holdguard.go SettleUpdateRequest comment), so the same-tick path is the only remaining spot where an unproven head becomes the baseline. Mitigation: require the new head to be a merge commit whose parents are (head, base) before AdvanceHygiene, else treat as settled without advancing.

Fingerprint: a3ec4cefc4ffd1ab176be216da346af01e1c943ac51bd3009f73d495b23db59d

filed by Hive review backlog

Activity

  1. added
    blockedWaiting on something outside this repository; not contributor work until a human clears the label
    on Oct 27, 2026
  2. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 27, 2026
  3. removed
    blockedWaiting on something outside this repository; not contributor work until a human clears the label
    on Oct 27, 2026
  4. hivecommons-hive commented on Oct 27, 2026

    @hivecommons-hive
    ContributorAuthor

    Unblocked: #14401 is no longer open. This issue is actionable again.

  5. hivecommons-hive commented on Oct 27, 2026

    @hivecommons-hive
    ContributorAuthor

    🔒 Claimed by @Karibhou (contributor on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 30m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  6. hivecommons-hive commented on Oct 27, 2026

    @hivecommons-hive
    ContributorAuthor

    🔓 Claim by @Karibhou released (lease revoked).

  7. hivecommons-hive commented on Oct 27, 2026

    @hivecommons-hive
    ContributorAuthor

    Unblocked: #14401 merged. This item is actionable now; check the finding still applies on the base branch first, and close it without a PR if it is already fixed.

  8. added a commit that references this issue on Oct 27, 2026
    640dd32
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

    agent/reviewerFiled by the reviewer agenthelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions