opensearch-project / security-analytics

Security Analytics enables users for detecting security threats on their security event log data. It will also allow them to modify/tailor the pre-packaged solution.
Apache License 2.0
69 stars 72 forks source link

[BUG] Unable to enter a key longer than 50 characters #1259

Open michael-markevich opened 1 month ago

michael-markevich commented 1 month ago

Describe the bug The UI field for the "Key" parameter contains a limit of 50 characters which is not documented and prevents to create security detector rules for longer keys.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Security Analytics' - 'Detection Rules'
  2. Click on 'Create detection rule' and populate 'Rule overview' and 'Details' sections with any suitable values
  3. Scroll down to the 'Detection' section
  4. In the 'Selection_1' block for 'Map_1' enter any valid key that is longer than 50 characters. Error message appears: "Invalid key name. Valid characters are a-z, A-Z, 0-9, hyphens, dots, and underscores" (although the key contains only allowed characters). When editing in YAML editor, the key is accepted.

Expected behavior The key is accepted

OpenSearch Version 2.16.0

Dashboards Version 2.16.0

Plugins Default setup via docker image

Host/Environment (please complete the following information):

LDrago27 commented 1 month ago

@opensearch-project/admin transfer it to security-analytics

dblock commented 2 weeks ago

[Weekly Catch All Triage - 1]