From 943e8518555873c62c7925ab819e97af6cea0ad7 Mon Sep 17 00:00:00 2001 From: Alex Christy Date: Wed, 31 Jul 2024 21:49:55 -0400 Subject: [PATCH] Add pipeline organization section --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 3e85f1f..bfbeb77 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@
  • Key Features
  • Quickstart
  • Private Setup
  • +
  • + Pipeline Organization + +
  • Decoder Resolution
  • Building Containers
  • Running Locally
  • @@ -120,6 +128,26 @@ Pushing the main branch will kick off the CI pipeline which should run the default tests. If it passes then the repository is ready for use. If it fails then the repository is not functional and an issue should be filed with the GitHub Action log. +## Pipeline Organization + +The pipeline repository has three main folders: `decoders`, `rules`, and `tests`. The `.sh` scripts in the root of repository should **not** be modified unless explicitly trying to change the behavior of the pipeline. + +### Decoders folder + +Located at `decoders/`, this folder is where you should put all the custom decoder files (`.xml`) that will get automatically installed when the container is run. + +> **Note:** If there is a decoder name in this folder that conflicts/overlaps with a default Wazuh decoder, the default decoder file will be disabled. (See the [Decoder Resolution](#decoder-resolution) section for more information.) + +### Rules folder + +Located at `rules/`, this folder is where you should put all custom rule files (`.xml`) that will get automatically installed when the container is run. + +### Tests folder + +Located at `tests/`, this folder is where you should put all of your [WazuhTest](https://github.com/alexchristy/WazuhTest) files (`.json`) and associated raw log files. See the [WazuhTest repository](https://github.com/alexchristy/WazuhTest) for information on test syntax and organization. + +> **Note:** If a rule's ID conflicts with an existing/default rule only the first rule definition will be used. + ## Decoder Resolution If a custom decoder name overlaps with an default Wazuh decoder's name, the Wazuh manager will fail to startup. To address this, this pipeline will automatically disable default decoder names that overlap/conflict with custom decoders names.