proto: add id field to API key expire/delete requests

Add id field to ExpireApiKeyRequest and DeleteApiKeyRequest messages.
This allows API keys to be expired or deleted by their database ID
in addition to the existing prefix-based lookup.

Updates #2986
This commit is contained in:
Kristoffer Dalby 2026-01-16 13:54:34 +00:00
parent 42bd9cd058
commit b01eda721c

View file

@ -16,7 +16,10 @@ message CreateApiKeyRequest { google.protobuf.Timestamp expiration = 1; }
message CreateApiKeyResponse { string api_key = 1; }
message ExpireApiKeyRequest { string prefix = 1; }
message ExpireApiKeyRequest {
string prefix = 1;
uint64 id = 2;
}
message ExpireApiKeyResponse {}
@ -24,6 +27,9 @@ message ListApiKeysRequest {}
message ListApiKeysResponse { repeated ApiKey api_keys = 1; }
message DeleteApiKeyRequest { string prefix = 1; }
message DeleteApiKeyRequest {
string prefix = 1;
uint64 id = 2;
}
message DeleteApiKeyResponse {}