Skip to content

chore: harden packaging environment to enforce 4-eyes review on signed releases #6

Closed as not planned

Description

@inureyes

Follow-up to #1 A-section.

The packaging GitHub deployment environment currently has:

  • required_reviewers: inureyes (1 user)
  • prevent_self_review: false
  • can_admins_bypass: true

This means the person who triggers a signing or homebrew-bump deployment can also self-approve it — which provides an "abort window" before the deployment proceeds, but is not a true 4-eyes gate. This was an intentional choice while release tooling was still being automated (see the follow-up note in #1 A-section).

Once the release pipeline is fully automated (manual signing/notarization no longer required, manual homebrew bump no longer required), this configuration should be hardened:

Tasks

  • Decide on the release-manager pool (≥1 additional GitHub user beyond inureyes) — discuss in this issue's comments before applying
  • Register the additional reviewer(s) at https://github.com/lablup/mlxcel/settings/environments/15464823920/edit → "Deployment protection rules" → "Required reviewers"
  • Enable "Prevent self-review" so the trigger-er cannot self-approve
  • (Optional) Disable can_admins_bypass if org admins should not be able to skip the gate
  • Verify via:
    gh api repos/lablup/mlxcel/environments/packaging \
      --jq '.protection_rules[] | select(.type == "required_reviewers") | {prevent_self_review, reviewer_count: (.reviewers | length)}'
    Expected: prevent_self_review: true, reviewer_count >= 2

Triggering conditions

Open this issue for action when all of the following are true:

  • Release signing and notarization are non-interactive (no manual step inside the workflow)
  • Homebrew formula bump runs end-to-end without manual intervention (verified after the first auto-bump from a real release)
  • There is at least one additional release manager identified and reachable for approvals (otherwise enabling prevent_self_review would block legitimate releases)

Until all three are satisfied, keep the current 1-reviewer + self-approve configuration to avoid blocking releases on a missing second reviewer.

Refs

Activity

  1. added
    type:chore
    priority:low
    status:backlog
    on May 18, 2026
  2. self-assigned this
    on May 18, 2026
  3. added this to the 0.2.0 milestone on Jun 5, 2026
  4. modified the milestones: 0.2, 0.4 on Jun 21, 2026
  5. inureyes commented on Nov 22, 2026

    @inureyes
    MemberAuthor

    Closing as not planned. The plan here no longer fits the current setup.

    The packaging environment has changed since this was filed: it now has only a branch_policy rule, with no required_reviewers rule and can_admins_bypass: true. The 1-reviewer self-approve gate this issue planned to tighten no longer exists.

    The third triggering condition is also unmet: there is still no second release manager to approve deployments, so enabling prevent_self_review would block every release. Releases are prepared as drafts and published by the maintainer, so the branch policy is the effective gate for now.

    If a second release manager joins, open a new issue against the configuration at that time.

  6. added
    status:wontfix
    and removed
    status:backlog
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:lowstatus:wontfixtype:chore

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions