[PR #2578] [MERGED] policy/v2: separate exit node and 0.0.0.0/0 routes #2742

Closed
opened 2025-12-29 04:18:43 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2578
Author: @kradalby
Created: 5/9/2025
Status: Merged
Merged: 5/9/2025
Merged by: @kradalby

Base: mainHead: kradalby/auto-approve-zero


📝 Commits (2)

  • 876abcf policy: add tests for route auto approval
  • cf38b18 policy/v2: separate exit node and 0.0.0.0/0 routes

📊 Changes

4 files changed (+873 additions, -40 deletions)

View changed files

hscontrol/policy/route_approval_test.go (+809 -0)
📝 hscontrol/policy/v2/policy.go (+26 -10)
📝 hscontrol/policy/v2/types.go (+10 -11)
📝 hscontrol/policy/v2/types_test.go (+28 -19)

📄 Description

Fixes #2568


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2578 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 5/9/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `kradalby/auto-approve-zero` --- ### 📝 Commits (2) - [`876abcf`](https://github.com/juanfont/headscale/commit/876abcf57d9516531496875a8fcc54b6ab0b6506) policy: add tests for route auto approval - [`cf38b18`](https://github.com/juanfont/headscale/commit/cf38b18f4340da40cb0858e0a8840b69195a8e74) policy/v2: separate exit node and 0.0.0.0/0 routes ### 📊 Changes **4 files changed** (+873 additions, -40 deletions) <details> <summary>View changed files</summary> ➕ `hscontrol/policy/route_approval_test.go` (+809 -0) 📝 `hscontrol/policy/v2/policy.go` (+26 -10) 📝 `hscontrol/policy/v2/types.go` (+10 -11) 📝 `hscontrol/policy/v2/types_test.go` (+28 -19) </details> ### 📄 Description Fixes #2568 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 04:18:43 +01:00
adam closed this issue 2025-12-29 04:18:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2742