[Snyk] Fix for 1 vulnerabilities#10801
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-TAR-15032660
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Walkthrough
This PR updates dependency management in the kubernetes-backend plugin by transitioning from workspace protocol references to pinned versions for internal Backstage dependencies. Five internal packages (@backstage/catalog-model, @backstage/plugin-auth-node, @backstage/plugin-catalog-node, @backstage/plugin-kubernetes-common, and @backstage/plugin-permission-node) are locked to specific versions ranging from 0.1.0 to 1.0.0. Additionally, the external @kubernetes/client-node dependency is upgraded from version 0.18.1 to 0.21.0. These changes likely aim to improve stability and ensure compatibility by locking dependencies to specific versions rather than using workspace references.
Changes
| File(s) | Summary |
|---|---|
plugins/kubernetes-backend/package.json |
Updated five Backstage internal dependencies from workspace protocol references (workspace:^) to pinned versions (0.1.0-1.0.0), and upgraded @kubernetes/client-node from 0.18.1 to 0.21.0. |
Sequence Diagram
This diagram shows the interactions between components:
sequenceDiagram
participant Dev as Developer
participant PKG as kubernetes-backend/package.json
participant NPM as Package Manager
participant Deps as Dependencies
Dev->>PKG: Update dependency versions
Note over PKG: Pin versions:<br/>- catalog-model: 0.1.1<br/>- plugin-auth-node: 0.1.0<br/>- plugin-catalog-node: 1.0.0<br/>- plugin-kubernetes-common: 0.1.0<br/>- plugin-permission-node: 0.1.0<br/>- @kubernetes/client-node: 0.18.1→0.21.0
Dev->>NPM: Run package install
NPM->>Deps: Resolve dependencies
alt Version conflicts detected
Deps-->>NPM: Report conflicts
NPM-->>Dev: Installation fails
else All versions compatible
Deps-->>NPM: Dependencies resolved
NPM->>NPM: Download packages
NPM->>NPM: Install to node_modules
NPM-->>Dev: Installation successful
end
Note over Dev,Deps: kubernetes-backend now uses<br/>pinned versions instead of<br/>workspace references
Install the extension
Note for Windsurf
Please change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery
Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items
Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts below
Emoji Descriptions:
⚠️ Potential Issue - May require further investigation.- 🔒 Security Vulnerability - Fix to ensure system safety.
- 💻 Code Improvement - Suggestions to enhance code quality.
- 🔨 Refactor Suggestion - Recommendations for restructuring code.
- ℹ️ Others - General comments and information.
Interact with the Bot:
- Send a message or request using the format:
@entelligenceai + *your message*
Example: @entelligenceai Can you suggest improvements for this code?
- Help the Bot learn by providing feedback on its responses.
@entelligenceai + *feedback*
Example: @entelligenceai Do not comment on `save_auth` function !
Also you can trigger various commands with the bot by doing
@entelligenceai command
The current supported commands are
config- shows the current configretrigger_review- retriggers the review
More commands to be added soon.
| "@backstage/catalog-model": "0.1.1", | ||
| "@backstage/config": "workspace:^", | ||
| "@backstage/errors": "workspace:^", | ||
| "@backstage/integration-aws-node": "workspace:^", | ||
| "@backstage/plugin-auth-node": "workspace:^", | ||
| "@backstage/plugin-catalog-node": "workspace:^", | ||
| "@backstage/plugin-kubernetes-common": "workspace:^", | ||
| "@backstage/plugin-auth-node": "0.1.0", | ||
| "@backstage/plugin-catalog-node": "1.0.0", | ||
| "@backstage/plugin-kubernetes-common": "0.1.0", | ||
| "@backstage/plugin-permission-common": "workspace:^", | ||
| "@backstage/plugin-permission-node": "workspace:^", | ||
| "@backstage/plugin-permission-node": "0.1.0", | ||
| "@google-cloud/container": "^4.0.0", |
There was a problem hiding this comment.
Correctness: Revert internal dependencies (e.g., @backstage/catalog-model) to workspace:^. Hardcoding versions breaks local workspace linking, forcing the build to use published artifacts instead of local source code.
🤖 AI Agent Prompt for Cursor/Windsurf
📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue
File: plugins/kubernetes-backend/package.json
Lines: 59-68
Problem: Internal Backstage dependencies were changed from `workspace:^` protocol to hardcoded version numbers. This breaks the monorepo workspace linking mechanism.
Fix Required:
1. Revert the following dependencies back to `workspace:^`:
- @backstage/catalog-model (currently 0.1.1)
- @backstage/plugin-auth-node (currently 0.1.0)
- @backstage/plugin-catalog-node (currently 1.0.0)
- @backstage/plugin-kubernetes-common (currently 0.1.0)
- @backstage/plugin-permission-node (currently 0.1.0)
2. Keep the @kubernetes/client-node upgrade to 0.21.0 as this is an external dependency.
3. Verify no other package.json files in the monorepo have similar accidental version pinning.
Expected result: All @backstage/* dependencies should use `workspace:^` to maintain proper monorepo workspace resolution.
✨ Committable Code Suggestion
💡 This is a one-click fix! Click "Commit suggestion" to apply this change directly to your branch.
| "@backstage/catalog-model": "0.1.1", | |
| "@backstage/config": "workspace:^", | |
| "@backstage/errors": "workspace:^", | |
| "@backstage/integration-aws-node": "workspace:^", | |
| "@backstage/plugin-auth-node": "workspace:^", | |
| "@backstage/plugin-catalog-node": "workspace:^", | |
| "@backstage/plugin-kubernetes-common": "workspace:^", | |
| "@backstage/plugin-auth-node": "0.1.0", | |
| "@backstage/plugin-catalog-node": "1.0.0", | |
| "@backstage/plugin-kubernetes-common": "0.1.0", | |
| "@backstage/plugin-permission-common": "workspace:^", | |
| "@backstage/plugin-permission-node": "workspace:^", | |
| "@backstage/plugin-permission-node": "0.1.0", | |
| "@google-cloud/container": "^4.0.0", | |
| "@azure/identity": "^3.2.1", | |
| "@backstage/backend-common": "workspace:^", | |
| "@backstage/backend-plugin-api": "workspace:^", | |
| "@backstage/catalog-client": "workspace:^", | |
| "@backstage/catalog-model": "workspace:^", | |
| "@backstage/config": "workspace:^", | |
| "@backstage/errors": "workspace:^", | |
| "@backstage/integration-aws-node": "workspace:^", | |
| "@backstage/plugin-auth-node": "workspace:^", | |
| "@backstage/plugin-catalog-node": "workspace:^", | |
| "@backstage/plugin-kubernetes-common": "workspace:^", | |
| "@backstage/plugin-permission-common": "workspace:^", | |
| "@backstage/plugin-permission-node": "workspace:^", | |
| "@google-cloud/container": "^4.0.0", | |
| "@jest-mock/express": "^2.0.1", | |
| "@kubernetes/client-node": "0.21.0", | |
| "@types/express": "^4.17.6", | |
| "@types/luxon": "^3.0.0", | |
| "compression": "^1.7.4", |
|
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
plugins/kubernetes-backend/package.jsonNote 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 runyarnto update the contents of the./yarn/cachedirectory.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:
SNYK-JS-TAR-15032660
Important
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:
🦉 Directory Traversal
EntelligenceAI PR Summary
Updates dependency version specifications in the kubernetes-backend plugin to use pinned versions instead of workspace references.
workspace:^to specific pinned versions