GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ROX-37837: Identify affected containers in reports by AlexVulaj · Pull Request #24046 · stackrox/stackrox

Conversation

@AlexVulaj

@AlexVulaj AlexVulaj commented Nov 12, 2026 •
edited by atlassian Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description

ROX-37837: CVE rows are indistinguishable when multiple containers in one deployment use the same vulnerable image. Keep one row per affected container, as the customer requested, and add Container Name to image vulnerability CSV reports. Deduplicating the rows would hide affected containers.

The new column is populated when deployments are written. Existing deployments may show a blank Container Name until updated; a backfill can follow in a separate background-migration PR if required.

User-facing documentation

  • CHANGELOG.md is updated OR update is not needed
  • documentation PR is created and is linked above OR is not needed

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Deployed these changes to a GKE cluster with a Deployment that had two containers, app and sidecar, both containing the same vulnerable UBI 9 image. In the exported CSV, all 598 distinct findings appeared exactly twice (1,196 rows): one row per container, with the correct Container Name and no missing or extra rows. For krb5-libs / CVE-2024-3596, both rows also retained RHSA-2024:9474, Fix Date of November 12, 2024, and state Observed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@openshift-ci openshift-ci Bot added the do-not-merge/work-in-progress label Nov 12, 2026
@openshift-ci

openshift-ci Bot commented Nov 12, 2026

Copy link
Copy Markdown

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added area/central area/postgres labels Nov 12, 2026
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Deployment and vulnerability report CSVs now include a Container Name column, making it easier to distinguish containers that use the same image.
    • Rows without a deployment show an empty container name. Container names are also retained with deployment records so they can appear in reports.

Deployment container names are now persisted and selected for image CVE reports. CSV reports include a “Container Name” column. Rows have an empty value when the response has no container name.

Changes: Container Name Reporting

Layer / File(s) Summary
Persist and select container names
proto/storage/deployment.proto, pkg/postgres/schema/deployments.go, pkg/search/options.go, central/deployment/datastore/internal/store/postgres/store.go, pkg/search/postgres/common_test.go
The deployment container model and storage paths include names. Search metadata labels the name field, and a query test checks its selection and join.
Select names for report responses
central/reports/scheduler/v2/reportgenerator/report_gen_impl.go, central/reports/scheduler/v2/reportgenerator/types.go, central/reports/scheduler/v2/reportgenerator/report_gen_view_based_test.go, central/reports/scheduler/v2/reportgenerator/report_gen_transaction_integration_test.go
The deployed-image query selects container names. Report responses expose a nullable name and an accessor that returns an empty string when the name is nil. Integration tests check responses for shared images and deployed rows.
Include names in CSV output
central/reports/scheduler/v2/reportgenerator/csv_gen.go, central/reports/scheduler/v2/reportgenerator/csv_gen_test.go
CSV headers and rows include container names. Tests cover populated names and empty values with KEV enabled and disabled.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant ReportQuery
  participant ImageCVEQueryResponse
  participant GenerateCSV
  ReportQuery->>ImageCVEQueryResponse: select deployment container name
  ImageCVEQueryResponse->>GenerateCSV: provide container name
Loading

Suggested reviewers: ksurabhi91, dashrews78

Merge Risk: Minimal · up to da37c

The change adds a Container Name column to image vulnerability CSV reports and keeps one row per affected container. No merge-blocking risk was identified. Existing deployments may show a blank container name until they are updated.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "ROX-37837: Identify affected containers in reports" matches the main change. The PR keeps one CVE row per affected container and adds a Container Name column to image vulnerability CSV repo…
Description check Passed The description covers the problem, the fix (one row per container and a new Container Name CSV column), and a note that existing deployments need an update or a separate backfill. It fills the user-f…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ROX-37837: Identify affected containers in reports" matches the main change. The PR keeps one CVE row per affected container and adds a Container Name column to image vulnerability CSV reports. The title is concise and specific, and it includes the ticket ID, which is acceptable.

Full details: Description check

Explanation

The description covers the problem, the fix (one row per container and a new Container Name CSV column), and a note that existing deployments need an update or a separate backfill. It fills the user-facing documentation and testing checklists. It also gives a concrete validation on GKE with two containers sharing one image, with row counts and sample values. The template's unchecked e2e and compatibility test boxes are left unchecked, which is acceptable. The template's placeholder text 'change me!' was replaced in the Description section, but the 'How I validated' section and the description body are otherwise complete.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 95da8103-fb96-4b36-ab56-96a66067fbf6
Commits

Reviewing files that changed from the base of the PR and between 43476d8 and da37c43.

Files ignored due to path filters: 1

  • generated/storage/deployment.pb.go is excluded by !**/*.pb.go, !**/generated/**
Files selected for processing: 1

  • central/reports/scheduler/v2/reportgenerator/report_gen_view_based_test.go

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

🚀 Build Images Ready

Images are ready for commit da37c43. To use with deploy scripts:

export MAIN_IMAGE_TAG=5.1.x-569-gda37c430e3
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest create-custom-snapshot

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

2 similar comments
@github-actions

github-actions Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest create-custom-snapshot

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

/konflux-retest create-custom-snapshot

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Nov 12, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 52.86%. Comparing base (34e955b) to head (da37c43).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #24046      +/-   ##
==========================================
- Coverage   52.90%   52.86%   -0.05%     
==========================================
  Files        2755     2755              
  Lines      175277   175286       +9     
==========================================
- Hits        92732    92665      -67     
- Misses      74479    74533      +54     
- Partials     8066     8088      +22     
Flag Coverage Δ
go-unit-tests 52.86% <100.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@AlexVulaj
ROX-37837: Identify affected containers in reports
da37c43
@AlexVulaj
AlexVulaj force-pushed the AlexVulaj/rox-37837-container-name branch from 43476d8 to da37c43 Compare November 12, 2026 20:41
@AlexVulaj
AlexVulaj marked this pull request as ready for review November 12, 2026 20:42
@AlexVulaj
AlexVulaj requested a review from a team as a code owner November 12, 2026 20:42
@openshift-ci openshift-ci Bot removed the do-not-merge/work-in-progress label Nov 12, 2026
@openshift-ci

openshift-ci Bot commented Nov 12, 2026

Copy link
Copy Markdown

@AlexVulaj: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocp-next-candidate-ui-e2e-tests da37c43 link false /test ocp-next-candidate-ui-e2e-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

area/central area/postgres

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@AlexVulaj
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.