-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Create/edit rule in YAML format #154
Comments
@djindjic I have updated the second screenshot above with new text for labels and description text. |
FindingsAfter short sync with @amsiglan we found that these two editor types are maybe not capable to be always connected in "two-way binding" (it means if user change rule name in Visual Editor that should be reflected in YAML as soon as "tab" is changed and vice versa). There are 3 possible issues:
Possible solutionPossible solution on Create Rule and Edit Rule page could be initial chooser dialog (ex. Create and Edit Policy on IM Plugin image bellow) @kamingleung please give us your thoughts. |
If we are able to resolve the above 3 issues, what else is preventing this from allowing users to switch between visual and YAML editors? |
@kamingleung @amsiglan
Will keep you posted here. P.S. Just for cleaner communication, I'm adding screen recording of WIP workflow Screen.Recording.2022-12-06.at.8.53.09.PM.mov |
@djindjic Thanks for your update! In the video, I noticed the rule name has some naming restrictions. What are the restrictions? Can we provide an inline validation for the visual editor and return an appreciate error message when trying to submit on YAML editor? "Enter valid input for Rule name" is a bit unclear for users. |
@kamingleung good catch, thanks. Since I've already started on next task, I've created 2 new issues based on your finding: #214 and #215. Also added to our internal tracking tool. @amsiglan @kamingleung Please let me know if #215 is enough high priority for v2.5 |
Is your feature request related to a problem?
As a user, I should be able to create/edit a rule in YAML format or with a guided visual editor.
What solution would you like?
What alternatives have you considered?
Open to suggestions!
Mockups
In the create rule flow, users can click on "YAML editor" to switch from Visual editor to YAML editor. (For toggle, use the EuiButtonGroups component with "single" type)
Here's how it looks like when toggled to YAML editor. Users can click on "Visual editor" to return the define the rule using the UI. (The "Sigma specification" link should point to: https://github.com/SigmaHQ/sigma-specification)
[Updated screenshot] Added label and description text for the YAML editor:
Label: Define rule in YAML
Description text: Use the YAML editor to define a sigma rule. See Sigma specification for rule structure and schema.
The text was updated successfully, but these errors were encountered: