Skip to content

Commit 876da9a

Browse files
committed
feat: add method for revoking public key
Add it to the `.proto` definition of the auth service. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
1 parent 184f94d commit 876da9a

File tree

7 files changed

+666
-483
lines changed

7 files changed

+666
-483
lines changed

api/auth/auth.pb.go

Lines changed: 137 additions & 214 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/auth/auth.pb.gw.go

Lines changed: 135 additions & 121 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/auth/auth.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ message ConfirmPublicKeyRequest {
3838
string public_key_id = 1;
3939
}
4040

41+
message RevokePublicKeyRequest {
42+
string public_key_id = 1;
43+
}
44+
4145
service AuthService {
4246
rpc RegisterPublicKey(RegisterPublicKeyRequest) returns (RegisterPublicKeyResponse);
4347
rpc AwaitPublicKeyConfirmation(AwaitPublicKeyConfirmationRequest) returns (google.protobuf.Empty);
4448
rpc ConfirmPublicKey(ConfirmPublicKeyRequest) returns (google.protobuf.Empty);
49+
rpc RevokePublicKey(RevokePublicKeyRequest) returns (google.protobuf.Empty);
4550
}

api/auth/auth_grpc.pb.go

Lines changed: 63 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)