Skip to content

Remove unused dependencies #166326

@InManuBytes

Description

@InManuBytes

Remove Node.js polyfills still present after webpack 5 upgrade

Problem

Webpack 5 upgrade (PR #158878) kept vulnerable polyfills as dependencies:

Solution

Remove polyfills - analysis shows they're not needed, but need to be explicitly removed:

webpack (direct dependency in cluster-ui & db-console)
  └─> node-libs-browser
      └─> crypto-browserify
          ├─> cipher-base
          ├─> pbkdf2
          ├─> sha.js
          ├─> browserify-sign
          │   └─> elliptic
          │       └─> bn.js
          └─> create-ecdh
              └─> elliptic

In webpack config:

      fallback: {
        ...
		crypto: false,
		...
      }

Jira issue: CRDB-61856

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-webui-generalIssues on the DB Console that span multiple areas or don't have another clear category.X-blathers-untriagedblathers was unable to find an ownerbranch-release-26.2Used to mark GA and release blockers, technical advisories, and bugs for 26.2release-blockerIndicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions