allowing CIDRs, wildcards and Plural in IP and DNS#846
Conversation
network-wildcards: DNS leading/trailing/mid + CIDR + IPAddresses + "*" sentinel. CEL networkneighborhood helpers now query projected fields with wildcard/CIDR/DNS-wildcard support and the v0.0.2 spec semantics (port/protocol checks degrade to address-only in v1 when only a CIDR is declared): - DNS leading-* (RFC 4592 single-label wildcard) - DNS trailing-* (subdomain-prefix wildcard) - DNS mid-(interior dynamic segment) - IPv4/IPv6 literals and CIDR ranges - "*" any-IP sentinel - IPAddresses list (deprecated single-IP field) preserved on the decode path Enables the "Unexpected Egress Network Traffic" (R0011) rule by default. Backed by kubescape/storage #324; go.mod now pins the official kubescape/storage v0.0.290 release (drops the temporary fork replace). Tests: 20 declarative fixture YAMLs under tests/resources/network-wildcards/ plus wildcard/fixtures unit tests and Test_28_UserDefinedNetworkNeighborhood component test. Feature documented in docs/features/network-wildcards.md. Squashed from PR #806 (kubescape/node-agent). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Duck <70207455+entlein@users.noreply.github.com>
|
Warning Review limit reached
More reviews will be available in 16 minutes and 16 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (33)
✨ 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 |
Performance Benchmark ResultsNode-Agent Resource Usage
Dedup EffectivenessNo data available. |
|
we merged #806 |
Same-repo mirror of #806 (which is from the
k8sstormcenterfork) so the gated Node Agent Component Tests and build-and-push-image (pull_request) workflows run with repo secrets.Single squashed commit, rebased on
main, conflicts resolved.Overview
network-wildcards: DNS leading/trailing/mid + CIDR + IPAddresses +
*sentinel.CEL
networkneighborhoodhelpers now query projected fields with wildcard/CIDR/DNS-wildcard support and the v0.0.2 spec semantics (port/protocol checks degrade to address-only in v1 when only a CIDR is declared):*(RFC 4592 single-label wildcard)*(subdomain-prefix wildcard)⋯(interior dynamic segment)*any-IP sentinelIPAddresseslist (deprecated single-IP field) preserved on the decode pathEnables the "Unexpected Egress Network Traffic" (R0011) rule by default.
Storage dependency
Backed by kubescape/storage #324.
go.modpins the officialkubescape/storage v0.0.290release (drops the temporary forkreplace).Tests
tests/resources/network-wildcards/pkg/rulemanager/cel/libraries/networkneighborhood/Test_28_UserDefinedNetworkNeighborhoodcomponent testdocs/features/network-wildcards.mdSupersedes/mirrors #806.
🤖 Generated with Claude Code