security-audit: fix filter/audit config key — log_record (singular), filterprocessor 0.121
The processor rejected "log_records": LogFilters.LogConditions is mapstructure "log_record" in v0.121 (collector failed to start: failed to get config).
This commit is contained in:
parent
0b8318f547
commit
cf2689aea0
@ -159,7 +159,9 @@ spec:
|
||||
filter/audit:
|
||||
error_mode: ignore
|
||||
logs:
|
||||
log_records:
|
||||
# Ключ именно log_record (singular) — так в filterprocessor 0.121 (config.go).
|
||||
# Запись отбрасывается, если любое условие истинно.
|
||||
log_record:
|
||||
- 'IsMatch(body["user"]["username"], "^system:serviceaccount:flux-system:") and (body["verb"] == "get" or body["verb"] == "list" or body["verb"] == "watch")'
|
||||
transform/audit:
|
||||
error_mode: ignore
|
||||
|
||||
Loading…
Reference in New Issue
Block a user