Repository navigation
fix: set invoker when updating a function whose create failed - #10363
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Fabricator to set a public invoker by default for HTTPS-triggered functions during updates. The implementation simplifies the invoker assignment logic in fabricator.ts by using a falsy check, and the unit tests in fabricator.spec.ts have been updated to verify that setInvokerUpdate is called with the public role by default. I have no feedback to provide as there were no review comments to evaluate.
cabljac
self-requested a review
April 16, 2026 15:30
cabljac
marked this pull request as ready for review
April 16, 2026 15:30
…pdate run.setInvokerUpdate now takes onlyIfUnset so an update with no invoker in code heals a missing binding without overwriting one that was narrowed by hand. updateV2Function and updateRunFunction pass it; the branches driven by explicit config keep writing verbatim. Drop the private guard from updateV1Function. "private" resolves to an empty member list, so skipping the call left a function public after it had been configured private.
IzaakGough
marked this pull request as draft
August 14, 2026 15:03
…r-not-set-on-update
IzaakGough
marked this pull request as ready for review
October 2, 2026 13:52
Replace the heal-if-unbound approach. A missing binding also describes a private function, so healing on it could make private functions public. Instead, the planner flags GCFv2 functions that are FAILED with no service (a failed create), and the update applies the create-time invoker logic.
CorieW
self-requested a review
November 12, 2026 13:52
CorieW
approved these changes
Nov 12, 2026
wandamora
reviewed
Nov 13, 2026
wandamora
approved these changes
Nov 16, 2026
# Conflicts: # CHANGELOG.md
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.
Fixes #8984.
If a v2 function's first deploy failed its health check, later deploys never set who can invoke it, so it stayed uncallable.
The next deploy now finishes that failed create, including the invoker settings.
ACTIVE, so it updates normally, and a function with no invoker binding is not made public.invoker: "private"is still respected, the same as on a normal create.Tested on a real project: a failed create returns 200 after redeploy, and a private one stays 403.