← Back to Pull requests

fix(node-image): enable netfilter targets kube-proxy and Canal need on kernel 6.18 #742

Closed
unknown closed this pull request without merging on Oct 02, 2026 12:04 UTC
View on GitHub
unknown unknown commented on Oct 02, 2026 05:03 UTC
Author

Summary


#737 switched the node image to Canal with iptables kube-proxy. On kernel 6.18.49, kube-proxy cannot install its rules:

Extension REJECT revision 0 not supported ... RULE_APPEND failed in chain KUBE-SERVICES

ClusterIP services stop working, Canal install-cni cannot reach the API service, and agents stay NotReady.

Cause


On 6.16, IP_NF_TARGET_REJECT / IP6_NF_TARGET_REJECT came in through the legacy IP_NF_FILTER. On 6.18 they do not, and c8s.config never set them. The committed config-x86_64-c8s.snapshot was still from 6.16.12, so the gap was not visible.

Change


  • c8s.config and c8s-dev.config: set IP_NF_TARGET_REJECT, IP6_NF_TARGET_REJECT, NETFILTER_XT_MATCH_PHYSDEV, NETFILTER_XT_TARGET_NFLOG, NETFILTER_XT_CONNMARK to =y (deps already on: NFT_COMPAT, bridge netfilter; XT_CONNMARK selects NF_CONNTRACK_MARK).

  • Also NFT_LOG, so iptables-nft can render NFLOG rules (eedf6d70).

  • Regenerate config-x86_64-c8s.snapshot for 6.18.49 (non-dev confos kernel run with the org module cert). check-apparmor-config.sh passes.
  • Flannel VXLAN moves from UDP 8472 to 8473 (0548b956, rke2-canal-config.yaml). A nested guest's outer host often runs its own VXLAN on 8472 (outer Cilium on hil-tdx-1 does) and drops the inner overlay. This changes the measurement and the wire port for every deployment: firewalls and security groups must allow UDP 8473 between nodes. Documented in node-guest-image/README.md (412f5c87).

  • The regenerated snapshot no longer has the legacy iptables tables (IP_NF_IPTABLES_LEGACY, IP_NF_FILTER, IP_NF_NAT, IP_NF_MANGLE and their IPv6 equivalents). Anything that falls back to iptables-legacy fails; the image ships iptables-nft only.
  • Testing


  • Live probe on a 6.18 guest before the change: REJECT v4/v6, physdev, NFLOG, connmark failed to load.

  • Rebuilt dev image: resolved .config has all options =y. E2E on a two-node TDX cluster is in progress.

  • The Circle test cluster (confidential-metal#242) ran images built with these changes and passed its E2E and soak runs.

  • On that cluster's agent, the live ruleset (iptables-save, ip6tables-save, nft list ruleset) currently contains no physdev, NFLOG, CONNMARK or REJECT rule. REJECT is emitted by kube-proxy only for Services without endpoints, so it stays required. The other three rest on the load probe above; consider dropping any that no component emits.
  • Diff: 304 lines (+228 / -76) across 3 files Reviewer: joaosa Review duration: 421m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.63) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 304 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.342
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #742"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 63.3% (MEDIUM) · Higher = larger blast radius
    63.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.4% · Safe to merge
    27.4%