Skip to content

Handle 403 gracefully when provisioning default compute service account - #10969

Open
falahat wants to merge 3 commits into
mainfrom
fix-apphosting-service-account-permission
Open

Handle 403 gracefully when provisioning default compute service account#10969
falahat wants to merge 3 commits into
mainfrom
fix-apphosting-service-account-permission

Conversation

@falahat

@falahat falahat commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Description

Fix for #10956

If we hit "already exists" or "permission denied" erors when trying to add/update the service account, we continue anyway optimistically with the app deployment.

Scenarios Tested

Sample Commands

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces changes to gracefully handle 403 Permission Denied errors when provisioning the default compute service account or setting its IAM roles, logging warnings and continuing the deployment instead of throwing an error. The review feedback correctly points out that returning early on a 403 error during service account creation prevents attempting to set IAM roles, which could still succeed if the service account already exists. The reviewer suggests letting the execution fall through to the role assignment step and updating the unit tests accordingly.

Comment thread src/apphosting/backend.ts
Comment thread src/apphosting/backend.spec.ts
falahat and others added 2 commits August 21, 2026 15:00
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants