Skip to content

refactor(vulnerability): remove legacy critical vulnerability issues and update messages - #564

Merged
ybelMekk merged 5 commits into
mainfrom
fix/cleanup-vulnz-issues
Oct 21, 2026
Merged

ybelMekk merged 5 commits into
mainfrom
fix/cleanup-vulnz-issues

Conversation

@ybelMekk

@ybelMekk ybelMekk commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Vis ett sårbarhetsissue per workload: EXTERNAL_INGRESS_URGENT_VULNERABILITY (CRITICAL) ved kjente utnyttede sårbarheter og bekreftet ekstern ingress. Ellers vises VULNERABLE_IMAGE (WARNING) når slike sårbarheter finnes. Flere oppsummeringer fra v13s gir ikke flere sårbarhetsissues for samme workload. Andre issue-typer, som manglende SBOM, påvirkes ikke.

Fjerner den utgåtte GraphQL-typen ExternalIngressCriticalVulnerabilityIssue og enum-verdien EXTERNAL_INGRESS_CRITICAL_VULNERABILITY, sammen med modell og resolvere. En migrasjon sletter lagrede issues av den gamle typen før API-et leser dem.

Avhengighet: nais/console-frontend#666 må være merget og deployet før denne PR-en merges. Eldre åpne faner og andre klienter som fortsatt spør etter den fjernede typen, kan feile etter API-deploy.

@ybelMekk
ybelMekk requested a balanced review from Copilot October 19, 2026 11:02
@ybelMekk
ybelMekk requested a review from a team as a code owner October 19, 2026 11:02
@ybelMekk
ybelMekk force-pushed the fix/cleanup-vulnz-issues branch from ee61acb to 64327c0 Compare October 19, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The intended image-issue emission and severity contract needs reconciliation between the description and implementation.

1 open issue
What changed in this PR

Refactors workload vulnerability reporting to distinguish urgent external-ingress issues from known-exploited image warnings.

Changes:

  • Stops emitting legacy critical-ingress issues.
  • Suppresses image issues for urgent applications and makes remaining image issues warnings.
  • Updates messages and test expectations.
File Description
internal/​issue/​checker/​workload_v13s.go Revises issue emission, deduplication, severity, and messages.
internal/​issue/​checker/​workload_v13s_test.go Updates unit assertions for issue selection and severity.
integration_tests/​issues_for_team.lua Updates GraphQL expectations for remaining issue types.

Review effort: Balanced

Comment thread internal/issue/checker/workload_v13s.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review found no blocking issues, and the implementation and updated tests match the clarified contract; tests were not executed.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation and test assertions match the clarified contract, with no blocking findings; tests were not executed.

No open issues 🎉

Review effort: Balanced

@ybelMekk

Copy link
Copy Markdown
Contributor Author

@thokra-nav, kan du se over denne PR-en og si om endringene ser riktige ut?

@christeredvartsen christeredvartsen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the deprecated fields have been used over the last two weeks according to our metrics, so we can hope it's only Console. 🙏

@ybelMekk

Copy link
Copy Markdown
Contributor Author

You can never say never 👍🏾

@ybelMekk
ybelMekk force-pushed the fix/cleanup-vulnz-issues branch from 61cddbb to 4e48dd8 Compare October 21, 2026 12:08
@ybelMekk
ybelMekk enabled auto-merge (squash) October 21, 2026 12:08
@ybelMekk
ybelMekk merged commit d4fdb07 into main Oct 21, 2026
10 checks passed
@ybelMekk
ybelMekk deleted the fix/cleanup-vulnz-issues branch October 21, 2026 12:14
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