SIGN IN SIGN UP

tolerate missing IAM permissions when provisioning default compute SA (#10806)

* tolerate missing IAM permissions when provisioning default compute SA
App Hosting deploy provisions the default compute service account on
every
run, creating it and granting it IAM roles. The catch blocks only
ignored 409
(create) and 400 (roles), so a least-privilege deploy identity that
lacks
iam.serviceAccounts.create or resourcemanager.projects.setIamPolicy got
a 403
that was rethrown, hard-failing the deploy even when the service account
already existed and worked.
Treat 403 in both catch blocks as a warning-and-continue so deploys from
restricted identities are no longer blocked.
Fixes #8840

* format

* split SA verification from provisioning and check existence before
create
L
Leonardo Ortiz committed
2737f997cd2e15966905a0f06f54cd631c9ec8bf
Parent: 7e27d8c
Committed by GitHub <noreply@github.com> on 8/24/2026, 4:19:02 PM