Learning center

Find who needs actAs when attaching a Google Cloud service account

If a deployment fails on iam.serviceAccounts.actAs, identify who submitted the deployment and which service account it tried to attach. Inspect access on that account.

In an illustrative Cloud Run release, the deployment uses deployer to attach report-worker to a revision. The failed request names iam.serviceAccounts.actAs. Read the revision configuration at the submitted change and check the deployer's permission on report-worker with Policy Troubleshooter. Include inherited bindings and conditions in the check. Preserve the original denial time when a time condition applies. Attaching service accounts ยท Cloud Run service identity

If the association is approved, ask the service-account owner to review a narrowly scoped Service Account User grant. The worker's Storage permissions apply when the revision runs. Check those only if a request made by the running worker fails.

Trace another denied request.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading