-
Notifications
You must be signed in to change notification settings - Fork 976
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firebase CLI 10.3.1 does not issue calls to make callable functions public #4327
Comments
Just confirming we're experiencing this with Noting that when we deployed the region of the function changed from us-central to northamerica-northeast. |
I'm having the same problem. Seems like rolling back to |
Seems 10.3 might not have quite been baked :) Fingers crossed the fix is as quick as for #4307 |
After a bit of digging, I think I've come to the conclusion that this is due to the implementation of handling callable functions seperately to https functions, as introduced in #4310. In As a result, this means that within calls to both the Could a fix be as simple as adding an or condition, with a call to
I heavily caveat that this is based on my naive knowledge of this being the first time I've looked through the source for Happy to make this change if the opinion is this is a valid fix 👍 |
@chrisbrown-io Nice! I've been working on a fix, but if you are interested in contributing, I'd be happy to help. Your suggested fix is exactly what I was doing. Only thing I'd add is to add test cases to Let me know if this is something you can do soon. I don't want to have you "work" over the weekend, but I'd love to get a fix out asap, so if you think you won't have time today/this weekend, then I might just take it. |
@taeold - sure, it would be good to contribute. I don't mind taking a look at all and I have time to look at this now. However, If you're close to having a fix implemented then feel free to finish it – I don't want to hinder things! Quick questions I would have about a fix implementation (now I've given it a bit more thought):
|
|
Great - thanks for the feedback! On it now. Will have a PR up shortly and will add yourself to review 👍 |
BTW - I added the test cases for the change here: There is one more bug that this test catches - I'll leave it as an exercise for you to find out haha! Again, thank you so much for your help! |
Implemented fix for issue introduced in `v10.3.0` where callable functions were not having their `invoker` property correctly set to `"public"` that would in turn cause access issues with the deployed functions (as detailed in #4327). Will also fix issues such as #3965, that are presumably cause by version mismatches/upgrades introducing this issue. Fixes issue by adding specific handling for callable functions and always setting the `invoker` to `"public"`. Also fixed issue with `taskQueueTrigger` endpoints calling wrong method/passing wrong args when trying to set invoker.
Fix released in 10.4.1! Thank you @chrisbrown-io ! |
Implemented fix for issue introduced in `v10.3.0` where callable functions were not having their `invoker` property correctly set to `"public"` that would in turn cause access issues with the deployed functions (as detailed in #4327). Will also fix issues such as #3965, that are presumably cause by version mismatches/upgrades introducing this issue. Fixes issue by adding specific handling for callable functions and always setting the `invoker` to `"public"`. Also fixed issue with `taskQueueTrigger` endpoints calling wrong method/passing wrong args when trying to set invoker.
No need (I think) to reopen, but I've just had this happen again on CLI 11.0.1. I just deployed a set of functions to a different project, and all the new ones were deployed without public invoker. I upgraded the CLI to 11.1.0, deleted the functions, and redeployed, and all seems OK. But I don't see any mention of this in the changelog or comparing those 2 versions... Anyway, just wanted to log it here, in case anyone was on 11.0.1 still. |
Sorry to again resurrect this, but I am seeing a similar issue with 11.25.1 Deploying an Note: I am deploying to 'australia-southeast1' but that may or may not be pertinent information. |
I'm also having this issue Using firebase CLI 10.3.1 and on deploying a new function, it is always deployed in a way that causes it to return 403 when triggered using the firebase SDK
firebaseFunctions().httpsCallable()
. My fix so far has been to edit it in the console to 'Allow Unauthenticated', but it would like to avoid that if it's supposed to work differently.I'm running firebase deploy locally, logged in as the account owner, so I doubt it is a permissions issue. The debug log has these lines early on:
What should I be looking for in the (copious) logs that show the
allUsers
permission being granted or at least attempted? I can't find that string anywhere, so assume it's not a literal.Originally posted by @dsl101 in firebase/firebase-functions#1015 (comment)
The text was updated successfully, but these errors were encountered: