[PR #80] [MERGED] Add CLI command to mark preauthkeys as expired #1244

Closed
opened 2025-12-29 02:29:26 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/80
Author: @juanfont
Created: 8/8/2021
Status: Merged
Merged: 8/8/2021
Merged by: @juanfont

Base: mainHead: delete-pak


📝 Commits (4)

📊 Changes

3 files changed (+79 additions, -0 deletions)

View changed files

📝 cmd/headscale/cli/preauthkeys.go (+40 -0)
📝 preauth_keys.go (+22 -0)
📝 preauth_keys_test.go (+17 -0)

📄 Description

As pointed out in #78, we can't delete a preauthkey. This PR implements a similar functionality, by marking a preauthkey as expired.


🔄 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/80 **Author:** [@juanfont](https://github.com/juanfont) **Created:** 8/8/2021 **Status:** ✅ Merged **Merged:** 8/8/2021 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `delete-pak` --- ### 📝 Commits (4) - [`226cb89`](https://github.com/juanfont/headscale/commit/226cb89d97da6ab77ec4afecda18c4e7b5b5bd3a) Added func to expire PAKs - [`05e08e0`](https://github.com/juanfont/headscale/commit/05e08e0ac724eeda8336223c9578d08af4f22c56) Added cmd to expire preauth keys (requested in #78) - [`033136c`](https://github.com/juanfont/headscale/commit/033136cb9a1cace0ec79b6ef7c61fcf6549a972f) fixed linting - [`0124899`](https://github.com/juanfont/headscale/commit/01248997595abf8d8a24c4047a75af322acd07c4) fixed linting x 2 ### 📊 Changes **3 files changed** (+79 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/headscale/cli/preauthkeys.go` (+40 -0) 📝 `preauth_keys.go` (+22 -0) 📝 `preauth_keys_test.go` (+17 -0) </details> ### 📄 Description As pointed out in #78, we can't delete a preauthkey. This PR implements a similar functionality, by marking a preauthkey as expired. --- <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 02:29:26 +01:00
adam closed this issue 2025-12-29 02:29:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1244