Skip to content

ROX-33310: node info in file access violations#19223

Draft
sachaudh wants to merge 2 commits intomasterfrom
ROX-33310/node-alert-violation-details
Draft

ROX-33310: node info in file access violations#19223
sachaudh wants to merge 2 commits intomasterfrom
ROX-33310/node-alert-violation-details

Conversation

@sachaudh
Copy link
Contributor

Description

Jira: ROX-33310

Display cluster and node identification fields in the violation detail view for node-type file access violations.

  • Add NodeAlert type, AlertNode type, and isNodeAlert() type guard to alert.proto.ts
  • Add hostname field to FileAccess type in fileAccess.proto.ts
  • Handle node alerts in ViolationDetailsPage for entity name and resource type display
  • Add "Node" tab with NodeOverview component showing Node Name, Node ID, Cluster Name, Cluster ID
  • Show hostname in FileAccessCardContent when present

User-facing documentation

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

  • TypeScript type checking passes (npm run tsc)
  • ESLint passes (npm run lint:fast-dev)
  • No existing tests were broken (no tests exist for these files)

Screenshots

Before After

…lations

Node-type violations now show Cluster Name, Cluster ID, Node Name, and
Node ID in the violation detail view via a dedicated "Node" tab. The
FileAccess hostname field is also surfaced in file access violation cards.

Changes:
- Add NodeAlert type, AlertNode type, and isNodeAlert type guard
- Add hostname field to FileAccess type
- Handle node alerts in ViolationDetailsPage entity name and resource type
- Add Node tab with NodeOverview component for node-type violations
- Show hostname in FileAccessCardContent when present

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Feb 27, 2026

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

Match Deployment tab layout by wrapping NodeOverview in a
Card with CardTitle, consistent with DeploymentTabWithout
ReadAccessForDeployment pattern.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Feb 27, 2026

Images are ready for the commit at 953508b.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-194-g953508b1b5.

@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.56%. Comparing base (2862869) to head (953508b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19223      +/-   ##
==========================================
- Coverage   49.56%   49.56%   -0.01%     
==========================================
  Files        2675     2675              
  Lines      201838   201838              
==========================================
- Hits       100038   100034       -4     
- Misses      94343    94345       +2     
- Partials     7457     7459       +2     
Flag Coverage Δ
go-unit-tests 49.56% <ø> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants