feat(api): gate bgg-warehouse-api via authoritative Terraform invoker binding#87
Open
phenrickson wants to merge 2 commits into
Open
feat(api): gate bgg-warehouse-api via authoritative Terraform invoker binding#87phenrickson wants to merge 2 commits into
phenrickson wants to merge 2 commits into
Conversation
… binding (7b) Authoritative google_cloud_run_v2_service_iam_binding on run.invoker guarantees no allUsers. Day-one member is the owner; consumers join the invoker group. Applied by terraform.yml. MUST merge AFTER the service exists (deploy PR first). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… (not a group) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
Gating for
bgg-warehouse-api: an authoritativegoogle_cloud_run_v2_service_iam_bindingon
roles/run.invoker. Authoritative ⇒ thememberslist is the complete allow-list,so
allUserscan never be (re)added out of band, and drift is corrected on every apply.Grant surface = the Terraform
memberslist (day-one member: the owner). Adding aconsumer later = add its
serviceAccount:here, PR, merge — grants stay in code andgit-audited.
Merge the service PR first, confirm
bgg-warehouse-apideployed, then merge this.An IAM binding against a not-yet-created service plans fine but fails at apply.
Review gate
On merge,
terraform.ymlrunsplanthenapply -auto-approve. Read theterraform planin this PR's checks before merging — it should show only the onerun.invokerbinding being added. If it shows other changes (state drift), do not mergeuntil reconciled.
See
docs/superpowers/specs/2026-07-16-service-auth-pattern-design.md.🤖 Generated with Claude Code