auth: ensure machines are allowed in when pak change (#2917)

This commit is contained in:
Kristoffer Dalby 2025-11-30 15:51:01 +01:00
parent 16d811b306
commit 3cf2d7195a
19 changed files with 695 additions and 118 deletions

View file

@ -55,6 +55,13 @@ service HeadscaleService {
};
}
rpc DeletePreAuthKey(DeletePreAuthKeyRequest)
returns (DeletePreAuthKeyResponse) {
option (google.api.http) = {
delete : "/api/v1/preauthkey"
};
}
rpc ListPreAuthKeys(ListPreAuthKeysRequest)
returns (ListPreAuthKeysResponse) {
option (google.api.http) = {

View file

@ -34,6 +34,13 @@ message ExpirePreAuthKeyRequest {
message ExpirePreAuthKeyResponse {}
message DeletePreAuthKeyRequest {
uint64 user = 1;
string key = 2;
}
message DeletePreAuthKeyResponse {}
message ListPreAuthKeysRequest { uint64 user = 1; }
message ListPreAuthKeysResponse { repeated PreAuthKey pre_auth_keys = 1; }