-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathplugin.yaml.template
More file actions
97 lines (90 loc) · 2.91 KB
/
Copy pathplugin.yaml.template
File metadata and controls
97 lines (90 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# OWASP CRS Plugin Descriptor
# Copy this file as 'plugin.yaml' in your plugin repository root.
# See plugin-schema.json for the full JSON Schema definition.
# Docs: https://github.com/coreruleset/plugin-registry
schema_version: 1
plugin:
# Plugin name must follow the pattern: <name>-plugin
name: "template-plugin"
description: "Short description of what the plugin does"
long_description: |
Extended description explaining the plugin's purpose, how it works,
and when users should consider enabling it. This field supports
multi-line text.
# "official" for coreruleset-maintained, "3rd-party" otherwise
type: "official"
# Category: rule-exclusion | detection | protection | utility | logging | performance
category: "utility"
# Status: tested | being-tested | untested | draft
status: "untested"
license: "Apache-2.0"
authors:
- name: "Your Name"
# email: "you@example.com" # optional
# url: "https://example.com" # optional
repository: "https://github.com/coreruleset/template-plugin"
# homepage: "https://example.com/docs" # optional
keywords:
- "example"
- "template"
# Registered rule ID range from the plugin registry
rule_id_range:
start: 9500000
end: 9500999
# WAF engine and CRS version compatibility (optional)
compatibility:
crs_version: ">=4.0.0"
engines:
- "modsecurity2"
- "modsecurity3"
- "coraza"
# Plugin dependencies (optional, omit if none)
# dependencies:
# - name: "other-plugin"
# version: ">=1.0.0"
# Configuration variables exposed by the plugin
configuration:
file: "plugins/template-config.conf"
variables:
- name: "tx.template-plugin_enabled"
type: "boolean"
default: 1
description: "Enable or disable the plugin (0 to disable)"
required: false
# Add your plugin-specific variables below. Examples:
#
# - name: "tx.template-plugin_threshold"
# type: "integer"
# default: 100
# description: "Detection threshold"
# min: 1
# max: 1000
#
# - name: "tx.template-plugin_mode"
# type: "enum"
# default: "block"
# description: "Operating mode"
# allowed_values: ["detect", "block"]
#
# - name: "tx.template-plugin_whitelist"
# type: "string"
# default: ""
# description: "Space-separated list of whitelisted values"
# example: "/value1/ /value2/"
#
# - name: "tx.template-plugin_allowed_paths"
# type: "list"
# description: "Allowed paths, formatted as |/a/ |/b/"
# separator: " "
# prefix: "|"
# suffix: "/"
# example: "|/a/ |/b/"
#
# A numbered series of variables the plugin reads until one is unset
# (tx.template-plugin_recipient_1 ... _5). The name omits the suffix.
#
# - name: "tx.template-plugin_recipient"
# type: "indexed"
# max_index: 5
# description: "Additional notification recipients"
# example: "second@example.com"