Skip to content

Commit 7e98556

Browse files
committed
feat: support verifying payload using plain ecdsa keys
This is to allow using WebCrypto in the frontend code. Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
1 parent 876da9a commit 7e98556

File tree

7 files changed

+585
-20
lines changed

7 files changed

+585
-20
lines changed

api/auth/auth.pb.go

Lines changed: 100 additions & 20 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ package auth;
44
option go_package = "github.com/siderolabs/go-api-signature/api/auth";
55

66
import "google/protobuf/empty.proto";
7+
import "google/protobuf/timestamp.proto";
78

89
message PublicKey {
10+
message Plain {
11+
string key_pem = 1;
12+
google.protobuf.Timestamp not_before = 2;
13+
google.protobuf.Timestamp not_after = 3;
14+
}
15+
916
bytes pgp_data = 1;
1017
bytes webauthn_data = 2;
18+
Plain plain_key = 3;
1119
}
1220

1321
message Identity {

0 commit comments

Comments
 (0)