Repository navigation
Commit 6eb1707
fix(monitoring-agents): add regex escaping and input validation for tenant log routing
- Escape namespace value with regexQuoteMeta in rewrite_tag rule to
prevent regex metacharacters (e.g. dots) from matching unintended strings
- Add validation that namespace is not empty before using it in
tenantLogRouting configuration
Signed-off-by: Mattia Eleuteri <[email protected]>
Signed-off-by: mattia-eleuteri <[email protected]>1 parent 9b044a3 commit 6eb1707
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| |||
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
448 | | - | |
| 449 | + | |
449 | 450 | | |
450 | 451 | | |
451 | 452 | | |
| |||
0 commit comments