Add gitlab-org/auth/iam to the Duo review approval pilot
What does this MR do and why?
gitlab-org/auth/iam joins the pilot where GitLab Duo Code Review is the only reviewer and gitlab-bot gives the binding Code Owner approval on Duo's behalf. Until now the GitlabCli processors and VerifyBotApprovals only ran for gitlab-org/cli, through Event#from_gitlab_org_cli?.
GitlabCli::PILOT_PROJECTS replaces that check: a map from project ID to the issue tracking that project's part in the pilot. The processors look the project up there, and the public comment links to the project's own issue instead of the CLI one. A project joins with one line in that map plus @gitlab-bot in its CODEOWNERS. The GitlabCli namespace and the GITLAB_CLI_DUO_APPROVALS_ENABLED kill switch stay as they are and cover every pilot project. IAM's entry is the only new one.
IAM runs Duo Code Review with approvals turned on, is not SOX scoped, and already runs a single-human review flow (gate-research#1). Its CODEOWNERS change is a draft until this merges: gitlab-org/auth/iam!1128 (closed).
Related to gitlab-org/cli#8575, the pilot proposal, and gitlab-org/quality/triage-ops#1887, which built the processors for gitlab-org/cli.
Expected impact & dry-runs
- gitlab-org/cli: no change in behaviour. The comment text changes from "part of the gitlab-org/cli review pilot" to "part of the Duo review pilot", with the same link.
- gitlab-org/auth/iam:
gitlab-botapproves on Duo's behalf under the same conditions as in CLI. Until IAM's CODEOWNERS lists it, that approval satisfies no rule; only the comment is visible. - The full spec suite passes locally, and rubocop is clean on the changed files. The specs now also cover an IAM merge request and check that the comment links IAM's issue.
- The kill switch stays global. If IAM should start in dry-run mode while CLI stays live, a per-project switch is a small follow-up.
Action items
- No new environment variables
- REACTIVE.md updated; no handbook change needed
- (If applicable) Identify the affected groups and how to communicate to them:
- gitlab-org/auth/iam maintainers, via gitlab-org/auth/iam!1128 (closed)
- The Slack thread that asked for pilot projects