Skip to content

IPv6 policy routes follow the source prefix; first match wins; base_rev re-check; Module.TokenScope - #94

Merged
Cd1s merged 1 commit into
mainfrom
fix/policy-v6-base-rev-scopes
Sep 26, 2026
Merged

Cd1s merged 1 commit into
mainfrom
fix/policy-v6-base-rev-scopes

Conversation

@Cd1s

@Cd1s Cd1s commented Sep 26, 2026

Copy link
Copy Markdown
Owner

What

Verification

  • tools/ci.d/net.sh step 3, IPv6 with two uplinks where each "ISP" drops sources outside its own prefix:
    • a client address from wan2's prefix reaches the policy's destination via wan2;
    • a client address from wan's prefix stays on wan and never reaches wan2's ISP.
  • Go tests:
    • the updated rule texts, the set declarations and the refill script (garbage in the record never reaches nft);
    • the stale-candidate refusal;
    • modules declare only their own actions.
  • sh tools/ci.sh: ALL CHECKS PASSED.

Closes #63
Closes #64
Closes #68
Closes #69

https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr

…y re-checks base_rev; Module.TokenScope

- #63: with a delegated prefix from each WAN, an IPv6 policy rule only sends a connection to its WAN
  when the source is inside that WAN's prefix (@pd6_<index>, filled from what the dhcpcd hook records);
  otherwise the connection keeps the default route instead of being dropped by the ISP's source filter.
- #64: the first matching policy route decides (config order); net.routes / the 策略路由 page show how
  many addresses each domain policy learned.
- #68: the apply job compares the router.yaml rev the candidate was built from right before installing;
  a change in between refuses the apply (nothing written, no marker left).
- #69: modules declare their API actions' token scopes (Module.TokenScope); tokenActions keeps the core.
- Also: the proxy CI stress loop and the CI runtime-dir isolation are in main already.

Closes #63
Closes #64
Closes #68
Closes #69

Claude-Session: https://claude.ai/code/session_01HWeUjo1dmS7gBkCYHrVjCr
@Cd1s
Cd1s merged commit 6d328ca into main Sep 26, 2026
2 checks passed
@Cd1s
Cd1s deleted the fix/policy-v6-base-rev-scopes branch September 26, 2026 05:34
@Cd1s Cd1s mentioned this pull request Sep 26, 2026
52 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment