From 084994ee3901ba0739e4289ae15d3d37d89e344b Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Mon, 12 Oct 2026 12:05:48 +0200 Subject: [PATCH] kms: add `Client.ImportKeyRing` API for importing a full key ring This commit adds the `ImportKeyRingRequest` type and the `Client.ImportKeyRing` API. It imports a key with all of its versions in a single request, so restoring or migrating a key ring is atomic instead of one `ImportKey` call per version. Each `ImportKeyVersion` specifies its version number explicitly. The KMS server verifies that version numbers are non-zero and unique. This requires server support for the new `KEY:IMPORTRING` (211) command. Signed-off-by: Andreas Auernhammer --- .github/workflows/go.yml | 2 +- go.work | 2 +- kes/go.mod | 2 +- kms/client-examples_test.go | 30 + kms/client.go | 28 + kms/cmds/command.go | 12 +- kms/go.mod | 6 +- kms/go.sum | 4 +- kms/protobuf/log.pb.go | 118 +--- kms/protobuf/request.pb.go | 1321 +++++++++++++---------------------- kms/protobuf/request.proto | 19 + kms/protobuf/response.pb.go | 962 ++++++++----------------- kms/protobuf/rule.pb.go | 96 +-- kms/request.go | 69 ++ 14 files changed, 1035 insertions(+), 1636 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e40c14d..690b4e2 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -60,7 +60,7 @@ jobs: - name: Get govulncheck # Pinned because govulncheck's Go floor moves ahead of the toolchain # this workflow derives from kms/go.mod: v1.8.0 requires Go 1.26. - run: go install golang.org/x/vuln/cmd/govulncheck@v1.7.0 + run: go install golang.org/x/vuln/cmd/govulncheck@latest shell: bash - name: Run govulncheck env: diff --git a/go.work b/go.work index 70d7023..cd4d28a 100644 --- a/go.work +++ b/go.work @@ -1,4 +1,4 @@ -go 1.25.0 +go 1.26 use ( ./kes diff --git a/kes/go.mod b/kes/go.mod index 46a2c64..d92ffef 100644 --- a/kes/go.mod +++ b/kes/go.mod @@ -1,6 +1,6 @@ module github.com/minio/kms-go/kes -go 1.25 +go 1.26 require ( aead.dev/mem v0.2.0 diff --git a/kms/client-examples_test.go b/kms/client-examples_test.go index a559348..f6c1480 100644 --- a/kms/client-examples_test.go +++ b/kms/client-examples_test.go @@ -171,6 +171,36 @@ func ExampleClient_CreateEnclave() { } } +// ExampleClient_ImportKeyRing shows how to import a key with all of its +// versions in a single request. +func ExampleClient_ImportKeyRing() { + key, err := mtls.ParsePrivateKey("k1:d7cY_5k8HbBGkZpoy2hGmvkxg83QDBXsA_nFXDfTk2E") + if err != nil { + log.Fatalf("Failed to parse KMS API key: %v", err) + } + + client, err := kms.NewClient(&kms.Config{ + Endpoints: []string{ + "127.0.0.1:7373", + }, + APIKey: key, + }) + if err != nil { + log.Fatalf("Failed to create KMS client: %v", err) + } + + request := &kms.ImportKeyRingRequest{ + Name: "my-key", + Versions: []kms.ImportKeyVersion{ + {Version: 1, Type: kms.AES256, Key: make([]byte, 32)}, + {Version: 2, Type: kms.AES256, Key: make([]byte, 32)}, + }, + } + if err = client.ImportKeyRing(context.TODO(), "minio-tenant-foo", request); err != nil { + log.Fatalf("Failed to import key ring '%s': %v", request.Name, err) + } +} + // ExampleClient_DeleteEnclave shows how to delete an existing enclave. func ExampleClient_DeleteEnclave() { key, err := mtls.ParsePrivateKey("k1:d7cY_5k8HbBGkZpoy2hGmvkxg83QDBXsA_nFXDfTk2E") diff --git a/kms/client.go b/kms/client.go index 8c1edc8..66ea95e 100644 --- a/kms/client.go +++ b/kms/client.go @@ -1207,6 +1207,34 @@ func (c *Client) ImportKey(ctx context.Context, enclave string, req *ImportKeyRe return resp.Body.Close() } +// ImportKeyRing imports an existing key ring, i.e. a key with all of its +// versions, with the name req.Name into the given enclave in a single +// request. Imported keys are marked by the KMS server to distinguish them +// from keys that never left the KMS boundary. +// +// It returns ErrEnclaveNotFound if no such enclave exists and ErrKeyExists +// if such a key already exists wrapped in a HostError. +// +// The returned error is of type *HostError. +func (c *Client) ImportKeyRing(ctx context.Context, enclave string, req *ImportKeyRingRequest) error { + p := pool.Get(128 + 64*len(req.Versions)) + defer pool.Put(p) + + body, err := cmds.Encode((*p)[:0], cmds.KeyImportRing, req) + if err != nil { + return err + } + + resp, err := c.Send(ctx, &Request{ + Enclave: enclave, + Body: body, + }) + if err != nil { + return err + } + return resp.Body.Close() +} + // KeyStatus returns status information about one or multiple keys // within the enclave. Without any requests, KeyStatus returns an // empty slice and no error. diff --git a/kms/cmds/command.go b/kms/cmds/command.go index b69a4a4..4c81187 100644 --- a/kms/cmds/command.go +++ b/kms/cmds/command.go @@ -33,6 +33,7 @@ const ( KeyList Command = 208 KeyListVersions Command = 209 KeyMAC Command = 210 + KeyImportRing Command = 211 PolicyCreate Command = 301 PolicyDelete Command = 302 @@ -123,9 +124,10 @@ var isWrite = map[Command]struct{}{ // Commands that change state on a KMS serve EnclaveCreate: {}, EnclaveDelete: {}, - KeyCreate: {}, - KeyDelete: {}, - KeyImport: {}, + KeyCreate: {}, + KeyDelete: {}, + KeyImport: {}, + KeyImportRing: {}, PolicyCreate: {}, PolicyDelete: {}, @@ -164,6 +166,8 @@ var cmdTexts = map[Command]string{ KeyCreate: "KEY:CREATE", KeyDelete: "KEY:DELETE", + KeyImport: "KEY:IMPORT", + KeyImportRing: "KEY:IMPORTRING", KeyStatus: "KEY:STATUS", KeyEncrypt: "KEY:ENCRYPT", KeyDecrypt: "KEY:DECRYPT", @@ -200,6 +204,8 @@ var textCmds = map[string]Command{ "KEY:CREATE": KeyCreate, "KEY:DELETE": KeyDelete, + "KEY:IMPORT": KeyImport, + "KEY:IMPORTRING": KeyImportRing, "KEY:STATUS": KeyStatus, "KEY:ENCRYPT": KeyEncrypt, "KEY:DECRYPT": KeyDecrypt, diff --git a/kms/go.mod b/kms/go.mod index 313b233..660e77c 100644 --- a/kms/go.mod +++ b/kms/go.mod @@ -1,11 +1,13 @@ module github.com/minio/kms-go/kms -go 1.25 +go 1.26 + +toolchain go1.26.9 require ( aead.dev/mem v0.2.0 aead.dev/mtls v0.4.0 - google.golang.org/protobuf v1.36.11 + google.golang.org/protobuf v1.36.12 ) tool google.golang.org/protobuf/cmd/protoc-gen-go diff --git a/kms/go.sum b/kms/go.sum index 7f4ef11..a883df8 100644 --- a/kms/go.sum +++ b/kms/go.sum @@ -4,5 +4,5 @@ aead.dev/mtls v0.4.0 h1:s+nuIKH0ZZIZ1RsfOjYVx0q2OcfKFKS3UaJGngrTLFY= aead.dev/mtls v0.4.0/go.mod h1:ZuSTM2+kagQsjaWoHn7yTU36MAaEaH/5Aq5XR4uYMk4= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= -google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +google.golang.org/protobuf v1.36.12 h1:pJOKDDOyeXErUroCihFAd5LQuwXBSpVnKGrj5o/fwxc= +google.golang.org/protobuf v1.36.12/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= diff --git a/kms/protobuf/log.pb.go b/kms/protobuf/log.pb.go index d83fd5d..3a58a81 100644 --- a/kms/protobuf/log.pb.go +++ b/kms/protobuf/log.pb.go @@ -4,8 +4,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.29.3 +// protoc-gen-go v1.36.12 +// protoc v7.36.2 // source: log.proto package protobuf @@ -16,6 +16,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -26,10 +27,7 @@ const ( ) type LogRecord struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // The log level of the event. Level int32 `protobuf:"zigzag32,1,opt,name=Level,json=level,proto3" json:"Level,omitempty"` // The time at which the event was produced. @@ -42,16 +40,16 @@ type LogRecord struct { // calls higher up the call stack. // // If empty, no stack trace has been captured. - Trace []*LogRecord_StackFrame `protobuf:"bytes,4,rep,name=Trace,json=trace,proto3" json:"Trace,omitempty"` + Trace []*LogRecord_StackFrame `protobuf:"bytes,4,rep,name=Trace,json=trace,proto3" json:"Trace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LogRecord) Reset() { *x = LogRecord{} - if protoimpl.UnsafeEnabled { - mi := &file_log_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_log_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LogRecord) String() string { @@ -62,7 +60,7 @@ func (*LogRecord) ProtoMessage() {} func (x *LogRecord) ProtoReflect() protoreflect.Message { mi := &file_log_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -106,25 +104,22 @@ func (x *LogRecord) GetTrace() []*LogRecord_StackFrame { } type LogRecord_StackFrame struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Function is the package path-qualified function name containing the // source line. If non-empty, this string uniquely identifies a single // function in the program. This may be the empty string if not known. - Function string `protobuf:"bytes,1,opt,name=Function,json=function,proto3" json:"Function,omitempty"` - File string `protobuf:"bytes,2,opt,name=File,json=file,proto3" json:"File,omitempty"` - Line uint32 `protobuf:"varint,3,opt,name=Line,json=line,proto3" json:"Line,omitempty"` + Function string `protobuf:"bytes,1,opt,name=Function,json=function,proto3" json:"Function,omitempty"` + File string `protobuf:"bytes,2,opt,name=File,json=file,proto3" json:"File,omitempty"` + Line uint32 `protobuf:"varint,3,opt,name=Line,json=line,proto3" json:"Line,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LogRecord_StackFrame) Reset() { *x = LogRecord_StackFrame{} - if protoimpl.UnsafeEnabled { - mi := &file_log_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_log_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LogRecord_StackFrame) String() string { @@ -135,7 +130,7 @@ func (*LogRecord_StackFrame) ProtoMessage() {} func (x *LogRecord_StackFrame) ProtoReflect() protoreflect.Message { mi := &file_log_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -173,44 +168,34 @@ func (x *LogRecord_StackFrame) GetLine() uint32 { var File_log_proto protoreflect.FileDescriptor -var file_log_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6d, 0x69, 0x6e, - 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf4, 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x67, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x11, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x2e, 0x0a, 0x04, 0x54, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x63, 0x65, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, - 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, - 0x46, 0x72, 0x61, 0x6d, 0x65, 0x52, 0x05, 0x74, 0x72, 0x61, 0x63, 0x65, 0x1a, 0x50, 0x0a, 0x0a, - 0x53, 0x74, 0x61, 0x63, 0x6b, 0x46, 0x72, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, - 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4c, 0x69, - 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x0b, - 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} +const file_log_proto_rawDesc = "" + + "\n" + + "\tlog.proto\x12\tminio.kms\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf4\x01\n" + + "\tLogRecord\x12\x14\n" + + "\x05Level\x18\x01 \x01(\x11R\x05level\x12.\n" + + "\x04Time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x04time\x12\x18\n" + + "\aMessage\x18\x03 \x01(\tR\amessage\x125\n" + + "\x05Trace\x18\x04 \x03(\v2\x1f.minio.kms.LogRecord.StackFrameR\x05trace\x1aP\n" + + "\n" + + "StackFrame\x12\x1a\n" + + "\bFunction\x18\x01 \x01(\tR\bfunction\x12\x12\n" + + "\x04File\x18\x02 \x01(\tR\x04file\x12\x12\n" + + "\x04Line\x18\x03 \x01(\rR\x04lineB\vZ\t/protobufb\x06proto3" var ( file_log_proto_rawDescOnce sync.Once - file_log_proto_rawDescData = file_log_proto_rawDesc + file_log_proto_rawDescData []byte ) func file_log_proto_rawDescGZIP() []byte { file_log_proto_rawDescOnce.Do(func() { - file_log_proto_rawDescData = protoimpl.X.CompressGZIP(file_log_proto_rawDescData) + file_log_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_log_proto_rawDesc), len(file_log_proto_rawDesc))) }) return file_log_proto_rawDescData } var file_log_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_log_proto_goTypes = []interface{}{ +var file_log_proto_goTypes = []any{ (*LogRecord)(nil), // 0: minio.kms.LogRecord (*LogRecord_StackFrame)(nil), // 1: minio.kms.LogRecord.StackFrame (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp @@ -230,37 +215,11 @@ func file_log_proto_init() { if File_log_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_log_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogRecord); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_log_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogRecord_StackFrame); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_log_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_log_proto_rawDesc), len(file_log_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, @@ -271,7 +230,6 @@ func file_log_proto_init() { MessageInfos: file_log_proto_msgTypes, }.Build() File_log_proto = out.File - file_log_proto_rawDesc = nil file_log_proto_goTypes = nil file_log_proto_depIdxs = nil } diff --git a/kms/protobuf/request.pb.go b/kms/protobuf/request.pb.go index 005b4d7..9fe2dd1 100644 --- a/kms/protobuf/request.pb.go +++ b/kms/protobuf/request.pb.go @@ -4,8 +4,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.29.3 +// protoc-gen-go v1.36.12 +// protoc v7.36.2 // source: request.proto package protobuf @@ -16,6 +16,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -26,18 +27,16 @@ const ( ) type ClusterStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ClusterStatusRequest) Reset() { *x = ClusterStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterStatusRequest) String() string { @@ -48,7 +47,7 @@ func (*ClusterStatusRequest) ProtoMessage() {} func (x *ClusterStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -64,10 +63,7 @@ func (*ClusterStatusRequest) Descriptor() ([]byte, []int) { } type ListRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Prefix is an optional prefix to start the listing from. // For example, an application may want to list all keys // starting with "foo", like "foo-1" and "foobar". @@ -90,16 +86,16 @@ type ListRequest struct { // a list operation. If <= 0, no limit is specified // and the server limits listing results to a // reasonable max. size. - Limit uint32 `protobuf:"varint,3,opt,name=Limit,json=limit,proto3" json:"Limit,omitempty"` + Limit uint32 `protobuf:"varint,3,opt,name=Limit,json=limit,proto3" json:"Limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListRequest) Reset() { *x = ListRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListRequest) String() string { @@ -110,7 +106,7 @@ func (*ListRequest) ProtoMessage() {} func (x *ListRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -147,20 +143,17 @@ func (x *ListRequest) GetLimit() uint32 { } type AddClusterNodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Host string `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"` unknownFields protoimpl.UnknownFields - - Host string `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AddClusterNodeRequest) Reset() { *x = AddClusterNodeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddClusterNodeRequest) String() string { @@ -171,7 +164,7 @@ func (*AddClusterNodeRequest) ProtoMessage() {} func (x *AddClusterNodeRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -194,21 +187,18 @@ func (x *AddClusterNodeRequest) GetHost() string { } type RemoveClusterNodeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Host string `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"` - DeleteClusterOnHost bool `protobuf:"varint,2,opt,name=DeleteClusterOnHost,json=delete_cluster_on_host,proto3" json:"DeleteClusterOnHost,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Host string `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"` + DeleteClusterOnHost bool `protobuf:"varint,2,opt,name=DeleteClusterOnHost,json=delete_cluster_on_host,proto3" json:"DeleteClusterOnHost,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveClusterNodeRequest) Reset() { *x = RemoveClusterNodeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveClusterNodeRequest) String() string { @@ -219,7 +209,7 @@ func (*RemoveClusterNodeRequest) ProtoMessage() {} func (x *RemoveClusterNodeRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -249,24 +239,21 @@ func (x *RemoveClusterNodeRequest) GetDeleteClusterOnHost() bool { } type EditClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Host string `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Host string `protobuf:"bytes,1,opt,name=Host,json=host,proto3" json:"Host,omitempty"` // RemoveIDs is a list of KMS server IDs that are removed from // the cluster definition of the KMS server that receives the // request. - RemoveIDs []uint32 `protobuf:"varint,2,rep,packed,name=RemoveIDs,json=remove,proto3" json:"RemoveIDs,omitempty"` + RemoveIDs []uint32 `protobuf:"varint,2,rep,packed,name=RemoveIDs,json=remove,proto3" json:"RemoveIDs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EditClusterRequest) Reset() { *x = EditClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EditClusterRequest) String() string { @@ -277,7 +264,7 @@ func (*EditClusterRequest) ProtoMessage() {} func (x *EditClusterRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -307,24 +294,21 @@ func (x *EditClusterRequest) GetRemoveIDs() []uint32 { } type AddHSMRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the HSM to be add. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Overwrite indicates whether the server should overwrite // any existing entry for the HSM. - Overwrite bool `protobuf:"varint,2,opt,name=Overwrite,json=overwrite,proto3" json:"Overwrite,omitempty"` + Overwrite bool `protobuf:"varint,2,opt,name=Overwrite,json=overwrite,proto3" json:"Overwrite,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddHSMRequest) Reset() { *x = AddHSMRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AddHSMRequest) String() string { @@ -335,7 +319,7 @@ func (*AddHSMRequest) ProtoMessage() {} func (x *AddHSMRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -365,21 +349,18 @@ func (x *AddHSMRequest) GetOverwrite() bool { } type RemoveHSMRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the HSM to be removed. - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveHSMRequest) Reset() { *x = RemoveHSMRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoveHSMRequest) String() string { @@ -390,7 +371,7 @@ func (*RemoveHSMRequest) ProtoMessage() {} func (x *RemoveHSMRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -413,20 +394,17 @@ func (x *RemoveHSMRequest) GetName() string { } type CreateEnclaveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateEnclaveRequest) Reset() { *x = CreateEnclaveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateEnclaveRequest) String() string { @@ -437,7 +415,7 @@ func (*CreateEnclaveRequest) ProtoMessage() {} func (x *CreateEnclaveRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -460,20 +438,17 @@ func (x *CreateEnclaveRequest) GetName() string { } type DeleteEnclaveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteEnclaveRequest) Reset() { *x = DeleteEnclaveRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteEnclaveRequest) String() string { @@ -484,7 +459,7 @@ func (*DeleteEnclaveRequest) ProtoMessage() {} func (x *DeleteEnclaveRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -507,20 +482,17 @@ func (x *DeleteEnclaveRequest) GetName() string { } type EnclaveStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *EnclaveStatusRequest) Reset() { *x = EnclaveStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnclaveStatusRequest) String() string { @@ -531,7 +503,7 @@ func (*EnclaveStatusRequest) ProtoMessage() {} func (x *EnclaveStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -554,10 +526,7 @@ func (x *EnclaveStatusRequest) GetName() string { } type LogRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // The server only sends log records with an equal or greater // log level. The default level is slog.LevelInfo. Level int32 `protobuf:"zigzag32,1,opt,name=Level,json=level,proto3" json:"Level,omitempty"` @@ -570,16 +539,16 @@ type LogRequest struct { Since *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=Since,json=since,proto3" json:"Since,omitempty"` // The server sends only stack traces for records with an // equal or greater log level. - TraceLevel int32 `protobuf:"zigzag32,4,opt,name=TraceLevel,json=trace_level,proto3" json:"TraceLevel,omitempty"` + TraceLevel int32 `protobuf:"zigzag32,4,opt,name=TraceLevel,json=trace_level,proto3" json:"TraceLevel,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LogRequest) Reset() { *x = LogRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *LogRequest) String() string { @@ -590,7 +559,7 @@ func (*LogRequest) ProtoMessage() {} func (x *LogRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -634,25 +603,22 @@ func (x *LogRequest) GetTraceLevel() int32 { } type CreateKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Type is the type of the created key. If not set, the KMS server picks // a key type. Type string `protobuf:"bytes,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` // AddVersion indicates whether a new key version is created. - AddVersion bool `protobuf:"varint,3,opt,name=AddVersion,json=add_version,proto3" json:"AddVersion,omitempty"` + AddVersion bool `protobuf:"varint,3,opt,name=AddVersion,json=add_version,proto3" json:"AddVersion,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateKeyRequest) Reset() { *x = CreateKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateKeyRequest) String() string { @@ -663,7 +629,7 @@ func (*CreateKeyRequest) ProtoMessage() {} func (x *CreateKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -700,24 +666,21 @@ func (x *CreateKeyRequest) GetAddVersion() bool { } type ImportKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Type is the type of the created key. If not set, the KMS server picks // a key type. - Type string `protobuf:"bytes,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` - Key []byte `protobuf:"bytes,3,opt,name=Key,json=key,proto3" json:"Key,omitempty"` + Type string `protobuf:"bytes,2,opt,name=Type,json=type,proto3" json:"Type,omitempty"` + Key []byte `protobuf:"bytes,3,opt,name=Key,json=key,proto3" json:"Key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ImportKeyRequest) Reset() { *x = ImportKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportKeyRequest) String() string { @@ -728,7 +691,7 @@ func (*ImportKeyRequest) ProtoMessage() {} func (x *ImportKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_request_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -764,26 +727,140 @@ func (x *ImportKeyRequest) GetKey() []byte { return nil } -type DeleteKeyRequest struct { - state protoimpl.MessageState +type ImportKeyRingVersion struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Type is the type of the key version. If not set, the KMS server picks + // a key type. + Type string `protobuf:"bytes,1,opt,name=Type,json=type,proto3" json:"Type,omitempty"` + Key []byte `protobuf:"bytes,2,opt,name=Key,json=key,proto3" json:"Key,omitempty"` + // Version is the version number of the key version. It must be non-zero + // and unique within the key ring; the KMS server verifies this. + Version uint32 `protobuf:"varint,3,opt,name=Version,json=version,proto3" json:"Version,omitempty"` + unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache +} + +func (x *ImportKeyRingVersion) Reset() { + *x = ImportKeyRingVersion{} + mi := &file_request_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImportKeyRingVersion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImportKeyRingVersion) ProtoMessage() {} + +func (x *ImportKeyRingVersion) ProtoReflect() protoreflect.Message { + mi := &file_request_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ImportKeyRingVersion.ProtoReflect.Descriptor instead. +func (*ImportKeyRingVersion) Descriptor() ([]byte, []int) { + return file_request_proto_rawDescGZIP(), []int{13} +} + +func (x *ImportKeyRingVersion) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *ImportKeyRingVersion) GetKey() []byte { + if x != nil { + return x.Key + } + return nil +} + +func (x *ImportKeyRingVersion) GetVersion() uint32 { + if x != nil { + return x.Version + } + return 0 +} + +type ImportKeyRingRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + // Versions are the key versions of the key ring. + Versions []*ImportKeyRingVersion `protobuf:"bytes,2,rep,name=Versions,json=versions,proto3" json:"Versions,omitempty"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` +func (x *ImportKeyRingRequest) Reset() { + *x = ImportKeyRingRequest{} + mi := &file_request_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImportKeyRingRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImportKeyRingRequest) ProtoMessage() {} + +func (x *ImportKeyRingRequest) ProtoReflect() protoreflect.Message { + mi := &file_request_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ImportKeyRingRequest.ProtoReflect.Descriptor instead. +func (*ImportKeyRingRequest) Descriptor() ([]byte, []int) { + return file_request_proto_rawDescGZIP(), []int{14} +} + +func (x *ImportKeyRingRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ImportKeyRingRequest) GetVersions() []*ImportKeyRingVersion { + if x != nil { + return x.Versions + } + return nil +} + +type DeleteKeyRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version identifies the key version within the key ring to remove. // If zero, the latest key version is removed. Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` // AllVersions indicates whether all key versions should be removed. - AllVersions bool `protobuf:"varint,3,opt,name=AllVersions,json=all_versions,proto3" json:"AllVersions,omitempty"` + AllVersions bool `protobuf:"varint,3,opt,name=AllVersions,json=all_versions,proto3" json:"AllVersions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteKeyRequest) Reset() { *x = DeleteKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteKeyRequest) String() string { @@ -793,8 +870,8 @@ func (x *DeleteKeyRequest) String() string { func (*DeleteKeyRequest) ProtoMessage() {} func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[15] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -806,7 +883,7 @@ func (x *DeleteKeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteKeyRequest.ProtoReflect.Descriptor instead. func (*DeleteKeyRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{13} + return file_request_proto_rawDescGZIP(), []int{15} } func (x *DeleteKeyRequest) GetName() string { @@ -831,23 +908,20 @@ func (x *DeleteKeyRequest) GetAllVersions() bool { } type KeyStatusRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version identifies the key version within the key ring. // If zero, refers to the latest, most recent, key version. - Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` + Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *KeyStatusRequest) Reset() { *x = KeyStatusRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KeyStatusRequest) String() string { @@ -857,8 +931,8 @@ func (x *KeyStatusRequest) String() string { func (*KeyStatusRequest) ProtoMessage() {} func (x *KeyStatusRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[16] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -870,7 +944,7 @@ func (x *KeyStatusRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use KeyStatusRequest.ProtoReflect.Descriptor instead. func (*KeyStatusRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{14} + return file_request_proto_rawDescGZIP(), []int{16} } func (x *KeyStatusRequest) GetName() string { @@ -888,11 +962,8 @@ func (x *KeyStatusRequest) GetVersion() uint32 { } type EncryptRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version identifies the key version within the key ring used to encrypt // the plaintext. If zero, the latest key version is used. Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` @@ -905,15 +976,15 @@ type EncryptRequest struct { // Associated data should describe the context of the plaintext data. For example, // the name of the file that gets encrypted. AssociatedData []byte `protobuf:"bytes,4,opt,name=AssociatedData,json=associated_data,proto3" json:"AssociatedData,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EncryptRequest) Reset() { *x = EncryptRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncryptRequest) String() string { @@ -923,8 +994,8 @@ func (x *EncryptRequest) String() string { func (*EncryptRequest) ProtoMessage() {} func (x *EncryptRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[17] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -936,7 +1007,7 @@ func (x *EncryptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead. func (*EncryptRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{15} + return file_request_proto_rawDescGZIP(), []int{17} } func (x *EncryptRequest) GetName() string { @@ -968,11 +1039,8 @@ func (x *EncryptRequest) GetAssociatedData() []byte { } type GenerateKeyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version identifies the key version within the key ring used to generate // the data encryption key. If zero, the latest key version is used. Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` @@ -986,16 +1054,16 @@ type GenerateKeyRequest struct { AssociatedData []byte `protobuf:"bytes,3,opt,name=AssociatedData,json=associated_data,proto3" json:"AssociatedData,omitempty"` // Length is the length of the generated plaintext data encryption key in bytes. // At most 1024 (8192 bits). If zero, defaults to 32 (256 bits). - Length uint32 `protobuf:"varint,4,opt,name=Length,json=length,proto3" json:"Length,omitempty"` + Length uint32 `protobuf:"varint,4,opt,name=Length,json=length,proto3" json:"Length,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GenerateKeyRequest) Reset() { *x = GenerateKeyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateKeyRequest) String() string { @@ -1005,8 +1073,8 @@ func (x *GenerateKeyRequest) String() string { func (*GenerateKeyRequest) ProtoMessage() {} func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[18] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1018,7 +1086,7 @@ func (x *GenerateKeyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GenerateKeyRequest.ProtoReflect.Descriptor instead. func (*GenerateKeyRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{16} + return file_request_proto_rawDescGZIP(), []int{18} } func (x *GenerateKeyRequest) GetName() string { @@ -1050,10 +1118,7 @@ func (x *GenerateKeyRequest) GetLength() uint32 { } type MACRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name of the master key. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version identifies the key version within the key ring used to compute @@ -1061,16 +1126,16 @@ type MACRequest struct { Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` // Message is the data for which the MAC is computed. Given the same master // key, two different messages will result in two different MACs. - Message []byte `protobuf:"bytes,3,opt,name=Message,json=message,proto3" json:"Message,omitempty"` + Message []byte `protobuf:"bytes,3,opt,name=Message,json=message,proto3" json:"Message,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MACRequest) Reset() { *x = MACRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MACRequest) String() string { @@ -1080,8 +1145,8 @@ func (x *MACRequest) String() string { func (*MACRequest) ProtoMessage() {} func (x *MACRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[19] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1093,7 +1158,7 @@ func (x *MACRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use MACRequest.ProtoReflect.Descriptor instead. func (*MACRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{17} + return file_request_proto_rawDescGZIP(), []int{19} } func (x *MACRequest) GetName() string { @@ -1118,11 +1183,8 @@ func (x *MACRequest) GetMessage() []byte { } type DecryptRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version identifies the key version within the key ring that should be // used to decrypt the ciphertext. Must not be zero. Version uint32 `protobuf:"varint,2,opt,name=Version,json=version,proto3" json:"Version,omitempty"` @@ -1131,15 +1193,15 @@ type DecryptRequest struct { // AssociatedData is additional data that has been crypto. bound to the // ciphertext. AssociatedData []byte `protobuf:"bytes,4,opt,name=AssociatedData,json=associated_data,proto3" json:"AssociatedData,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DecryptRequest) Reset() { *x = DecryptRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptRequest) String() string { @@ -1149,8 +1211,8 @@ func (x *DecryptRequest) String() string { func (*DecryptRequest) ProtoMessage() {} func (x *DecryptRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[20] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1162,7 +1224,7 @@ func (x *DecryptRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DecryptRequest.ProtoReflect.Descriptor instead. func (*DecryptRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{18} + return file_request_proto_rawDescGZIP(), []int{20} } func (x *DecryptRequest) GetName() string { @@ -1194,22 +1256,19 @@ func (x *DecryptRequest) GetAssociatedData() []byte { } type CreatePolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + Allow map[string]*RuleSet `protobuf:"bytes,2,rep,name=Allow,json=allow,proto3" json:"Allow,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Deny map[string]*RuleSet `protobuf:"bytes,3,rep,name=Deny,json=deny,proto3" json:"Deny,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` - Allow map[string]*RuleSet `protobuf:"bytes,2,rep,name=Allow,json=allow,proto3" json:"Allow,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Deny map[string]*RuleSet `protobuf:"bytes,3,rep,name=Deny,json=deny,proto3" json:"Deny,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *CreatePolicyRequest) Reset() { *x = CreatePolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreatePolicyRequest) String() string { @@ -1219,8 +1278,8 @@ func (x *CreatePolicyRequest) String() string { func (*CreatePolicyRequest) ProtoMessage() {} func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[21] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1232,7 +1291,7 @@ func (x *CreatePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreatePolicyRequest.ProtoReflect.Descriptor instead. func (*CreatePolicyRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{19} + return file_request_proto_rawDescGZIP(), []int{21} } func (x *CreatePolicyRequest) GetName() string { @@ -1257,20 +1316,17 @@ func (x *CreatePolicyRequest) GetDeny() map[string]*RuleSet { } type PolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PolicyRequest) Reset() { *x = PolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyRequest) String() string { @@ -1280,8 +1336,8 @@ func (x *PolicyRequest) String() string { func (*PolicyRequest) ProtoMessage() {} func (x *PolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[22] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1293,7 +1349,7 @@ func (x *PolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PolicyRequest.ProtoReflect.Descriptor instead. func (*PolicyRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{20} + return file_request_proto_rawDescGZIP(), []int{22} } func (x *PolicyRequest) GetName() string { @@ -1304,20 +1360,17 @@ func (x *PolicyRequest) GetName() string { } type DeletePolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeletePolicyRequest) Reset() { *x = DeletePolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeletePolicyRequest) String() string { @@ -1327,8 +1380,8 @@ func (x *DeletePolicyRequest) String() string { func (*DeletePolicyRequest) ProtoMessage() {} func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[23] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1340,7 +1393,7 @@ func (x *DeletePolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeletePolicyRequest.ProtoReflect.Descriptor instead. func (*DeletePolicyRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{21} + return file_request_proto_rawDescGZIP(), []int{23} } func (x *DeletePolicyRequest) GetName() string { @@ -1351,22 +1404,19 @@ func (x *DeletePolicyRequest) GetName() string { } type AssignPolicyRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Identity is the identity to which the policy should apply. - Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` - Policy string `protobuf:"bytes,2,opt,name=Policy,json=policy,proto3" json:"Policy,omitempty"` + Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` + Policy string `protobuf:"bytes,2,opt,name=Policy,json=policy,proto3" json:"Policy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AssignPolicyRequest) Reset() { *x = AssignPolicyRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AssignPolicyRequest) String() string { @@ -1376,8 +1426,8 @@ func (x *AssignPolicyRequest) String() string { func (*AssignPolicyRequest) ProtoMessage() {} func (x *AssignPolicyRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[24] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1389,7 +1439,7 @@ func (x *AssignPolicyRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use AssignPolicyRequest.ProtoReflect.Descriptor instead. func (*AssignPolicyRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{22} + return file_request_proto_rawDescGZIP(), []int{24} } func (x *AssignPolicyRequest) GetIdentity() string { @@ -1407,27 +1457,24 @@ func (x *AssignPolicyRequest) GetPolicy() string { } type CreateIdentityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` // Privilege is the privilege the identity has. Either, "SysAdmin", "Admin" or // "User". Privilege string `protobuf:"bytes,2,opt,name=Privilege,json=privilege,proto3" json:"Privilege,omitempty"` // IsServiceAccount indicates whether the identity is a service account. IsServiceAccount bool `protobuf:"varint,3,opt,name=IsServiceAccount,json=service_account,proto3" json:"IsServiceAccount,omitempty"` // Tags are optional metadata labels attached to the identity as key-value pairs. - Tags map[string]string `protobuf:"bytes,4,rep,name=Tags,json=tags,proto3" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Tags map[string]string `protobuf:"bytes,4,rep,name=Tags,json=tags,proto3" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateIdentityRequest) Reset() { *x = CreateIdentityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CreateIdentityRequest) String() string { @@ -1437,8 +1484,8 @@ func (x *CreateIdentityRequest) String() string { func (*CreateIdentityRequest) ProtoMessage() {} func (x *CreateIdentityRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[25] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1450,7 +1497,7 @@ func (x *CreateIdentityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateIdentityRequest.ProtoReflect.Descriptor instead. func (*CreateIdentityRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{23} + return file_request_proto_rawDescGZIP(), []int{25} } func (x *CreateIdentityRequest) GetIdentity() string { @@ -1482,20 +1529,17 @@ func (x *CreateIdentityRequest) GetTags() map[string]string { } type IdentityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` unknownFields protoimpl.UnknownFields - - Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IdentityRequest) Reset() { *x = IdentityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentityRequest) String() string { @@ -1505,8 +1549,8 @@ func (x *IdentityRequest) String() string { func (*IdentityRequest) ProtoMessage() {} func (x *IdentityRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[26] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1518,7 +1562,7 @@ func (x *IdentityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use IdentityRequest.ProtoReflect.Descriptor instead. func (*IdentityRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{24} + return file_request_proto_rawDescGZIP(), []int{26} } func (x *IdentityRequest) GetIdentity() string { @@ -1529,20 +1573,17 @@ func (x *IdentityRequest) GetIdentity() string { } type DeleteIdentityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` unknownFields protoimpl.UnknownFields - - Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteIdentityRequest) Reset() { *x = DeleteIdentityRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_request_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_request_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeleteIdentityRequest) String() string { @@ -1552,8 +1593,8 @@ func (x *DeleteIdentityRequest) String() string { func (*DeleteIdentityRequest) ProtoMessage() {} func (x *DeleteIdentityRequest) ProtoReflect() protoreflect.Message { - mi := &file_request_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + mi := &file_request_proto_msgTypes[27] + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1565,7 +1606,7 @@ func (x *DeleteIdentityRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use DeleteIdentityRequest.ProtoReflect.Descriptor instead. func (*DeleteIdentityRequest) Descriptor() ([]byte, []int) { - return file_request_proto_rawDescGZIP(), []int{25} + return file_request_proto_rawDescGZIP(), []int{27} } func (x *DeleteIdentityRequest) GetIdentity() string { @@ -1577,178 +1618,132 @@ func (x *DeleteIdentityRequest) GetIdentity() string { var File_request_proto protoreflect.FileDescriptor -var file_request_proto_rawDesc = []byte{ - 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x09, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x72, 0x75, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x16, 0x0a, 0x14, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, - 0x5c, 0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, - 0x0a, 0x06, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x1f, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, - 0x75, 0x65, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, - 0x69, 0x6e, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x4c, 0x69, 0x6d, 0x69, 0x74, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x2b, 0x0a, - 0x15, 0x41, 0x64, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x22, 0x63, 0x0a, 0x18, 0x52, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x33, 0x0a, 0x13, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4f, 0x6e, 0x48, 0x6f, 0x73, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6f, 0x6e, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x22, - 0x43, 0x0a, 0x12, 0x45, 0x64, 0x69, 0x74, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x09, 0x52, 0x65, 0x6d, - 0x6f, 0x76, 0x65, 0x49, 0x44, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x06, 0x72, 0x65, - 0x6d, 0x6f, 0x76, 0x65, 0x22, 0x41, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x48, 0x53, 0x4d, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x4f, 0x76, 0x65, - 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x76, - 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x22, 0x26, 0x0a, 0x10, 0x52, 0x65, 0x6d, 0x6f, 0x76, - 0x65, 0x48, 0x53, 0x4d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x2a, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2a, 0x0a, 0x14, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x2a, 0x0a, 0x14, 0x45, 0x6e, 0x63, 0x6c, 0x61, - 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x0a, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x11, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x53, 0x69, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x73, - 0x69, 0x6e, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4c, 0x65, 0x76, - 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x11, 0x52, 0x0b, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, - 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x5b, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4b, - 0x65, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x22, 0x4c, 0x0a, 0x10, 0x49, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, - 0x0a, 0x03, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x22, 0x63, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x5f, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x40, 0x0a, 0x10, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x85, 0x01, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, - 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x6c, 0x61, 0x69, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x6c, 0x61, - 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, - 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, - 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x22, - 0x83, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x0e, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, - 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x61, 0x73, - 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, - 0x06, 0x4c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x6c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x54, 0x0a, 0x0a, 0x4d, 0x41, 0x43, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x87, 0x01, 0x0a, 0x0e, - 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, - 0x43, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, - 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x27, 0x0a, 0x0e, - 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0f, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc3, 0x02, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x3f, 0x0a, 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x29, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x6c, 0x6c, - 0x6f, 0x77, 0x12, 0x3c, 0x0a, 0x04, 0x44, 0x65, 0x6e, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x28, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x44, 0x65, 0x6e, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x65, 0x6e, 0x79, - 0x1a, 0x4c, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x28, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, - 0x53, 0x65, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, - 0x0a, 0x09, 0x44, 0x65, 0x6e, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, - 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x23, 0x0a, 0x0d, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x29, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x49, 0x0a, 0x13, 0x41, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x16, - 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0xf5, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x09, - 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x12, 0x29, 0x0a, 0x10, 0x49, 0x73, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x04, 0x54, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2d, - 0x0a, 0x0f, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x22, 0x33, 0x0a, - 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x79, 0x42, 0x0b, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_request_proto_rawDesc = "" + + "\n" + + "\rrequest.proto\x12\tminio.kms\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\n" + + "rule.proto\"\x16\n" + + "\x14ClusterStatusRequest\"\\\n" + + "\vListRequest\x12\x16\n" + + "\x06Prefix\x18\x01 \x01(\tR\x06prefix\x12\x1f\n" + + "\n" + + "ContinueAt\x18\x02 \x01(\tR\vcontinue_at\x12\x14\n" + + "\x05Limit\x18\x03 \x01(\rR\x05limit\"+\n" + + "\x15AddClusterNodeRequest\x12\x12\n" + + "\x04Host\x18\x01 \x01(\tR\x04host\"c\n" + + "\x18RemoveClusterNodeRequest\x12\x12\n" + + "\x04Host\x18\x01 \x01(\tR\x04host\x123\n" + + "\x13DeleteClusterOnHost\x18\x02 \x01(\bR\x16delete_cluster_on_host\"C\n" + + "\x12EditClusterRequest\x12\x12\n" + + "\x04Host\x18\x01 \x01(\tR\x04host\x12\x19\n" + + "\tRemoveIDs\x18\x02 \x03(\rR\x06remove\"A\n" + + "\rAddHSMRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x1c\n" + + "\tOverwrite\x18\x02 \x01(\bR\toverwrite\"&\n" + + "\x10RemoveHSMRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\"*\n" + + "\x14CreateEnclaveRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\"*\n" + + "\x14DeleteEnclaveRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\"*\n" + + "\x14EnclaveStatusRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\"\x8f\x01\n" + + "\n" + + "LogRequest\x12\x14\n" + + "\x05Level\x18\x01 \x01(\x11R\x05level\x12\x18\n" + + "\aMessage\x18\x02 \x01(\tR\amessage\x120\n" + + "\x05Since\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\x05since\x12\x1f\n" + + "\n" + + "TraceLevel\x18\x04 \x01(\x11R\vtrace_level\"[\n" + + "\x10CreateKeyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x12\n" + + "\x04Type\x18\x02 \x01(\tR\x04type\x12\x1f\n" + + "\n" + + "AddVersion\x18\x03 \x01(\bR\vadd_version\"L\n" + + "\x10ImportKeyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x12\n" + + "\x04Type\x18\x02 \x01(\tR\x04type\x12\x10\n" + + "\x03Key\x18\x03 \x01(\fR\x03key\"V\n" + + "\x14ImportKeyRingVersion\x12\x12\n" + + "\x04Type\x18\x01 \x01(\tR\x04type\x12\x10\n" + + "\x03Key\x18\x02 \x01(\fR\x03key\x12\x18\n" + + "\aVersion\x18\x03 \x01(\rR\aversion\"g\n" + + "\x14ImportKeyRingRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12;\n" + + "\bVersions\x18\x02 \x03(\v2\x1f.minio.kms.ImportKeyRingVersionR\bversions\"c\n" + + "\x10DeleteKeyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\x12!\n" + + "\vAllVersions\x18\x03 \x01(\bR\fall_versions\"@\n" + + "\x10KeyStatusRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\"\x85\x01\n" + + "\x0eEncryptRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\x12\x1c\n" + + "\tPlaintext\x18\x03 \x01(\fR\tplaintext\x12'\n" + + "\x0eAssociatedData\x18\x04 \x01(\fR\x0fassociated_data\"\x83\x01\n" + + "\x12GenerateKeyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\x12'\n" + + "\x0eAssociatedData\x18\x03 \x01(\fR\x0fassociated_data\x12\x16\n" + + "\x06Length\x18\x04 \x01(\rR\x06length\"T\n" + + "\n" + + "MACRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\x12\x18\n" + + "\aMessage\x18\x03 \x01(\fR\amessage\"\x87\x01\n" + + "\x0eDecryptRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\x12\x1e\n" + + "\n" + + "Ciphertext\x18\x03 \x01(\fR\n" + + "ciphertext\x12'\n" + + "\x0eAssociatedData\x18\x04 \x01(\fR\x0fassociated_data\"\xc3\x02\n" + + "\x13CreatePolicyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12?\n" + + "\x05Allow\x18\x02 \x03(\v2).minio.kms.CreatePolicyRequest.AllowEntryR\x05allow\x12<\n" + + "\x04Deny\x18\x03 \x03(\v2(.minio.kms.CreatePolicyRequest.DenyEntryR\x04deny\x1aL\n" + + "\n" + + "AllowEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12(\n" + + "\x05value\x18\x02 \x01(\v2\x12.minio.kms.RuleSetR\x05value:\x028\x01\x1aK\n" + + "\tDenyEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12(\n" + + "\x05value\x18\x02 \x01(\v2\x12.minio.kms.RuleSetR\x05value:\x028\x01\"#\n" + + "\rPolicyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\")\n" + + "\x13DeletePolicyRequest\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\"I\n" + + "\x13AssignPolicyRequest\x12\x1a\n" + + "\bIdentity\x18\x01 \x01(\tR\bidentity\x12\x16\n" + + "\x06Policy\x18\x02 \x01(\tR\x06policy\"\xf5\x01\n" + + "\x15CreateIdentityRequest\x12\x1a\n" + + "\bIdentity\x18\x01 \x01(\tR\bidentity\x12\x1c\n" + + "\tPrivilege\x18\x02 \x01(\tR\tprivilege\x12)\n" + + "\x10IsServiceAccount\x18\x03 \x01(\bR\x0fservice_account\x12>\n" + + "\x04Tags\x18\x04 \x03(\v2*.minio.kms.CreateIdentityRequest.TagsEntryR\x04tags\x1a7\n" + + "\tTagsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"-\n" + + "\x0fIdentityRequest\x12\x1a\n" + + "\bIdentity\x18\x01 \x01(\tR\bidentity\"3\n" + + "\x15DeleteIdentityRequest\x12\x1a\n" + + "\bIdentity\x18\x01 \x01(\tR\bidentityB\vZ\t/protobufb\x06proto3" var ( file_request_proto_rawDescOnce sync.Once - file_request_proto_rawDescData = file_request_proto_rawDesc + file_request_proto_rawDescData []byte ) func file_request_proto_rawDescGZIP() []byte { file_request_proto_rawDescOnce.Do(func() { - file_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_request_proto_rawDescData) + file_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_request_proto_rawDesc), len(file_request_proto_rawDesc))) }) return file_request_proto_rawDescData } -var file_request_proto_msgTypes = make([]protoimpl.MessageInfo, 29) -var file_request_proto_goTypes = []interface{}{ +var file_request_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_request_proto_goTypes = []any{ (*ClusterStatusRequest)(nil), // 0: minio.kms.ClusterStatusRequest (*ListRequest)(nil), // 1: minio.kms.ListRequest (*AddClusterNodeRequest)(nil), // 2: minio.kms.AddClusterNodeRequest @@ -1762,37 +1757,40 @@ var file_request_proto_goTypes = []interface{}{ (*LogRequest)(nil), // 10: minio.kms.LogRequest (*CreateKeyRequest)(nil), // 11: minio.kms.CreateKeyRequest (*ImportKeyRequest)(nil), // 12: minio.kms.ImportKeyRequest - (*DeleteKeyRequest)(nil), // 13: minio.kms.DeleteKeyRequest - (*KeyStatusRequest)(nil), // 14: minio.kms.KeyStatusRequest - (*EncryptRequest)(nil), // 15: minio.kms.EncryptRequest - (*GenerateKeyRequest)(nil), // 16: minio.kms.GenerateKeyRequest - (*MACRequest)(nil), // 17: minio.kms.MACRequest - (*DecryptRequest)(nil), // 18: minio.kms.DecryptRequest - (*CreatePolicyRequest)(nil), // 19: minio.kms.CreatePolicyRequest - (*PolicyRequest)(nil), // 20: minio.kms.PolicyRequest - (*DeletePolicyRequest)(nil), // 21: minio.kms.DeletePolicyRequest - (*AssignPolicyRequest)(nil), // 22: minio.kms.AssignPolicyRequest - (*CreateIdentityRequest)(nil), // 23: minio.kms.CreateIdentityRequest - (*IdentityRequest)(nil), // 24: minio.kms.IdentityRequest - (*DeleteIdentityRequest)(nil), // 25: minio.kms.DeleteIdentityRequest - nil, // 26: minio.kms.CreatePolicyRequest.AllowEntry - nil, // 27: minio.kms.CreatePolicyRequest.DenyEntry - nil, // 28: minio.kms.CreateIdentityRequest.TagsEntry - (*timestamppb.Timestamp)(nil), // 29: google.protobuf.Timestamp - (*RuleSet)(nil), // 30: minio.kms.RuleSet + (*ImportKeyRingVersion)(nil), // 13: minio.kms.ImportKeyRingVersion + (*ImportKeyRingRequest)(nil), // 14: minio.kms.ImportKeyRingRequest + (*DeleteKeyRequest)(nil), // 15: minio.kms.DeleteKeyRequest + (*KeyStatusRequest)(nil), // 16: minio.kms.KeyStatusRequest + (*EncryptRequest)(nil), // 17: minio.kms.EncryptRequest + (*GenerateKeyRequest)(nil), // 18: minio.kms.GenerateKeyRequest + (*MACRequest)(nil), // 19: minio.kms.MACRequest + (*DecryptRequest)(nil), // 20: minio.kms.DecryptRequest + (*CreatePolicyRequest)(nil), // 21: minio.kms.CreatePolicyRequest + (*PolicyRequest)(nil), // 22: minio.kms.PolicyRequest + (*DeletePolicyRequest)(nil), // 23: minio.kms.DeletePolicyRequest + (*AssignPolicyRequest)(nil), // 24: minio.kms.AssignPolicyRequest + (*CreateIdentityRequest)(nil), // 25: minio.kms.CreateIdentityRequest + (*IdentityRequest)(nil), // 26: minio.kms.IdentityRequest + (*DeleteIdentityRequest)(nil), // 27: minio.kms.DeleteIdentityRequest + nil, // 28: minio.kms.CreatePolicyRequest.AllowEntry + nil, // 29: minio.kms.CreatePolicyRequest.DenyEntry + nil, // 30: minio.kms.CreateIdentityRequest.TagsEntry + (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp + (*RuleSet)(nil), // 32: minio.kms.RuleSet } var file_request_proto_depIdxs = []int32{ - 29, // 0: minio.kms.LogRequest.Since:type_name -> google.protobuf.Timestamp - 26, // 1: minio.kms.CreatePolicyRequest.Allow:type_name -> minio.kms.CreatePolicyRequest.AllowEntry - 27, // 2: minio.kms.CreatePolicyRequest.Deny:type_name -> minio.kms.CreatePolicyRequest.DenyEntry - 28, // 3: minio.kms.CreateIdentityRequest.Tags:type_name -> minio.kms.CreateIdentityRequest.TagsEntry - 30, // 4: minio.kms.CreatePolicyRequest.AllowEntry.value:type_name -> minio.kms.RuleSet - 30, // 5: minio.kms.CreatePolicyRequest.DenyEntry.value:type_name -> minio.kms.RuleSet - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 31, // 0: minio.kms.LogRequest.Since:type_name -> google.protobuf.Timestamp + 13, // 1: minio.kms.ImportKeyRingRequest.Versions:type_name -> minio.kms.ImportKeyRingVersion + 28, // 2: minio.kms.CreatePolicyRequest.Allow:type_name -> minio.kms.CreatePolicyRequest.AllowEntry + 29, // 3: minio.kms.CreatePolicyRequest.Deny:type_name -> minio.kms.CreatePolicyRequest.DenyEntry + 30, // 4: minio.kms.CreateIdentityRequest.Tags:type_name -> minio.kms.CreateIdentityRequest.TagsEntry + 32, // 5: minio.kms.CreatePolicyRequest.AllowEntry.value:type_name -> minio.kms.RuleSet + 32, // 6: minio.kms.CreatePolicyRequest.DenyEntry.value:type_name -> minio.kms.RuleSet + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_request_proto_init() } @@ -1801,327 +1799,13 @@ func file_request_proto_init() { return } file_rule_proto_init() - if !protoimpl.UnsafeEnabled { - file_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddClusterNodeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveClusterNodeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EditClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddHSMRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RemoveHSMRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateEnclaveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteEnclaveRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnclaveStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LogRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ImportKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyStatusRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateKeyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MACRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreatePolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeletePolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssignPolicyRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateIdentityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdentityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_request_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteIdentityRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_request_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_request_proto_rawDesc), len(file_request_proto_rawDesc)), NumEnums: 0, - NumMessages: 29, + NumMessages: 31, NumExtensions: 0, NumServices: 0, }, @@ -2130,7 +1814,6 @@ func file_request_proto_init() { MessageInfos: file_request_proto_msgTypes, }.Build() File_request_proto = out.File - file_request_proto_rawDesc = nil file_request_proto_goTypes = nil file_request_proto_depIdxs = nil } diff --git a/kms/protobuf/request.proto b/kms/protobuf/request.proto index d8c323e..d30e342 100644 --- a/kms/protobuf/request.proto +++ b/kms/protobuf/request.proto @@ -126,6 +126,25 @@ message ImportKeyRequest { bytes Key = 3 [ json_name = "key" ]; } +message ImportKeyRingVersion { + // Type is the type of the key version. If not set, the KMS server picks + // a key type. + string Type = 1 [ json_name = "type" ]; + + bytes Key = 2 [ json_name = "key" ]; + + // Version is the version number of the key version. It must be non-zero + // and unique within the key ring; the KMS server verifies this. + uint32 Version = 3 [ json_name = "version" ]; +} + +message ImportKeyRingRequest { + string Name = 1 [ json_name = "name" ]; + + // Versions are the key versions of the key ring. + repeated ImportKeyRingVersion Versions = 2 [ json_name = "versions" ]; +} + message DeleteKeyRequest { string Name = 1 [ json_name = "name" ]; diff --git a/kms/protobuf/response.pb.go b/kms/protobuf/response.pb.go index 2a9b7f2..898135a 100644 --- a/kms/protobuf/response.pb.go +++ b/kms/protobuf/response.pb.go @@ -4,8 +4,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.29.3 +// protoc-gen-go v1.36.12 +// protoc v7.36.2 // source: response.proto package protobuf @@ -17,6 +17,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -27,20 +28,17 @@ const ( ) type ErrResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Message string `protobuf:"bytes,1,opt,name=Message,json=message,proto3" json:"Message,omitempty"` unknownFields protoimpl.UnknownFields - - Message string `protobuf:"bytes,1,opt,name=Message,json=message,proto3" json:"Message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ErrResponse) Reset() { *x = ErrResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ErrResponse) String() string { @@ -51,7 +49,7 @@ func (*ErrResponse) ProtoMessage() {} func (x *ErrResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -74,10 +72,7 @@ func (x *ErrResponse) GetMessage() string { } type VersionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Version is the version of the KMS server. It's the timestamp of // the latest commit formatted as 'yyyy-mm-ddThh-mm-ssZ'. For example, // "2023-12-01T16-06-52Z" @@ -89,17 +84,17 @@ type VersionResponse struct { // For example, "v1". APIVersion string `protobuf:"bytes,3,opt,name=APIVersion,json=api_version,proto3" json:"APIVersion,omitempty"` // Host is the KMS server host or host:port. - Host string `protobuf:"bytes,4,opt,name=Host,json=host,proto3" json:"Host,omitempty"` - FIPS140 bool `protobuf:"varint,5,opt,name=FIPS140,json=fips140,proto3" json:"FIPS140,omitempty"` + Host string `protobuf:"bytes,4,opt,name=Host,json=host,proto3" json:"Host,omitempty"` + FIPS140 bool `protobuf:"varint,5,opt,name=FIPS140,json=fips140,proto3" json:"FIPS140,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VersionResponse) Reset() { *x = VersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *VersionResponse) String() string { @@ -110,7 +105,7 @@ func (*VersionResponse) ProtoMessage() {} func (x *VersionResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -161,10 +156,7 @@ func (x *VersionResponse) GetFIPS140() bool { } type ServerStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Version is the version of the KMS server. It's the timestamp of // the latest commit formatted as 'yyyy-mm-ddThh-mm-ssZ'. For example, // "2023-12-01T16-06-52Z" @@ -183,7 +175,7 @@ type ServerStatusResponse struct { Commit uint64 `protobuf:"varint,6,opt,name=Commit,json=commit,proto3" json:"Commit,omitempty"` // Nodes is a list of KMS server nodes within the KMS cluster as a map // of node IDs to KMS server addresses of the form 'host' or 'host:port'. - Nodes map[uint32]string `protobuf:"bytes,7,rep,name=Nodes,json=nodes,proto3" json:"Nodes,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Nodes map[uint32]string `protobuf:"bytes,7,rep,name=Nodes,json=nodes,proto3" json:"Nodes,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // ID is the node ID of this KMS server. It only changes if the node // joins a cluster. ID uint32 `protobuf:"varint,8,opt,name=ID,json=node_id,proto3" json:"ID,omitempty"` @@ -242,15 +234,15 @@ type ServerStatusResponse struct { // entry may not exist for all of them. For example, one particular entry may got removed // but the HSM configuration itself is still present. ConfiguredHSMs []string `protobuf:"bytes,20,rep,name=ConfiguredHSMs,json=hsm_active,proto3" json:"ConfiguredHSMs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ServerStatusResponse) Reset() { *x = ServerStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServerStatusResponse) String() string { @@ -261,7 +253,7 @@ func (*ServerStatusResponse) ProtoMessage() {} func (x *ServerStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -417,10 +409,7 @@ func (x *ServerStatusResponse) GetConfiguredHSMs() []string { } type ProfileStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Started is the point in time when profiling was enabled. Started *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=Started,json=started,proto3" json:"Started,omitempty"` // CPU indicates whether the server is capturing a CPU profile. @@ -447,15 +436,15 @@ type ProfileStatusResponse struct { // // If 0, mutex profiling is disabled. MutexFraction uint32 `protobuf:"varint,7,opt,name=MutexFraction,json=mutex_frac,proto3" json:"MutexFraction,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ProfileStatusResponse) Reset() { *x = ProfileStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProfileStatusResponse) String() string { @@ -466,7 +455,7 @@ func (*ProfileStatusResponse) ProtoMessage() {} func (x *ProfileStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -531,21 +520,18 @@ func (x *ProfileStatusResponse) GetMutexFraction() uint32 { } type ClusterStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + NodesUp map[uint32]*ServerStatusResponse `protobuf:"bytes,1,rep,name=NodesUp,json=nodes_up,proto3" json:"NodesUp,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + NodesDown map[uint32]string `protobuf:"bytes,2,rep,name=NodesDown,json=nodes_down,proto3" json:"NodesDown,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - NodesUp map[uint32]*ServerStatusResponse `protobuf:"bytes,1,rep,name=NodesUp,json=nodes_up,proto3" json:"NodesUp,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - NodesDown map[uint32]string `protobuf:"bytes,2,rep,name=NodesDown,json=nodes_down,proto3" json:"NodesDown,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *ClusterStatusResponse) Reset() { *x = ClusterStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ClusterStatusResponse) String() string { @@ -556,7 +542,7 @@ func (*ClusterStatusResponse) ProtoMessage() {} func (x *ClusterStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -586,25 +572,22 @@ func (x *ClusterStatusResponse) GetNodesDown() map[uint32]string { } type EnclaveStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the enclave. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // CreatedAt is the point in time when this enclave got created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"` // CreatedBy is the identity that created this enclave. - CreatedBy string `protobuf:"bytes,3,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + CreatedBy string `protobuf:"bytes,3,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EnclaveStatusResponse) Reset() { *x = EnclaveStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnclaveStatusResponse) String() string { @@ -615,7 +598,7 @@ func (*EnclaveStatusResponse) ProtoMessage() {} func (x *EnclaveStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -652,21 +635,18 @@ func (x *EnclaveStatusResponse) GetCreatedBy() string { } type ListEnclavesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Enclaves []*EnclaveStatusResponse `protobuf:"bytes,1,rep,name=Enclaves,json=enclaves,proto3" json:"Enclaves,omitempty"` + ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` unknownFields protoimpl.UnknownFields - - Enclaves []*EnclaveStatusResponse `protobuf:"bytes,1,rep,name=Enclaves,json=enclaves,proto3" json:"Enclaves,omitempty"` - ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListEnclavesResponse) Reset() { *x = ListEnclavesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListEnclavesResponse) String() string { @@ -677,7 +657,7 @@ func (*ListEnclavesResponse) ProtoMessage() {} func (x *ListEnclavesResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -707,10 +687,7 @@ func (x *ListEnclavesResponse) GetContinueAt() string { } type KeyStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the key. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Version is the this key's version within the key ring. @@ -720,16 +697,16 @@ type KeyStatusResponse struct { // CreatedAt is the point in time when this key version got created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"` // CreatedBy is the identity that created the key version. - CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *KeyStatusResponse) Reset() { *x = KeyStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KeyStatusResponse) String() string { @@ -740,7 +717,7 @@ func (*KeyStatusResponse) ProtoMessage() {} func (x *KeyStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -791,21 +768,18 @@ func (x *KeyStatusResponse) GetCreatedBy() string { } type ListKeysResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Keys []*KeyStatusResponse `protobuf:"bytes,1,rep,name=Keys,json=keys,proto3" json:"Keys,omitempty"` + ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` unknownFields protoimpl.UnknownFields - - Keys []*KeyStatusResponse `protobuf:"bytes,1,rep,name=Keys,json=keys,proto3" json:"Keys,omitempty"` - ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListKeysResponse) Reset() { *x = ListKeysResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListKeysResponse) String() string { @@ -816,7 +790,7 @@ func (*ListKeysResponse) ProtoMessage() {} func (x *ListKeysResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -846,24 +820,21 @@ func (x *ListKeysResponse) GetContinueAt() string { } type EncryptResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Version identifies the particular key within a key ring used to encrypt // the message. Version uint32 `protobuf:"varint,1,opt,name=Version,json=version,proto3" json:"Version,omitempty"` // Ciphertext is the encrypted message. - Ciphertext []byte `protobuf:"bytes,2,opt,name=Ciphertext,json=ciphertext,proto3" json:"Ciphertext,omitempty"` + Ciphertext []byte `protobuf:"bytes,2,opt,name=Ciphertext,json=ciphertext,proto3" json:"Ciphertext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EncryptResponse) Reset() { *x = EncryptResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EncryptResponse) String() string { @@ -874,7 +845,7 @@ func (*EncryptResponse) ProtoMessage() {} func (x *EncryptResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -904,21 +875,18 @@ func (x *EncryptResponse) GetCiphertext() []byte { } type DecryptResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Plaintext is the decrypted message. - Plaintext []byte `protobuf:"bytes,1,opt,name=Plaintext,json=plaintext,proto3" json:"Plaintext,omitempty"` + Plaintext []byte `protobuf:"bytes,1,opt,name=Plaintext,json=plaintext,proto3" json:"Plaintext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DecryptResponse) Reset() { *x = DecryptResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DecryptResponse) String() string { @@ -929,7 +897,7 @@ func (*DecryptResponse) ProtoMessage() {} func (x *DecryptResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -952,10 +920,7 @@ func (x *DecryptResponse) GetPlaintext() []byte { } type GenerateKeyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Version identifies the particular key within a key ring used to generate // and encrypt this data encryption key. Version uint32 `protobuf:"varint,1,opt,name=Version,json=version,proto3" json:"Version,omitempty"` @@ -964,16 +929,16 @@ type GenerateKeyResponse struct { Plaintext []byte `protobuf:"bytes,2,opt,name=Plaintext,json=plaintext,proto3" json:"Plaintext,omitempty"` // Ciphertext is the encrypted data encryption key. Clients should store it // to obtain the plain data encryption key in the future again. - Ciphertext []byte `protobuf:"bytes,3,opt,name=Ciphertext,json=ciphertext,proto3" json:"Ciphertext,omitempty"` + Ciphertext []byte `protobuf:"bytes,3,opt,name=Ciphertext,json=ciphertext,proto3" json:"Ciphertext,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GenerateKeyResponse) Reset() { *x = GenerateKeyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GenerateKeyResponse) String() string { @@ -984,7 +949,7 @@ func (*GenerateKeyResponse) ProtoMessage() {} func (x *GenerateKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1021,24 +986,21 @@ func (x *GenerateKeyResponse) GetCiphertext() []byte { } type MACResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Version identifies the particular key within a key ring used to generate // this MAC. Version uint32 `protobuf:"varint,1,opt,name=Version,json=version,proto3" json:"Version,omitempty"` // MAC is the message authentication code for the message. - MAC []byte `protobuf:"bytes,2,opt,name=MAC,json=mac,proto3" json:"MAC,omitempty"` + MAC []byte `protobuf:"bytes,2,opt,name=MAC,json=mac,proto3" json:"MAC,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MACResponse) Reset() { *x = MACResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MACResponse) String() string { @@ -1049,7 +1011,7 @@ func (*MACResponse) ProtoMessage() {} func (x *MACResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1079,25 +1041,22 @@ func (x *MACResponse) GetMAC() []byte { } type PolicyStatusResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the policy. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // CreatedAt is the point in time when this policy got created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"` // CreatedBy is the identity that created the policy. - CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PolicyStatusResponse) Reset() { *x = PolicyStatusResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyStatusResponse) String() string { @@ -1108,7 +1067,7 @@ func (*PolicyStatusResponse) ProtoMessage() {} func (x *PolicyStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1145,33 +1104,30 @@ func (x *PolicyStatusResponse) GetCreatedBy() string { } type PolicyResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Name is the name of the policy. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // Allow contains a set of API path patterns and corresponding policy rules. // Requests that match at least one path, but not any deny pattern, and // pass the corresponding policy rule are accepted by the server. - Allow map[string]*RuleSet `protobuf:"bytes,2,rep,name=Allow,json=allow,proto3" json:"Allow,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Allow map[string]*RuleSet `protobuf:"bytes,2,rep,name=Allow,json=allow,proto3" json:"Allow,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Deny contains a set of API path patterns and corresponding policy rules. // Requests that match at least one path and pass the corresponding policy // rule are rejected by the server. - Deny map[string]*RuleSet `protobuf:"bytes,3,rep,name=Deny,json=deny,proto3" json:"Deny,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Deny map[string]*RuleSet `protobuf:"bytes,3,rep,name=Deny,json=deny,proto3" json:"Deny,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // CreatedAt is the point in time when this policy got created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"` // CreatedBy is the identity that created the policy. - CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,json=created_by,proto3" json:"CreatedBy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *PolicyResponse) Reset() { *x = PolicyResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PolicyResponse) String() string { @@ -1182,7 +1138,7 @@ func (*PolicyResponse) ProtoMessage() {} func (x *PolicyResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1233,21 +1189,18 @@ func (x *PolicyResponse) GetCreatedBy() string { } type ListPoliciesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Policies []*PolicyStatusResponse `protobuf:"bytes,1,rep,name=Policies,json=policies,proto3" json:"Policies,omitempty"` + ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` unknownFields protoimpl.UnknownFields - - Policies []*PolicyStatusResponse `protobuf:"bytes,1,rep,name=Policies,json=policies,proto3" json:"Policies,omitempty"` - ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListPoliciesResponse) Reset() { *x = ListPoliciesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListPoliciesResponse) String() string { @@ -1258,7 +1211,7 @@ func (*ListPoliciesResponse) ProtoMessage() {} func (x *ListPoliciesResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1288,13 +1241,10 @@ func (x *ListPoliciesResponse) GetContinueAt() string { } type IdentityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` - Privilege uint32 `protobuf:"varint,2,opt,name=Privilege,json=privilege,proto3" json:"Privilege,omitempty"` - Policy string `protobuf:"bytes,3,opt,name=Policy,json=policy,proto3" json:"Policy,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Identity string `protobuf:"bytes,1,opt,name=Identity,json=identity,proto3" json:"Identity,omitempty"` + Privilege uint32 `protobuf:"varint,2,opt,name=Privilege,json=privilege,proto3" json:"Privilege,omitempty"` + Policy string `protobuf:"bytes,3,opt,name=Policy,json=policy,proto3" json:"Policy,omitempty"` // CreatedAt is the point in time when this identity got created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,json=created_at,proto3" json:"CreatedAt,omitempty"` // CreatedBy is the identity that created this identity. @@ -1302,16 +1252,16 @@ type IdentityResponse struct { IsServiceAccount bool `protobuf:"varint,6,opt,name=IsServiceAccount,json=is_service_account,proto3" json:"IsServiceAccount,omitempty"` ServiceAccounts []string `protobuf:"bytes,7,rep,name=ServiceAccounts,json=service_accounts,proto3" json:"ServiceAccounts,omitempty"` // Tags are optional metadata labels attached to the key as key-value pairs. - Tags map[string]string `protobuf:"bytes,8,rep,name=Tags,json=tags,proto3" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Tags map[string]string `protobuf:"bytes,8,rep,name=Tags,json=tags,proto3" json:"Tags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IdentityResponse) Reset() { *x = IdentityResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IdentityResponse) String() string { @@ -1322,7 +1272,7 @@ func (*IdentityResponse) ProtoMessage() {} func (x *IdentityResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1394,21 +1344,18 @@ func (x *IdentityResponse) GetTags() map[string]string { } type ListIdentitiesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Identities []*IdentityResponse `protobuf:"bytes,1,rep,name=Identities,json=identities,proto3" json:"Identities,omitempty"` + ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` unknownFields protoimpl.UnknownFields - - Identities []*IdentityResponse `protobuf:"bytes,1,rep,name=Identities,json=identities,proto3" json:"Identities,omitempty"` - ContinueAt string `protobuf:"bytes,2,opt,name=ContinueAt,json=continue_at,proto3" json:"ContinueAt,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListIdentitiesResponse) Reset() { *x = ListIdentitiesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_response_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_response_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListIdentitiesResponse) String() string { @@ -1419,7 +1366,7 @@ func (*ListIdentitiesResponse) ProtoMessage() {} func (x *ListIdentitiesResponse) ProtoReflect() protoreflect.Message { mi := &file_response_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1450,256 +1397,166 @@ func (x *ListIdentitiesResponse) GetContinueAt() string { var File_response_proto protoreflect.FileDescriptor -var file_response_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x09, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x72, 0x75, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x27, 0x0a, 0x0b, 0x45, 0x72, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0x92, 0x01, 0x0a, 0x0f, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x50, 0x49, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, 0x70, 0x69, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x6f, 0x73, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, - 0x46, 0x49, 0x50, 0x53, 0x31, 0x34, 0x30, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x66, - 0x69, 0x70, 0x73, 0x31, 0x34, 0x30, 0x22, 0xbc, 0x06, 0x0a, 0x14, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0a, 0x41, 0x50, 0x49, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x61, - 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x6f, - 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x12, 0x31, - 0x0a, 0x06, 0x55, 0x70, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x75, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x12, 0x40, 0x0a, - 0x05, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6d, - 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, - 0x13, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x6e, 0x6f, 0x64, - 0x65, 0x5f, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x08, 0x4c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x49, 0x44, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x12, 0x52, 0x09, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x12, 0x40, 0x0a, 0x0d, 0x4c, 0x61, 0x73, 0x74, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, - 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x0e, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, - 0x65, 0x61, 0x74, 0x12, 0x48, 0x0a, 0x11, 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x68, 0x65, 0x61, 0x72, 0x74, - 0x62, 0x65, 0x61, 0x74, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x44, 0x0a, - 0x0f, 0x45, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x10, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x6f, 0x75, 0x74, 0x12, 0x12, 0x0a, 0x02, 0x4f, 0x53, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x73, 0x79, 0x73, 0x5f, 0x6f, 0x73, 0x12, 0x1a, 0x0a, 0x04, 0x41, 0x72, 0x63, 0x68, 0x18, - 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x79, 0x73, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x61, - 0x72, 0x63, 0x68, 0x12, 0x19, 0x0a, 0x04, 0x43, 0x50, 0x55, 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x0b, 0x73, 0x79, 0x73, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x6e, 0x75, 0x6d, 0x12, 0x20, - 0x0a, 0x0a, 0x55, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x50, 0x55, 0x73, 0x18, 0x10, 0x20, 0x01, - 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x79, 0x73, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x75, 0x73, 0x65, 0x64, - 0x12, 0x27, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x70, 0x4d, 0x65, 0x6d, 0x49, 0x6e, 0x55, 0x73, 0x65, - 0x18, 0x11, 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x73, 0x79, 0x73, 0x5f, 0x6d, 0x65, 0x6d, 0x5f, - 0x68, 0x65, 0x61, 0x70, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x12, 0x29, 0x0a, 0x0d, 0x53, 0x74, 0x61, - 0x63, 0x6b, 0x4d, 0x65, 0x6d, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x12, 0x73, 0x79, 0x73, 0x5f, 0x6d, 0x65, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5f, - 0x75, 0x73, 0x65, 0x64, 0x12, 0x11, 0x0a, 0x04, 0x48, 0x53, 0x4d, 0x73, 0x18, 0x13, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x03, 0x68, 0x73, 0x6d, 0x12, 0x22, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x75, 0x72, 0x65, 0x64, 0x48, 0x53, 0x4d, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0a, 0x68, 0x73, 0x6d, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x1a, 0x38, 0x0a, 0x0a, 0x4e, - 0x6f, 0x64, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xeb, 0x01, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, - 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x34, 0x0a, 0x07, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x65, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x50, 0x55, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x03, 0x63, 0x70, 0x75, 0x12, 0x12, 0x0a, 0x04, 0x48, 0x65, 0x61, 0x70, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x68, 0x65, 0x61, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x47, - 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, - 0x67, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x54, 0x68, 0x72, - 0x65, 0x61, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x68, 0x72, 0x65, 0x61, - 0x64, 0x12, 0x1d, 0x0a, 0x09, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x52, 0x61, 0x74, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x72, 0x61, 0x74, 0x65, - 0x12, 0x21, 0x0a, 0x0d, 0x4d, 0x75, 0x74, 0x65, 0x78, 0x46, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x75, 0x74, 0x65, 0x78, 0x5f, 0x66, - 0x72, 0x61, 0x63, 0x22, 0xcc, 0x02, 0x0a, 0x15, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, - 0x07, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x55, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x55, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6e, - 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x75, 0x70, 0x12, 0x4e, 0x0a, 0x09, 0x4e, 0x6f, 0x64, 0x65, 0x73, - 0x44, 0x6f, 0x77, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x6d, 0x69, 0x6e, - 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x73, 0x44, 0x6f, 0x77, 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x6e, 0x6f, 0x64, - 0x65, 0x73, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x1a, 0x5b, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x73, - 0x55, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x35, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, - 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3c, 0x0a, 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x44, 0x6f, 0x77, - 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x15, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x39, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x22, 0x75, 0x0a, 0x14, 0x4c, 0x69, - 0x73, 0x74, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, - 0x2e, 0x45, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x65, 0x6e, 0x63, 0x6c, 0x61, 0x76, 0x65, 0x73, - 0x12, 0x1f, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, 0x61, - 0x74, 0x22, 0xaf, 0x01, 0x0a, 0x11, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, - 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x62, 0x79, 0x22, 0x65, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x4b, 0x65, 0x79, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x4b, 0x65, 0x79, 0x73, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, - 0x73, 0x2e, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x1f, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, - 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, - 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x22, 0x4b, 0x0a, 0x0f, 0x45, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, - 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69, 0x70, - 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x22, 0x2f, 0x0a, 0x0f, 0x44, 0x65, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x6c, - 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, - 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x6d, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, - 0x72, 0x61, 0x74, 0x65, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x6c, 0x61, - 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x6c, - 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x69, 0x70, 0x68, 0x65, - 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69, 0x70, - 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x22, 0x39, 0x0a, 0x0b, 0x4d, 0x41, 0x43, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x10, 0x0a, 0x03, 0x4d, 0x41, 0x43, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6d, - 0x61, 0x63, 0x22, 0x84, 0x01, 0x0a, 0x14, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x39, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x22, 0x8e, 0x03, 0x0a, 0x0e, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x3a, 0x0a, 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x6c, 0x6c, 0x6f, 0x77, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x12, 0x37, 0x0a, 0x04, - 0x44, 0x65, 0x6e, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x6d, 0x69, 0x6e, - 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x65, 0x6e, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x04, 0x64, 0x65, 0x6e, 0x79, 0x12, 0x39, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x12, 0x1d, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x1a, - 0x4c, 0x0a, 0x0a, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x28, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, - 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, - 0x65, 0x74, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, - 0x09, 0x44, 0x65, 0x6e, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x28, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x69, - 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x74, 0x0a, 0x14, 0x4c, 0x69, - 0x73, 0x74, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, - 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x12, - 0x1f, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x41, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x65, 0x5f, 0x61, 0x74, - 0x22, 0x8b, 0x03, 0x0a, 0x10, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x50, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x69, 0x76, 0x69, 0x6c, 0x65, 0x67, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x39, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x12, 0x1d, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, - 0x79, 0x12, 0x2c, 0x0a, 0x10, 0x49, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x12, 0x69, 0x73, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x29, 0x0a, 0x0f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x39, 0x0a, 0x04, 0x54, 0x61, - 0x67, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, - 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x04, 0x74, 0x61, 0x67, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x76, - 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x49, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, - 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, - 0x65, 0x41, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x69, - 0x6e, 0x75, 0x65, 0x5f, 0x61, 0x74, 0x42, 0x0b, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_response_proto_rawDesc = "" + + "\n" + + "\x0eresponse.proto\x12\tminio.kms\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\n" + + "rule.proto\"'\n" + + "\vErrResponse\x12\x18\n" + + "\aMessage\x18\x01 \x01(\tR\amessage\"\x92\x01\n" + + "\x0fVersionResponse\x12\x18\n" + + "\aVersion\x18\x01 \x01(\tR\aversion\x12\x16\n" + + "\x06Commit\x18\x02 \x01(\tR\x06commit\x12\x1f\n" + + "\n" + + "APIVersion\x18\x03 \x01(\tR\vapi_version\x12\x12\n" + + "\x04Host\x18\x04 \x01(\tR\x04host\x12\x18\n" + + "\aFIPS140\x18\x05 \x01(\bR\afips140\"\xbc\x06\n" + + "\x14ServerStatusResponse\x12\x18\n" + + "\aVersion\x18\x01 \x01(\tR\aversion\x12\x1f\n" + + "\n" + + "APIVersion\x18\x02 \x01(\tR\vapi_version\x12\x12\n" + + "\x04Host\x18\x03 \x01(\tR\x04host\x121\n" + + "\x06UpTime\x18\x04 \x01(\v2\x19.google.protobuf.DurationR\x06uptime\x12\x12\n" + + "\x04Role\x18\x05 \x01(\tR\x04role\x12\x16\n" + + "\x06Commit\x18\x06 \x01(\x04R\x06commit\x12@\n" + + "\x05Nodes\x18\a \x03(\v2*.minio.kms.ServerStatusResponse.NodesEntryR\x05nodes\x12\x13\n" + + "\x02ID\x18\b \x01(\rR\anode_id\x12\x1b\n" + + "\bLeaderID\x18\t \x01(\x12R\tleader_id\x12@\n" + + "\rLastHeartbeat\x18\n" + + " \x01(\v2\x19.google.protobuf.DurationR\x0elast_heartbeat\x12H\n" + + "\x11HeartbeatInterval\x18\v \x01(\v2\x19.google.protobuf.DurationR\x12heartbeat_interval\x12D\n" + + "\x0fElectionTimeout\x18\f \x01(\v2\x19.google.protobuf.DurationR\x10election_timeout\x12\x12\n" + + "\x02OS\x18\r \x01(\tR\x06sys_os\x12\x1a\n" + + "\x04Arch\x18\x0e \x01(\tR\fsys_cpu_arch\x12\x19\n" + + "\x04CPUs\x18\x0f \x01(\rR\vsys_cpu_num\x12 \n" + + "\n" + + "UsableCPUs\x18\x10 \x01(\rR\fsys_cpu_used\x12'\n" + + "\fHeapMemInUse\x18\x11 \x01(\x04R\x11sys_mem_heap_used\x12)\n" + + "\rStackMemInUse\x18\x12 \x01(\x04R\x12sys_mem_stack_used\x12\x11\n" + + "\x04HSMs\x18\x13 \x03(\tR\x03hsm\x12\"\n" + + "\x0eConfiguredHSMs\x18\x14 \x03(\tR\n" + + "hsm_active\x1a8\n" + + "\n" + + "NodesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\rR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xeb\x01\n" + + "\x15ProfileStatusResponse\x124\n" + + "\aStarted\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\astarted\x12\x10\n" + + "\x03CPU\x18\x02 \x01(\bR\x03cpu\x12\x12\n" + + "\x04Heap\x18\x03 \x01(\bR\x04heap\x12\x1c\n" + + "\tGoroutine\x18\x04 \x01(\bR\tgoroutine\x12\x16\n" + + "\x06Thread\x18\x05 \x01(\bR\x06thread\x12\x1d\n" + + "\tBlockRate\x18\x06 \x01(\rR\n" + + "block_rate\x12!\n" + + "\rMutexFraction\x18\a \x01(\rR\n" + + "mutex_frac\"\xcc\x02\n" + + "\x15ClusterStatusResponse\x12H\n" + + "\aNodesUp\x18\x01 \x03(\v2-.minio.kms.ClusterStatusResponse.NodesUpEntryR\bnodes_up\x12N\n" + + "\tNodesDown\x18\x02 \x03(\v2/.minio.kms.ClusterStatusResponse.NodesDownEntryR\n" + + "nodes_down\x1a[\n" + + "\fNodesUpEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\rR\x03key\x125\n" + + "\x05value\x18\x02 \x01(\v2\x1f.minio.kms.ServerStatusResponseR\x05value:\x028\x01\x1a<\n" + + "\x0eNodesDownEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\rR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x85\x01\n" + + "\x15EnclaveStatusResponse\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x129\n" + + "\tCreatedAt\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "created_at\x12\x1d\n" + + "\tCreatedBy\x18\x03 \x01(\tR\n" + + "created_by\"u\n" + + "\x14ListEnclavesResponse\x12<\n" + + "\bEnclaves\x18\x01 \x03(\v2 .minio.kms.EnclaveStatusResponseR\benclaves\x12\x1f\n" + + "\n" + + "ContinueAt\x18\x02 \x01(\tR\vcontinue_at\"\xaf\x01\n" + + "\x11KeyStatusResponse\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12\x18\n" + + "\aVersion\x18\x02 \x01(\rR\aversion\x12\x12\n" + + "\x04Type\x18\x03 \x01(\tR\x04type\x129\n" + + "\tCreatedAt\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "created_at\x12\x1d\n" + + "\tCreatedBy\x18\x05 \x01(\tR\n" + + "created_by\"e\n" + + "\x10ListKeysResponse\x120\n" + + "\x04Keys\x18\x01 \x03(\v2\x1c.minio.kms.KeyStatusResponseR\x04keys\x12\x1f\n" + + "\n" + + "ContinueAt\x18\x02 \x01(\tR\vcontinue_at\"K\n" + + "\x0fEncryptResponse\x12\x18\n" + + "\aVersion\x18\x01 \x01(\rR\aversion\x12\x1e\n" + + "\n" + + "Ciphertext\x18\x02 \x01(\fR\n" + + "ciphertext\"/\n" + + "\x0fDecryptResponse\x12\x1c\n" + + "\tPlaintext\x18\x01 \x01(\fR\tplaintext\"m\n" + + "\x13GenerateKeyResponse\x12\x18\n" + + "\aVersion\x18\x01 \x01(\rR\aversion\x12\x1c\n" + + "\tPlaintext\x18\x02 \x01(\fR\tplaintext\x12\x1e\n" + + "\n" + + "Ciphertext\x18\x03 \x01(\fR\n" + + "ciphertext\"9\n" + + "\vMACResponse\x12\x18\n" + + "\aVersion\x18\x01 \x01(\rR\aversion\x12\x10\n" + + "\x03MAC\x18\x02 \x01(\fR\x03mac\"\x84\x01\n" + + "\x14PolicyStatusResponse\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x129\n" + + "\tCreatedAt\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "created_at\x12\x1d\n" + + "\tCreatedBy\x18\x05 \x01(\tR\n" + + "created_by\"\x8e\x03\n" + + "\x0ePolicyResponse\x12\x12\n" + + "\x04Name\x18\x01 \x01(\tR\x04name\x12:\n" + + "\x05Allow\x18\x02 \x03(\v2$.minio.kms.PolicyResponse.AllowEntryR\x05allow\x127\n" + + "\x04Deny\x18\x03 \x03(\v2#.minio.kms.PolicyResponse.DenyEntryR\x04deny\x129\n" + + "\tCreatedAt\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "created_at\x12\x1d\n" + + "\tCreatedBy\x18\x05 \x01(\tR\n" + + "created_by\x1aL\n" + + "\n" + + "AllowEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12(\n" + + "\x05value\x18\x02 \x01(\v2\x12.minio.kms.RuleSetR\x05value:\x028\x01\x1aK\n" + + "\tDenyEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12(\n" + + "\x05value\x18\x02 \x01(\v2\x12.minio.kms.RuleSetR\x05value:\x028\x01\"t\n" + + "\x14ListPoliciesResponse\x12;\n" + + "\bPolicies\x18\x01 \x03(\v2\x1f.minio.kms.PolicyStatusResponseR\bpolicies\x12\x1f\n" + + "\n" + + "ContinueAt\x18\x02 \x01(\tR\vcontinue_at\"\x8b\x03\n" + + "\x10IdentityResponse\x12\x1a\n" + + "\bIdentity\x18\x01 \x01(\tR\bidentity\x12\x1c\n" + + "\tPrivilege\x18\x02 \x01(\rR\tprivilege\x12\x16\n" + + "\x06Policy\x18\x03 \x01(\tR\x06policy\x129\n" + + "\tCreatedAt\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "created_at\x12\x1d\n" + + "\tCreatedBy\x18\x05 \x01(\tR\n" + + "created_by\x12,\n" + + "\x10IsServiceAccount\x18\x06 \x01(\bR\x12is_service_account\x12)\n" + + "\x0fServiceAccounts\x18\a \x03(\tR\x10service_accounts\x129\n" + + "\x04Tags\x18\b \x03(\v2%.minio.kms.IdentityResponse.TagsEntryR\x04tags\x1a7\n" + + "\tTagsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"v\n" + + "\x16ListIdentitiesResponse\x12;\n" + + "\n" + + "Identities\x18\x01 \x03(\v2\x1b.minio.kms.IdentityResponseR\n" + + "identities\x12\x1f\n" + + "\n" + + "ContinueAt\x18\x02 \x01(\tR\vcontinue_atB\vZ\t/protobufb\x06proto3" var ( file_response_proto_rawDescOnce sync.Once - file_response_proto_rawDescData = file_response_proto_rawDesc + file_response_proto_rawDescData []byte ) func file_response_proto_rawDescGZIP() []byte { file_response_proto_rawDescOnce.Do(func() { - file_response_proto_rawDescData = protoimpl.X.CompressGZIP(file_response_proto_rawDescData) + file_response_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_response_proto_rawDesc), len(file_response_proto_rawDesc))) }) return file_response_proto_rawDescData } var file_response_proto_msgTypes = make([]protoimpl.MessageInfo, 24) -var file_response_proto_goTypes = []interface{}{ +var file_response_proto_goTypes = []any{ (*ErrResponse)(nil), // 0: minio.kms.ErrResponse (*VersionResponse)(nil), // 1: minio.kms.VersionResponse (*ServerStatusResponse)(nil), // 2: minio.kms.ServerStatusResponse @@ -1765,229 +1622,11 @@ func file_response_proto_init() { return } file_rule_proto_init() - if !protoimpl.UnsafeEnabled { - file_response_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ErrResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProfileStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ClusterStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EnclaveStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListEnclavesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KeyStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListKeysResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*EncryptResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecryptResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GenerateKeyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*MACResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PolicyStatusResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PolicyResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListPoliciesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IdentityResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_response_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListIdentitiesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_response_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_response_proto_rawDesc), len(file_response_proto_rawDesc)), NumEnums: 0, NumMessages: 24, NumExtensions: 0, @@ -1998,7 +1637,6 @@ func file_response_proto_init() { MessageInfos: file_response_proto_msgTypes, }.Build() File_response_proto = out.File - file_response_proto_rawDesc = nil file_response_proto_goTypes = nil file_response_proto_depIdxs = nil } diff --git a/kms/protobuf/rule.pb.go b/kms/protobuf/rule.pb.go index 7639fff..424355b 100644 --- a/kms/protobuf/rule.pb.go +++ b/kms/protobuf/rule.pb.go @@ -4,8 +4,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.33.0 -// protoc v5.29.3 +// protoc-gen-go v1.36.12 +// protoc v7.36.2 // source: rule.proto package protobuf @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) const ( @@ -25,18 +26,16 @@ const ( ) type Rule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Rule) Reset() { *x = Rule{} - if protoimpl.UnsafeEnabled { - mi := &file_rule_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_rule_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Rule) String() string { @@ -47,7 +46,7 @@ func (*Rule) ProtoMessage() {} func (x *Rule) ProtoReflect() protoreflect.Message { mi := &file_rule_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -63,20 +62,17 @@ func (*Rule) Descriptor() ([]byte, []int) { } type RuleSet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rules map[string]*Rule `protobuf:"bytes,1,rep,name=Rules,json=rules,proto3" json:"Rules,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Rules map[string]*Rule `protobuf:"bytes,1,rep,name=Rules,json=rules,proto3" json:"Rules,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *RuleSet) Reset() { *x = RuleSet{} - if protoimpl.UnsafeEnabled { - mi := &file_rule_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_rule_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RuleSet) String() string { @@ -87,7 +83,7 @@ func (*RuleSet) ProtoMessage() {} func (x *RuleSet) ProtoReflect() protoreflect.Message { mi := &file_rule_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -111,35 +107,32 @@ func (x *RuleSet) GetRules() map[string]*Rule { var File_rule_proto protoreflect.FileDescriptor -var file_rule_proto_rawDesc = []byte{ - 0x0a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6d, 0x69, - 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x22, 0x06, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, 0x22, - 0x89, 0x01, 0x0a, 0x07, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x33, 0x0a, 0x05, 0x52, - 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6d, 0x69, 0x6e, - 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x52, - 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x1a, 0x49, 0x0a, 0x0a, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x25, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0f, 0x2e, 0x6d, 0x69, 0x6e, 0x69, 0x6f, 0x2e, 0x6b, 0x6d, 0x73, 0x2e, 0x52, 0x75, 0x6c, 0x65, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x0b, 0x5a, 0x09, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} +const file_rule_proto_rawDesc = "" + + "\n" + + "\n" + + "rule.proto\x12\tminio.kms\"\x06\n" + + "\x04Rule\"\x89\x01\n" + + "\aRuleSet\x123\n" + + "\x05Rules\x18\x01 \x03(\v2\x1d.minio.kms.RuleSet.RulesEntryR\x05rules\x1aI\n" + + "\n" + + "RulesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12%\n" + + "\x05value\x18\x02 \x01(\v2\x0f.minio.kms.RuleR\x05value:\x028\x01B\vZ\t/protobufb\x06proto3" var ( file_rule_proto_rawDescOnce sync.Once - file_rule_proto_rawDescData = file_rule_proto_rawDesc + file_rule_proto_rawDescData []byte ) func file_rule_proto_rawDescGZIP() []byte { file_rule_proto_rawDescOnce.Do(func() { - file_rule_proto_rawDescData = protoimpl.X.CompressGZIP(file_rule_proto_rawDescData) + file_rule_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rule_proto_rawDesc), len(file_rule_proto_rawDesc))) }) return file_rule_proto_rawDescData } var file_rule_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_rule_proto_goTypes = []interface{}{ +var file_rule_proto_goTypes = []any{ (*Rule)(nil), // 0: minio.kms.Rule (*RuleSet)(nil), // 1: minio.kms.RuleSet nil, // 2: minio.kms.RuleSet.RulesEntry @@ -159,37 +152,11 @@ func file_rule_proto_init() { if File_rule_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_rule_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Rule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_rule_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RuleSet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_rule_proto_rawDesc, + RawDescriptor: unsafe.Slice(unsafe.StringData(file_rule_proto_rawDesc), len(file_rule_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, @@ -200,7 +167,6 @@ func file_rule_proto_init() { MessageInfos: file_rule_proto_msgTypes, }.Build() File_rule_proto = out.File - file_rule_proto_rawDesc = nil file_rule_proto_goTypes = nil file_rule_proto_depIdxs = nil } diff --git a/kms/request.go b/kms/request.go index cddba44..3b11b39 100644 --- a/kms/request.go +++ b/kms/request.go @@ -522,6 +522,75 @@ func (r *ImportKeyRequest) UnmarshalPB(v *pb.ImportKeyRequest) error { return nil } +// ImportKeyVersion is a single secret key version of an ImportKeyRingRequest. +type ImportKeyVersion struct { + // Version is the version number of the key version. It is required + // and must be non-zero and unique within the key ring. The KMS server + // verifies this. + Version uint32 + + // Type of the key version. For example, AES256. + // If not set, the server will pick a key type. + Type SecretKeyType + + // Key is the secret key imported into the KMS server. + // It must be a valid key for the given key type. + Key []byte +} + +// ImportKeyRingRequest contains options for importing a full key ring, +// i.e. a key with all of its versions, in a single request. +type ImportKeyRingRequest struct { + // Name is the name of the key to create. + Name string + + // Versions are the key versions of the key ring. It must contain + // at least one key version. The order of the key versions is given + // by ImportKeyVersion.Version, not by the order of this slice. + Versions []ImportKeyVersion +} + +// MarshalPB converts the ImportKeyRingRequest into its protobuf representation. +func (r *ImportKeyRingRequest) MarshalPB(v *pb.ImportKeyRingRequest) error { + if r.Name == "" { + return errors.New("kms: invalid ImportKeyRingRequest: name is empty") + } + if len(r.Versions) == 0 { + return errors.New("kms: invalid ImportKeyRingRequest: no key versions") + } + + v.Name = r.Name + v.Versions = make([]*pb.ImportKeyRingVersion, 0, len(r.Versions)) + for _, version := range r.Versions { + pv := &pb.ImportKeyRingVersion{Key: version.Key, Version: version.Version} + if version.Type != 0 { + pv.Type = version.Type.String() + } + v.Versions = append(v.Versions, pv) + } + return nil +} + +// UnmarshalPB initializes the ImportKeyRingRequest from its protobuf representation. +func (r *ImportKeyRingRequest) UnmarshalPB(v *pb.ImportKeyRingRequest) error { + versions := make([]ImportKeyVersion, 0, len(v.Versions)) + for _, pv := range v.Versions { + var t SecretKeyType + if pv.GetType() != "" { + var err error + t, err = ParseSecretKeyType(pv.GetType()) + if err != nil { + return err + } + } + versions = append(versions, ImportKeyVersion{Type: t, Key: pv.GetKey(), Version: pv.GetVersion()}) + } + + r.Name = v.Name + r.Versions = versions + return nil +} + // DeleteKeyRequest contains options for deleting secret keys. // // For removing just a single key version from a key refer to