Skip to content

Commit 90f3679

Browse files
authored
TCR-684: add description of new feature to doc.imunify360.com
1 parent 6ec3dc0 commit 90f3679

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

docs/features/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1280,3 +1280,33 @@ def im_hook(dict_param):
12801280
```
12811281
12821282
</div>
1283+
1284+
## Manual ModSec rules update management (≥v8.6.0)
1285+
1286+
Since 8.6.0 imunify360-firewall, we introduced a new way to control ModSecurity rules updates. Right now, it is possible to disable automatic updates and add the ability to manually choose the exact version of the rules.
1287+
To disable autoupdate, `disabled_types` should be set to `["modsec-rules"]`, the default is an empty list (autoupdate enabled).
1288+
1289+
```
1290+
FILES_UPDATE:
1291+
disables_types: ["modsec-rules"]
1292+
days_to_keep: 30
1293+
```
1294+
*`days_to_keep` - allows control over how long rules will be stored on disk; when expired, they will be automatically deleted.
1295+
1296+
In this mode, the Imunify agent downloads new rules, but does not apply them automatically.
1297+
1298+
To manage rules, we extended `imunify360-agent update modsec-rules` command:
1299+
1300+
1. Get a list of available rules `imunify360-agent update modsec-rules --list`
1301+
1302+
```
1303+
# example of output
1304+
$ imunify360-agent update modsec-rules --list
1305+
6.80 (latest)
1306+
6.79
1307+
6.78 (current)
1308+
```
1309+
1310+
2. Update to exact version `imunify360-agent update modsec-rules --version x.x`
1311+
1312+
This approach allows customers to set up test servers where they can check new rules and then update them on all servers when the tests pass.

0 commit comments

Comments
 (0)