[Examples] Add end-to-end local demo script (fixes #75)#83
Open
Ayush7614 wants to merge 3 commits into
Open
Conversation
4 tasks
Author
|
cc: @Karib0u |
Owner
|
Thanks for the PR. I am going to request changes for now. The direction matches #75, but the implementation is not ready to merge:
Please rebase on main, make the helpers config-aware and portable, add at least basic automated validation for argument parsing/path handling, and keep the docs/scripts consistent with the repo style. |
Provide cross-platform helpers that verify prerequisites, fire the demo trigger, poll for new ECS alerts, and optionally print SIEM next steps. Fixes Karib0u#75 Co-authored-by: Cursor <cursoragent@cursor.com>
Read alerts.directory and alerts.filename from config.toml, watch today's alert file, fix macOS-safe timing, iterate globs safely, and add validate.sh. Co-authored-by: Cursor <cursoragent@cursor.com>
Run examples/demo/validate.sh on Ubuntu to cover config parsing and CLI checks. Co-authored-by: Cursor <cursoragent@cursor.com>
Author
|
Thanks for the review @Karib0u — addressed all requested changes in the latest push:
Happy to adjust anything else during review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/demo/run-local-demo.shandrun-local-demo.ps1to verify prerequisites, fire the bundledwhoamitrigger, poll for a new ECS alert, and print pretty JSON on success.examples/demo/README.mdwith usage, expected output, SIEM next-step hints, and macOS experimental notes.docs/getting-started.md.Test plan
sudo ./rustinel run), run./examples/demo/run-local-demo.sh, confirm exit 0 and alert JSON printed.sudo ./rustinel run../examples/demo/run-local-demo.sh --siem elastic— confirm next-step commands print..\examples\demo\run-local-demo.ps1with agent running and confirm alert output.--trigger-only/-TriggerOnlywhen agent checks should be skipped.