[PR #2768] [MERGED] policy: fix ssh usermap, fixing autogroup:nonroot #2848

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

📋 Pull Request Information

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

Base: mainHead: kradalby/ssh-nonroot


📝 Commits (1)

  • ecd1438 policy: fix ssh usermap, fixing autogroup:nonroot

📊 Changes

5 files changed (+687 additions, -184 deletions)

View changed files

📝 hscontrol/policy/policy_test.go (+111 -176)
📝 hscontrol/policy/v2/filter.go (+17 -7)
📝 hscontrol/policy/v2/filter_test.go (+409 -0)
📝 hscontrol/policy/v2/types.go (+22 -1)
📝 hscontrol/policy/v2/types_test.go (+128 -0)

📄 Description

This commit fixes a long standing misinterpretation of how the usermap should be returned to the client.

Fixes #2645


🔄 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/2768 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 9/10/2025 **Status:** ✅ Merged **Merged:** 9/12/2025 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `kradalby/ssh-nonroot` --- ### 📝 Commits (1) - [`ecd1438`](https://github.com/juanfont/headscale/commit/ecd14380dc28f8d919115b8d643fe4515a5734cc) policy: fix ssh usermap, fixing autogroup:nonroot ### 📊 Changes **5 files changed** (+687 additions, -184 deletions) <details> <summary>View changed files</summary> 📝 `hscontrol/policy/policy_test.go` (+111 -176) 📝 `hscontrol/policy/v2/filter.go` (+17 -7) 📝 `hscontrol/policy/v2/filter_test.go` (+409 -0) 📝 `hscontrol/policy/v2/types.go` (+22 -1) 📝 `hscontrol/policy/v2/types_test.go` (+128 -0) </details> ### 📄 Description This commit fixes a long standing misinterpretation of how the usermap should be returned to the client. Fixes #2645 --- <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:19:17 +01:00
adam closed this issue 2025-12-29 04:19:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2848