[management] Handle missing NetworkAddresses in peer network range posture check#5806
Conversation
…e posture check Peers with empty NetworkAddresses (e.g., older mobile clients) were blocked by deny-action posture checks. Allow them through since we cannot confirm they ARE in the denied range. Update tests to match new behavior.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 |
|



Summary
Peers with empty NetworkAddresses (e.g., older mobile clients that don't report network interfaces) were incorrectly handled by the
peer_network_range_checkposture check. The check returned an error, which blocked the peer entirely.Fix: For
denyaction, allow the peer through (can't confirm it IS in the denied range). Forallowaction, deny the peer (can't confirm it IS in the allowed range).Includes updated unit tests.
Checklist
By submitting this pull request, I confirm that I have read and agree to the terms of the Contributor License Agreement.
Summary by CodeRabbit