[PR #2460] Add ExtendNodeExpiration functionality to gRPC and CLI #2675

Open
opened 2025-12-29 03:22:19 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2460
Author: @FlorinPeter
Created: 3/4/2025
Status: 🔄 Open

Base: mainHead: add-extend-expiration


📝 Commits (1)

  • c9d7f25 Add ExtendNodeExpiration functionality to gRPC and CLI

📊 Changes

9 files changed (+725 additions, -231 deletions)

View changed files

📝 cmd/headscale/cli/nodes.go (+62 -0)
📝 gen/go/headscale/v1/headscale.pb.go (+91 -86)
📝 gen/go/headscale/v1/headscale.pb.gw.go (+207 -48)
📝 gen/go/headscale/v1/headscale_grpc.pb.go (+62 -24)
📝 gen/go/headscale/v1/node.pb.go (+178 -73)
📝 gen/openapiv2/headscale/v1/headscale.swagger.json (+56 -0)
📝 hscontrol/grpcv1.go (+53 -0)
📝 proto/headscale/v1/headscale.proto (+7 -0)
📝 proto/headscale/v1/node.proto (+9 -0)

📄 Description

Implement ExtendNodeExpiration RPC, allowing users to extend a node's expiration. Update the CLI to include the extend-expiration command with required fields. Validate inputs, update the database, and notify peers of expiration changes.

  • 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/2460 **Author:** [@FlorinPeter](https://github.com/FlorinPeter) **Created:** 3/4/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-extend-expiration` --- ### 📝 Commits (1) - [`c9d7f25`](https://github.com/juanfont/headscale/commit/c9d7f253c22be0cdc33ea19e2fef011e25e18c38) Add ExtendNodeExpiration functionality to gRPC and CLI ### 📊 Changes **9 files changed** (+725 additions, -231 deletions) <details> <summary>View changed files</summary> 📝 `cmd/headscale/cli/nodes.go` (+62 -0) 📝 `gen/go/headscale/v1/headscale.pb.go` (+91 -86) 📝 `gen/go/headscale/v1/headscale.pb.gw.go` (+207 -48) 📝 `gen/go/headscale/v1/headscale_grpc.pb.go` (+62 -24) 📝 `gen/go/headscale/v1/node.pb.go` (+178 -73) 📝 `gen/openapiv2/headscale/v1/headscale.swagger.json` (+56 -0) 📝 `hscontrol/grpcv1.go` (+53 -0) 📝 `proto/headscale/v1/headscale.proto` (+7 -0) 📝 `proto/headscale/v1/node.proto` (+9 -0) </details> ### 📄 Description Implement ExtendNodeExpiration RPC, allowing users to extend a node's expiration. Update the CLI to include the `extend-expiration` command with required fields. Validate inputs, update the database, and notify peers of expiration changes. <!-- 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 - [ ] 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 <!-- 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 03:22:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2675