-
Notifications
You must be signed in to change notification settings - Fork 225
Comparing changes
Open a pull request
base repository: firebase/firebase-functions
base: v3.15.7
head repository: firebase/firebase-functions
compare: v3.16.0
- 9 commits
- 19 files changed
- 4 contributors
Commits on Sep 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 1065015 - Browse repository at this point
Copy the full SHA 1065015View commit details
Commits on Sep 30, 2021
-
* inital gcs work * removing bucket path * adding tests * cleaning up and fixing pr issues * clean up comment * removing redundant code * fixing undefined argument bug * format:fix * removing apiVersion, changing hidden to internal, and cleaning up tests * format * changelog
Configuration menu - View commit details
-
Copy full SHA for 0479817 - Browse repository at this point
Copy the full SHA 0479817View commit details
Commits on Oct 14, 2021
-
Add an option to disable rejection of requests with invalid App Check…
… token for callable functions. (#989) Since releasing App Check integration for Callable Functions, we've received several requests from our users to make it possible turn App Check enforcement off. By default, if a request includes an App Check token, callable functions will verify the token, and - if the token is invalid - reject the request. This makes it hard for developers to onboard to App Check, especially for developers that want to "soft launch" App Check integration to measure the App Check enforcement would have on its users. The change here adds a `runWith` option to allow requests with invalid App check token to continue to user code execution, e.g. ```js exports.yourCallableFunction = functions. .runWith({ allowInvalidAppCheckToken: true // Opt-out: Invalid App Check token cont. to user code. }). .https.onCall( (data, context) => { // Requests with an invalid App Check token are not rejected. // // context.app will be undefined if the request: // 1) Does not include an App Check token // 2) Includes an invalid App Check token if (context.app == undefined) { // Users can manually inspect raw request header to check whether an App Check // token was provided in the request. const rawToken = context.rawRequest.header['X-Firebase-AppCheck']; if (rawToken == undefined) { throw new functions.https.HttpsError( 'failed-precondition', 'The function must be called from an App Check verified app.' ); } else { throw new functions.https.HttpsError( 'unauthenticated', 'Provided App Check token failed to validate.' ); } }, } ); ```
Configuration menu - View commit details
-
Copy full SHA for 63bd14d - Browse repository at this point
Copy the full SHA 63bd14dView commit details
Commits on Oct 18, 2021
-
Debug mode is intended to be used by the Functions Emulator to enable/disable certain aspect of the Functions SDK. Debug mode allows the Functions SDK to operate in development friendly way without the need to monkey-patch the Functions SDK. For example, auth or App Check token verification can be disabled during development to make Functions SDK compatible with the Auth Emulator. This feature is intended for internal use-cases and won't expose any public interfaces. No one outside the Firebase team should use it, and if they do, we can't promise any stability or feature support.
Configuration menu - View commit details
-
Copy full SHA for ede96e6 - Browse repository at this point
Copy the full SHA ede96e6View commit details
Commits on Oct 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 11e045a - Browse repository at this point
Copy the full SHA 11e045aView commit details
Commits on Oct 25, 2021
-
Allow firebase-admin v10. Add integration tests for Node 16 (#998)
* Allow firebase-admin v10. Add integration tests for Node 16 * Add changelog. Run formatter * rerun formatter
Configuration menu - View commit details
-
Copy full SHA for 43e68af - Browse repository at this point
Copy the full SHA 43e68afView commit details
Commits on Oct 28, 2021
-
Fix bug where onCall handler failed to encode returned value that con…
…tained a function (#1000) In #915, we replaced use of `_.isObject(data)` with `typeof data === 'object'`. Turns out that `_.isObject` returns `true` for functions ([code](https://github.com/lodash/lodash/blob/2da024c3b4f9947a48517639de7560457cd4ec6c/isObject.js#L26)). We update the condition to match the previous behavior. Fixes #964
Configuration menu - View commit details
-
Copy full SHA for 87472f3 - Browse repository at this point
Copy the full SHA 87472f3View commit details -
Allow callable functions to skip token verification in debug mode (#983)
To replace monkey-patching of the Firebase Functions SDK in the Functions Emulator ([code](https://github.com/firebase/firebase-tools/blob/c2feb0836f6f64236e117f2906ef6083840e212b/src/emulator/functionsEmulatorRuntime.ts#L401-L496)), we provide native support for bypassing token verification for `onCall` handlers. Using the new debug mode introduced in #992, Auth/App Check token included in the request will be decoded but no verified.
Configuration menu - View commit details
-
Copy full SHA for 9c2142b - Browse repository at this point
Copy the full SHA 9c2142bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e4c20 - Browse repository at this point
Copy the full SHA 24e4c20View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v3.15.7...v3.16.0