[monitoring] Strip infrastructure metadata from tenant logs#2196
[monitoring] Strip infrastructure metadata from tenant logs#2196mattia-eleuteri wants to merge 1 commit intocozystack:maincozystack/cozystack:mainfrom mattia-eleuteri:monitoring/strip-infra-metadatamattia-eleuteri/cozystack:monitoring/strip-infra-metadataCopy head branch name to clipboard
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new Fluent Bit filter configuration is added to the monitoring-agents values file, targeting Kubernetes-related logs (kube.*) to strip the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Remove kubernetes_node_name and kubernetes_host fields from container logs to prevent leaking infrastructure topology to tenants. Signed-off-by: Mattia Eleuteri <mattia@hidora.io> Signed-off-by: mattia-eleuteri <mattia@hidora.io>
7dbdcd4 to
d70e4c3
Compare
Summary
modifyfilter in fluent-bit that removeskubernetes_node_nameandkubernetes_hostfrom all container logsProblem
kubernetes_node_nameis exposed in log metadata, leaking node topology to end-users. Other sensitive fields likekubernetes_hostare also visible.Relates to #2194
Test plan
helm templatemonitoring-agents and verifyRemove kubernetes_node_namefilter is presentkubernetes_node_nameis absent from logs in tenant Grafana🤖 Generated with Claude Code
Summary by CodeRabbit