Draft: Add security attribute filters to inventory search bar
What does this MR do and why?
Add security attribute filters to search
Add security_attribute_inventory_filters feature flag
Query for categories and attributes in search bar
Map categories to tokens with attributes as options
Add a header token to show if any category matches
Push tokens into array if the feature flag is enabled
This MR does not include filtering the list of projects by the selected security attributes.
#TODO
-
change token operators to Is ( =
), Is not (!=
), and Is one of (||
)
References
- issue: Frontend: Filter inventory by security attributes (#550497)
- attributes epic: Security Attributes/Context Filtering (&18010)
- inventory filtering epic: Phase 2: Group-level Security Inventory (MVC) (&16640)
Screenshots or screen recordings
Screen_Recording_2025-10-21_at_13.06.11
How to set up and validate locally
git checkout 550497-filter-inventory-by-security-attributes
echo "Feature.enable(:security_categories_and_attributes)" | gdk rails c # backend services for attributes
echo "Feature.enable(:security_context_labels)" | gdk rails c # frontend UI for attributes
echo "Feature.enable(:security_inventory_filtering)" | gdk rails c # show filters in inventory (beyond plain text search)
echo "Feature.enable(:security_attribute_inventory_filters)" | gdk rails c # show attributes filters in inventory (new flag in this MR)
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.
Edited by Miranda Fluharty