-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
Overview:
The File Path policy criterion currently uses a select dropdown with 4 hardcoded options (/etc/passwd, /etc/shadow, /etc/ssh/sshd_config, /etc/sudoers). With backend support for arbitrary paths (ROX-31449) and wildcards (ROX-33018), the UI needs to switch to a free-text input that accepts any path, including wildcard patterns (e.g., /etc/*.conf).
Implementation Details:
Change the File Path descriptor type from 'select' to 'text' in both the deployment policyCriteriaDescriptors and the nodeEventDescriptor. Remove the options field and update placeholder to hint at wildcard support.
Acceptance Criteria:
- File Path criterion renders as a text input instead of a dropdown
- Users can type any arbitrary file path
_ Placeholder text communicates wildcard support (e.g., /etc/_.conf) - Works for both Deployment and Node event source policies
- Existing policies with hardcoded paths still display correctly
Files to Update:
1. apps/platform/src/Containers/Policies/Wizard/Step3/policyCriteriaDescriptors.tsx:1508-1519 - deployment descriptor
2. apps/platform/src/Containers/Policies/Wizard/Step3/policyCriteriaDescriptors.tsx:1653-1664 - node event descriptor
Blocked by: