[PR #2572] [MERGED] feat: add autogroup:member, autogroup:tagged #2739

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

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2572
Author: @vdovhanych
Created: 5/7/2025
Status: Merged
Merged: 5/17/2025
Merged by: @kradalby

Base: mainHead: add-autogroup-member-and-tagged


📝 Commits (1)

  • 54d7e61 feat: add autogroup:member, autogroup:tagged

📊 Changes

6 files changed (+329 additions, -15 deletions)

View changed files

📝 .github/workflows/test-integration.yaml (+2 -0)
📝 CHANGELOG.md (+2 -0)
📝 docs/about/features.md (+1 -1)
📝 hscontrol/policy/v2/types.go (+81 -12)
📝 hscontrol/policy/v2/types_test.go (+131 -2)
📝 integration/acl_test.go (+112 -0)

📄 Description

This implements two autogroups autogroup:member and autogroup:tagged. I talked with @kradalby about leaving out autogroup:self for now, as that is a bit trickier in the end.

The logic of the autogroups and test is taken from the draft pr #2230, but it has been implemented for the new policy structure.

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

🔄 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/2572 **Author:** [@vdovhanych](https://github.com/vdovhanych) **Created:** 5/7/2025 **Status:** ✅ Merged **Merged:** 5/17/2025 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `add-autogroup-member-and-tagged` --- ### 📝 Commits (1) - [`54d7e61`](https://github.com/juanfont/headscale/commit/54d7e61f7f9001ac53197639de453aec47473b43) feat: add autogroup:member, autogroup:tagged ### 📊 Changes **6 files changed** (+329 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test-integration.yaml` (+2 -0) 📝 `CHANGELOG.md` (+2 -0) 📝 `docs/about/features.md` (+1 -1) 📝 `hscontrol/policy/v2/types.go` (+81 -12) 📝 `hscontrol/policy/v2/types_test.go` (+131 -2) 📝 `integration/acl_test.go` (+112 -0) </details> ### 📄 Description This implements two autogroups `autogroup:member` and `autogroup:tagged`. I talked with @kradalby about leaving out `autogroup:self` for now, as that is a bit trickier in the end. The logic of the autogroups and test is taken from the draft pr #2230, but it has been implemented for the new policy structure. <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [x] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [x] raised a GitHub issue or discussed it on the projects chat beforehand - [x] added unit tests - [x] added integration tests - [x] updated documentation if needed - [x] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> --- <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:42 +01:00
adam closed this issue 2025-12-29 04:18:42 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2739