Add security attributes column to inventory

What does this MR do and why?

Add security attributes column to inventory

If security_context_labels feature flag is enabled,
show security attributes column in security inventory

In project attributes cells, show gl-labels for the first 3 attributes
and an overflow attribute with a popover that shows the full list
Reuse client resolvers that return mock attributes for the project page

References

Screenshots or screen recordings

Before/Feature flag disabled After/Flag enabled
Screenshot_2025-08-04_at_18.13.07 Screenshot_2025-08-04_at_17.40.49
Screenshot_2025-08-04_at_17.41.14
Screenshot_2025-08-04_at_18.13.41 Screenshot_2025-08-04_at_17.39.54

How to set up and validate locally

git checkout 550478-make-attributes-space-in-security-inventory
echo "Feature.enable(:security_context_labels)" | gdk rails c
  1. go to a group that has at least one project => sidebar => Secure => Security inventory
  2. there should be a new Security attributes column in the table
    • the first three attributes are shown in the table cell
    • hovering over +N more should show all attributes in a popover
    • eventually clicking the cell will open a drawer (not implemented yet)
  3. each project should have the same four mocked attributes for now (until we have a way to query for attributes via GraphQL)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #550478 (closed)

Edited by Miranda Fluharty

Merge request reports

Loading
Loading