Repository navigation
Commit 8977ca6
committed
fix(monitoring): allow-list kubernetes_ fields instead of block-listing
The nest/lift promotes the entire `kubernetes` map to top-level
`kubernetes_*`, so removing only `kubernetes_host` left other infra
fields tenant-visible (docker_id, container_image, annotations, pod_id,
container_hash, ...) and would silently leak any field a future
fluent-bit version adds. `_stream_fields` in the VictoriaLogs output
only sets the stream labels, not a stored-field projection, so it does
not limit what tenants can see.
Keep only kubernetes_pod_name, kubernetes_namespace_name and
kubernetes_container_name (the fields the OUTPUT actually uses), and
drop every other kubernetes_* field via Remove_wildcard. Scoped to the
kubernetes_ prefix so merged application log fields (Merge_Log On) are
untouched.
Signed-off-by: mattia-eleuteri <[email protected]>1 parent 61fb19d commit 8977ca6
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
430 | 442 | | |
431 | 443 | | |
432 | 444 | | |
0 commit comments