Skip to content

Commit 669e282

Browse files
author
Nikolay Tkachenko
committed
Update release notes. Fix the modsec conf issue.
1 parent 4f51d8c commit 669e282

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
0 Bytes
Binary file not shown.

docs/release-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
This page describes new releases of Wallarm API Firewall.
44

5-
## v0.9.2 (2025-06-06)
5+
## v0.9.2 (2025-06-09)
66

77
* Added Prometheus metrics support in the `API` mode
88
* Added support of the env vars in the API-Firewall pkg
9+
* Add ModSecurity-specific validation configuration options (#127)
910
* Dependency upgrade
1011

1112
## v0.9.1 (2025-04-23)

internal/config/modsec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
type ModSecurity struct {
1414
ConfFiles []string `conf:"env:MODSEC_CONF_FILES"`
1515
RulesDir string `conf:"env:MODSEC_RULES_DIR"`
16-
RequestValidation string `conf:"env:MODSEC_REQUEST_VALIDATION validate:"required,oneof=DISABLE BLOCK LOG_ONLY"`
17-
ResponseValidation string `conf:"env:MODSEC_RESPONSE_VALIDATION" validate:"required,oneof=DISABLE BLOCK LOG_ONLY"`
16+
RequestValidation string `conf:"env:MODSEC_REQUEST_VALIDATION" validate:"omitempty,oneof=DISABLE BLOCK LOG_ONLY"`
17+
ResponseValidation string `conf:"env:MODSEC_RESPONSE_VALIDATION" validate:"omitempty,oneof=DISABLE BLOCK LOG_ONLY"`
1818
}
1919

2020
func LoadModSecurityConfiguration(cfg *ModSecurity, logger zerolog.Logger) (coraza.WAF, error) {

0 commit comments

Comments
 (0)