Skip to content

[FLINK-39516][runtime-web] Address npm security advisories in flink-runtime-web web-dashboard - #28000

Closed
spuru9 wants to merge 6 commits into
apache:masterfrom
spuru9:FLINK-39516
Closed

[FLINK-39516][runtime-web] Address npm security advisories in flink-runtime-web web-dashboard#28000
spuru9 wants to merge 6 commits into
apache:masterfrom
spuru9:FLINK-39516

Conversation

@spuru9

@spuru9 spuru9 commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change

The purpose of this pull request is to address multiple npm security advisories in the flink-runtime-web's web-dashboard. This is achieved by upgrading several dependencies to their latest secure versions, including a major upgrade of the Angular framework and related libraries.

Brief change log

Verifying this change

This change is primarily a dependency upgrade to resolve security issues. It can be verified by:

  • Ensuring the web-dashboard builds successfully (npm run build).
  • Running existing linting and sanity checks (npm run lint).
  • Verifying that the Web UI remains functional after the upgrade.
  • (CI) Azure Pipelines will verify the full build and integration.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): yes
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

Was generative AI tooling used to co-author this PR?
  • Yes (Gemini CLI 0.37.2)

Generated-by: Gemini CLI 0.37.2

@spuru9

spuru9 commented Apr 22, 2026

Copy link
Copy Markdown
Contributor Author

As of April 22, 2026

puru@Purushottams-MacBook-Air web-dashboard % npm audit
found 0 vulnerabilities

@flinkbot

flinkbot commented Apr 22, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@spuru9
spuru9 marked this pull request as ready for review April 22, 2026 20:28
@spuru9

spuru9 commented Apr 24, 2026

Copy link
Copy Markdown
Contributor Author

@rmetzger PR for the cleanup of vulnerabilities as discussed.

spuru9 and others added 2 commits April 29, 2026 15:32
…reformatting

Prettier 2.5 introduced a space-before-colon rule for Angular pipe
arguments, which reformatted ~25 component templates as a side effect
of the dep upgrade. The reformat is purely cosmetic but spreads the
diff across many files, raising merge-conflict risk against concurrent
template work.

Pin prettier to ~2.4.1 (matching master prior to the upgrade — devDep
only, no advisory exposure per npm audit) and restore the template
files to master content.

NOTE: package-lock.json and NOTICE will be regenerated in a follow-up
commit (npm install + generate_notice.sh) once registry auth is
refreshed.
@spuru9

spuru9 commented Apr 29, 2026

Copy link
Copy Markdown
Contributor Author

Pinned the prettier version. Reducing unintended whitespace changes.
cc @rmetzger

@spuru9

spuru9 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

FYI: There have been a few advisories generated in last few days post this PR creation. Not expanding the scope of the PR as some of them dont have clean fix yet. Would be good to add later. All are of MODERATE level only.

@spuru9

spuru9 commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

@snuyanzin Can you look at this PR as well, these are the venerability fixes in the webui.

@spuru9

spuru9 commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

Similar to the comment in #28147 (comment) by @snuyanzin Moved all the details of the CVEs to a file in my fork https://github.com/spuru9/flink/blob/npm-fix-advisories-details-1/flink-runtime-web/ADVISORIES_FIX_PR_28000.md

@spuru9

spuru9 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author
image A lot of dependency PR have been generated recently, should I refresh this PR or it can be picked in a seperate PR later.

@spuru9 spuru9 changed the title [FLINK-39516][web dashboard] Address npm security advisories in flink-runtime-web web-dashboard [FLINK-39516][runtime-web] Address npm security advisories in flink-runtime-web web-dashboard Jun 21, 2026
MartijnVisser added a commit to MartijnVisser/flink that referenced this pull request Jun 30, 2026
…#28000

Raise the declared package.json minimums for the non-Angular dependencies to the secure versions identified in FLINK-39516 / apache#28000, so the declared floors match the versions the lockfile already resolves. No change to the shipped artifact (resolved versions are unchanged); this hardens the declared minimums against future lockfile regeneration.

Co-Authored-By: Purushottam Sinha <sinhapurushottam911@gmail.com>
Generated-by: Claude Opus 4.8 (1M context)
MartijnVisser added a commit to MartijnVisser/flink that referenced this pull request Jul 1, 2026
…#28000

Raise the declared package.json minimums for the non-Angular dependencies to the secure versions identified in FLINK-39516 / apache#28000, so the declared floors match the versions the lockfile already resolves. No change to the shipped artifact (resolved versions are unchanged).

Co-Authored-By: Purushottam Sinha <sinhapurushottam911@gmail.com>
Generated-by: Claude Opus 4.8 (1M context)
MartijnVisser added a commit that referenced this pull request Jul 1, 2026
… v21 (#28593)

* [FLINK-40028][runtime-web] Update Angular to v21 and ng-zorro-antd to v21

Upgrade the web dashboard to the latest LTS Angular (21.2.17) and the matching stable ng-zorro-antd (21.3.2), with TypeScript 5.9, the aligned @angular-eslint/@typescript-eslint toolchain, and @types/node 22. Regenerate the lockfile (resolving the outstanding npm security advisories) and the previously stale NOTICE. Pin prettier to master's 2.6.2 to avoid license-header reformatting drift, and keep templates on *ngIf/*ngFor by disabling prefer-control-flow; the control-flow migration, prettier 3 and eslint 9 are a dedicated follow-up.

Generated-by: Claude Opus 4.8 (1M context)

* [FLINK-40028][runtime-web] Remove obsolete husky env var and update Node prerequisite

The HUSKY_SKIP_INSTALL env var and the deprecated 'npm ci --cache-max=0 --no-save' flags are obsolete: husky was removed in FLINK-33939 and the flags are no-ops under npm 10. Bump the documented Node minimum to match Angular 21's floor.

Generated-by: Claude Opus 4.8 (1M context)

* [FLINK-40028][runtime-web] Adopt secure dependency floors from #28000

Raise the declared package.json minimums for the non-Angular dependencies to the secure versions identified in FLINK-39516 / #28000, so the declared floors match the versions the lockfile already resolves. No change to the shipped artifact (resolved versions are unchanged).

Co-Authored-By: Purushottam Sinha <sinhapurushottam911@gmail.com>
Generated-by: Claude Opus 4.8 (1M context)

---------

Co-authored-by: Purushottam Sinha <sinhapurushottam911@gmail.com>
@MartijnVisser

Copy link
Copy Markdown
Contributor

Superseded by #28593

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