[PR #2245] [CLOSED] #2176 Manual approval of the node #2567

Closed
opened 2025-12-29 03:21:50 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2245
Author: @hopleus
Created: 11/18/2024
Status: Closed

Base: mainHead: features/manual-approve-node


📝 Commits (10+)

  • 10efa39 Added approved fields and procedure to proto files
  • 6f3597f Added manual approval of nodes in the network
  • d671462 Corrected existing tests. New tests added
  • 651212c Corrected existing integration tests. New integration tests added
  • 48c3bd8 Corrected integration tests and github test-integration workflow
  • a4db154 Corrected unit tests and integration tests
  • 21fe706 Fixed errors in files according to golangci-lint rules
  • 9f3bed4 Fixed errors in files according to golangci-lint rules
  • 64e8cf9 Fixed the order of calling integration tests
  • ed10420 Corrected unit tests

📊 Changes

51 files changed (+2193 additions, -893 deletions)

View changed files

📝 .github/workflows/test-integration.yaml (+3 -0)
📝 CHANGELOG.md (+1 -0)
📝 cmd/headscale/cli/nodes.go (+46 -0)
📝 cmd/headscale/cli/preauthkeys.go (+10 -4)
📝 cmd/headscale/headscale_test.go (+1 -0)
📝 config-example.yaml (+6 -0)
docs/ref/node-management.md (+41 -0)
📝 gen/go/headscale/v1/headscale.pb.go (+224 -213)
📝 gen/go/headscale/v1/headscale.pb.gw.go (+103 -0)
📝 gen/go/headscale/v1/headscale_grpc.pb.go (+37 -0)
📝 gen/go/headscale/v1/node.pb.go (+301 -163)
📝 gen/go/headscale/v1/preauthkey.pb.go (+71 -51)
📝 gen/openapiv2/headscale/v1/headscale.swagger.json (+48 -0)
📝 hscontrol/app.go (+1 -0)
hscontrol/assets/oidc_callback_template.html (+0 -307)
📝 hscontrol/auth.go (+12 -2)
📝 hscontrol/db/db.go (+51 -3)
📝 hscontrol/db/db_test.go (+10 -5)
📝 hscontrol/db/ip.go (+11 -11)
📝 hscontrol/db/node.go (+26 -2)

...and 31 more files

📄 Description

  • 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

Fixes #2176


🔄 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/2245 **Author:** [@hopleus](https://github.com/hopleus) **Created:** 11/18/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `features/manual-approve-node` --- ### 📝 Commits (10+) - [`10efa39`](https://github.com/juanfont/headscale/commit/10efa39dbaaba5877840434265b89f793125ef2f) Added approved fields and procedure to proto files - [`6f3597f`](https://github.com/juanfont/headscale/commit/6f3597f12ac68e6033873312584f3214ecd1a0f1) Added manual approval of nodes in the network - [`d671462`](https://github.com/juanfont/headscale/commit/d671462811972cf317d5388dbefb439cb5f74cdf) Corrected existing tests. New tests added - [`651212c`](https://github.com/juanfont/headscale/commit/651212c201e92f437b723909dbcbcc064342f64c) Corrected existing integration tests. New integration tests added - [`48c3bd8`](https://github.com/juanfont/headscale/commit/48c3bd8f5505e477e6c60e6d05330ce08cb4e861) Corrected integration tests and github test-integration workflow - [`a4db154`](https://github.com/juanfont/headscale/commit/a4db1548d3d3d468853bc2ca358e1f758715bcaf) Corrected unit tests and integration tests - [`21fe706`](https://github.com/juanfont/headscale/commit/21fe7067ef0d5cbd52b2cc0d5cfb2089c3e21ec5) Fixed errors in files according to golangci-lint rules - [`9f3bed4`](https://github.com/juanfont/headscale/commit/9f3bed4ad77382ddd94270e2b7401898ba63d0c2) Fixed errors in files according to golangci-lint rules - [`64e8cf9`](https://github.com/juanfont/headscale/commit/64e8cf9001810ef078722628b5cb4a9ef21fb482) Fixed the order of calling integration tests - [`ed10420`](https://github.com/juanfont/headscale/commit/ed1042076abeb87ef43750227b659044a0864b0b) Corrected unit tests ### 📊 Changes **51 files changed** (+2193 additions, -893 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/test-integration.yaml` (+3 -0) 📝 `CHANGELOG.md` (+1 -0) 📝 `cmd/headscale/cli/nodes.go` (+46 -0) 📝 `cmd/headscale/cli/preauthkeys.go` (+10 -4) 📝 `cmd/headscale/headscale_test.go` (+1 -0) 📝 `config-example.yaml` (+6 -0) ➕ `docs/ref/node-management.md` (+41 -0) 📝 `gen/go/headscale/v1/headscale.pb.go` (+224 -213) 📝 `gen/go/headscale/v1/headscale.pb.gw.go` (+103 -0) 📝 `gen/go/headscale/v1/headscale_grpc.pb.go` (+37 -0) 📝 `gen/go/headscale/v1/node.pb.go` (+301 -163) 📝 `gen/go/headscale/v1/preauthkey.pb.go` (+71 -51) 📝 `gen/openapiv2/headscale/v1/headscale.swagger.json` (+48 -0) 📝 `hscontrol/app.go` (+1 -0) ➖ `hscontrol/assets/oidc_callback_template.html` (+0 -307) 📝 `hscontrol/auth.go` (+12 -2) 📝 `hscontrol/db/db.go` (+51 -3) 📝 `hscontrol/db/db_test.go` (+10 -5) 📝 `hscontrol/db/ip.go` (+11 -11) 📝 `hscontrol/db/node.go` (+26 -2) _...and 31 more files_ </details> ### 📄 Description <!-- 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. --> Fixes #2176 --- <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 03:21:50 +01:00
adam closed this issue 2025-12-29 03:21:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2567