Skip to content

[Snyk] Security upgrade @google-cloud/functions-framework from 1.5.1 to 5.0.0 - #430

Open
benjaminhuo wants to merge 1 commit into
mainfrom
snyk-fix-d1ce3921110e8dec3cc6df05828e905a
Open

[Snyk] Security upgrade @google-cloud/functions-framework from 1.5.1 to 5.0.0#430
benjaminhuo wants to merge 1 commit into
mainfrom
snyk-fix-d1ce3921110e8dec3cc6df05828e905a

Conversation

@benjaminhuo

Copy link
Copy Markdown
Member

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.

Snyk changed the following file(s):

  • builders/testdata/nodejs/functions/with_prepare_yarn/package.json
  • builders/testdata/nodejs/functions/with_prepare_yarn/yarn.lock

Note for zero-installs users

If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
medium severity Uncaught Exception
SNYK-JS-QS-19432019
  738  

Breaking Change Risk

Merge Risk: High

Notice: This assessment is enhanced by AI.


Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Uncaught Exception

…n & builders/testdata/nodejs/functions/with_prepare_yarn/yarn.lock to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-QS-19432019
@benjaminhuo

Copy link
Copy Markdown
Member Author

Merge Risk: High

This is a major upgrade across multiple breaking versions (v1 to v5) and corresponds to the architectural shift from Google Cloud Functions (1st gen) to the newer Cloud Run-based Cloud Functions (2nd gen).

Key Breaking Changes:

  • Node.js Runtime: Support for older, end-of-life Node.js versions has been dropped. You must be on a modern, supported Node.js LTS version.
  • Event-Driven Function Signatures: The structure of event payloads has changed. The framework now uses the industry-standard CloudEvents format for all event-driven functions. Code that processes event data and context objects will need to be updated to handle the new format.
  • Underlying Infrastructure: The framework is now built on top of Cloud Run and Eventarc. While this provides benefits like longer timeouts and larger instances, it can introduce subtle behavioral changes in request handling and execution environment.
  • Configuration: The way functions are registered and configured may have changed. For example, specifying the function signature type (http, cloudevent) is now a standard part of the framework's configuration.

Recommendation:
This upgrade requires a significant migration effort. Do not merge this change without a thorough review and testing of each function. You will need to:

  1. Update your Node.js runtime to a supported version.
  2. Refactor event-driven functions to work with the CloudEvents payload structure.
  3. Review HTTP function logic for any dependencies on the older execution environment.
  4. Consult the official Google Cloud documentation for migrating from 1st to 2nd gen functions.

Source: Google Cloud Blog

Notice 🤖: This content was augmented using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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