Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-33306

[Policy Wizard] Change File Path criterion from dropdown to text input

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • UI
    • Rox Sprint 4.11C

      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:

              schaudhr Saif Chaudhry
              schaudhr Saif Chaudhry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: