Repository navigation
ops(gcp): review legacy Compute Admin grants from setup wizard #2123
Description
Summary
Track operator review of Compute Admin grants created by older configure-gcp versions. PR #2122 prevents new broad grants but deliberately preserves existing IAM policies.
Current behaviour
Before #2122, Step 4 granted roles/compute.admin to the CUDly service account. The merged wizard now grants Compute Viewer plus an exact commitment-purchase role, but rerunning it does not revoke old broad grants. No live project inventory was performed, so the presence or number of affected installations is unknown.
Steps to verify the gap
With the project owner's authorization, inventory CUDly service accounts and their direct and inherited role bindings. Identify identities created by the old wizard that still have Compute Admin access. Do not change live IAM as part of the inventory.
Expected behaviour
Existing installations have an explicit, owner-approved path to the narrower runtime grants. Unrelated access and IAM conditions remain intact.
Proposed fix
- Extend
docs/cli/cloud-setup.md:150with a migration checklist: identify broad grants, establish narrow permissions, verify the actual CUD workflow without purchasing, and obtain approval for any revocation. - Record the inventory result and any deployment-specific follow-up. Do not automatically delete bindings or rotate keys without per-resource authorization.
- Include authorized live IAM validation of the replacement role; local HTTP fixtures only prove SDK request behaviour.
References
- Parent: sec(cli): the GCP setup wizard grants roles/compute.admin at project scope #1946
- Fix: fix(gcp): restrict setup wizard compute permissions #2122, merge
76d1d4e72f13731ba071c7932f8e7e233cb4f6c6 cmd/configure_gcp.go:gcpStepGrantRole
Severity
High if a legacy grant remains: that identity retains Compute infrastructure administration. No affected live installation has been confirmed. This issue tracks the inventory and owner-controlled remediation, not an authorized cloud mutation.
Activity
cristim commentedon Oct 7, 2026
claimed by cc-cli
docs(cli): correct legacy grant inventory and verification
docs(cli): add legacy Compute Admin migration checklist to GCP setup (#…
cristim commentedon Oct 7, 2026
Docs checklist delivered by #2137, merged as bc0a967. Independent exact-head Codex review clean; offline inherited-policy regression and documented REST request against loopback fixture passed; fresh build, hooks and both CI workflows passed. No live IAM mutation or purchase performed.
Live installation inventory, IAM propagation and deployed read-only validation remain pending project-owner authorization under this issue. The cc-cli docs claim is released; keep #2123 open for the remaining operator work.