detection-rules icon indicating copy to clipboard operation
detection-rules copied to clipboard

[FR] Expand `CUSTOM_RULES_DIR` to support user-relative paths

Open pberba opened this issue 4 months ago • 1 comments

Repository Feature

None

Problem Description

Currently the CUSTOM_RULES_DIR environment variable only accepts an absolute paths.

Desired Solution

Modify https://github.com/elastic/detection-rules/blob/5d69eb19badf1af854b3e5cdb9445f214b733ead/detection_rules/config.py#L230

to

path = Path(CUSTOM_RULES_DIR).expanduser() / "_config.yaml"

Considered Alternatives

No response

Additional Context

No response

pberba avatar Oct 02 '25 04:10 pberba

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

botelastic[bot] avatar Dec 01 '25 04:12 botelastic[bot]