| 1 |
/* |
| 2 |
Copyright The Kubernetes Authors. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
// |
| 18 |
//Copyright 2022 The Kubernetes Authors. |
| 19 |
// |
| 20 |
//Licensed under the Apache License, Version 2.0 (the "License"); |
| 21 |
//you may not use this file except in compliance with the License. |
| 22 |
//You may obtain a copy of the License at |
| 23 |
// |
| 24 |
//http://www.apache.org/licenses/LICENSE-2.0 |
| 25 |
// |
| 26 |
//Unless required by applicable law or agreed to in writing, software |
| 27 |
//distributed under the License is distributed on an "AS IS" BASIS, |
| 28 |
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 29 |
//See the License for the specific language governing permissions and |
| 30 |
//limitations under the License. |
| 31 |
|
| 32 |
// To regenerate api.pb.go run `hack/update-codegen.sh protobindings` |
| 33 |
|
| 34 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 35 |
// versions: |
| 36 |
// protoc-gen-go v1.36.4 |
| 37 |
// protoc v4.23.4 |
| 38 |
// source: staging/src/k8s.io/kms/apis/v2/api.proto |
| 39 |
|
| 40 |
package v2 |
| 41 |
|
| 42 |
import ( |
| 43 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 44 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 45 |
reflect "reflect" |
| 46 |
sync "sync" |
| 47 |
unsafe "unsafe" |
| 48 |
) |
| 49 |
|
| 50 |
const ( |
| 51 |
// Verify that this generated code is sufficiently up-to-date. |
| 52 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 53 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 54 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 55 |
) |
| 56 |
|
| 57 |
type StatusRequest struct { |
| 58 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 59 |
unknownFields protoimpl.UnknownFields |
| 60 |
sizeCache protoimpl.SizeCache |
| 61 |
} |
| 62 |
|
| 63 |
func (x *StatusRequest) Reset() { |
| 64 |
*x = StatusRequest{} |
| 65 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[0] |
| 66 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 67 |
ms.StoreMessageInfo(mi) |
| 68 |
} |
| 69 |
|
| 70 |
func (x *StatusRequest) String() string { |
| 71 |
return protoimpl.X.MessageStringOf(x) |
| 72 |
} |
| 73 |
|
| 74 |
func (*StatusRequest) ProtoMessage() {} |
| 75 |
|
| 76 |
func (x *StatusRequest) ProtoReflect() protoreflect.Message { |
| 77 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[0] |
| 78 |
if x != nil { |
| 79 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 80 |
if ms.LoadMessageInfo() == nil { |
| 81 |
ms.StoreMessageInfo(mi) |
| 82 |
} |
| 83 |
return ms |
| 84 |
} |
| 85 |
return mi.MessageOf(x) |
| 86 |
} |
| 87 |
|
| 88 |
// Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead. |
| 89 |
func (*StatusRequest) Descriptor() ([]byte, []int) { |
| 90 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP(), []int{0} |
| 91 |
} |
| 92 |
|
| 93 |
type StatusResponse struct { |
| 94 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 95 |
// Version of the KMS gRPC plugin API. Must equal v2 to v2beta1 (v2 is recommended, but both are equivalent). |
| 96 |
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` |
| 97 |
// Any value other than "ok" is failing healthz. On failure, the associated API server healthz endpoint will contain this value as part of the error message. |
| 98 |
Healthz string `protobuf:"bytes,2,opt,name=healthz,proto3" json:"healthz,omitempty"` |
| 99 |
// the current write key, used to determine staleness of data updated via value.Transformer.TransformFromStorage. |
| 100 |
// keyID must satisfy the following constraints: |
| 101 |
// 1. The keyID is not empty. |
| 102 |
// 2. The size of keyID is less than 1 kB. |
| 103 |
KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` |
| 104 |
unknownFields protoimpl.UnknownFields |
| 105 |
sizeCache protoimpl.SizeCache |
| 106 |
} |
| 107 |
|
| 108 |
func (x *StatusResponse) Reset() { |
| 109 |
*x = StatusResponse{} |
| 110 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[1] |
| 111 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 112 |
ms.StoreMessageInfo(mi) |
| 113 |
} |
| 114 |
|
| 115 |
func (x *StatusResponse) String() string { |
| 116 |
return protoimpl.X.MessageStringOf(x) |
| 117 |
} |
| 118 |
|
| 119 |
func (*StatusResponse) ProtoMessage() {} |
| 120 |
|
| 121 |
func (x *StatusResponse) ProtoReflect() protoreflect.Message { |
| 122 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[1] |
| 123 |
if x != nil { |
| 124 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 125 |
if ms.LoadMessageInfo() == nil { |
| 126 |
ms.StoreMessageInfo(mi) |
| 127 |
} |
| 128 |
return ms |
| 129 |
} |
| 130 |
return mi.MessageOf(x) |
| 131 |
} |
| 132 |
|
| 133 |
// Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead. |
| 134 |
func (*StatusResponse) Descriptor() ([]byte, []int) { |
| 135 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP(), []int{1} |
| 136 |
} |
| 137 |
|
| 138 |
func (x *StatusResponse) GetVersion() string { |
| 139 |
if x != nil { |
| 140 |
return x.Version |
| 141 |
} |
| 142 |
return "" |
| 143 |
} |
| 144 |
|
| 145 |
func (x *StatusResponse) GetHealthz() string { |
| 146 |
if x != nil { |
| 147 |
return x.Healthz |
| 148 |
} |
| 149 |
return "" |
| 150 |
} |
| 151 |
|
| 152 |
func (x *StatusResponse) GetKeyId() string { |
| 153 |
if x != nil { |
| 154 |
return x.KeyId |
| 155 |
} |
| 156 |
return "" |
| 157 |
} |
| 158 |
|
| 159 |
type DecryptRequest struct { |
| 160 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 161 |
// The data to be decrypted. |
| 162 |
Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` |
| 163 |
// UID is a unique identifier for the request. |
| 164 |
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` |
| 165 |
// The keyID that was provided to the apiserver during encryption. |
| 166 |
// This represents the KMS KEK that was used to encrypt the data. |
| 167 |
KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` |
| 168 |
// Additional metadata that was sent by the KMS plugin during encryption. |
| 169 |
Annotations map[string][]byte `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 170 |
unknownFields protoimpl.UnknownFields |
| 171 |
sizeCache protoimpl.SizeCache |
| 172 |
} |
| 173 |
|
| 174 |
func (x *DecryptRequest) Reset() { |
| 175 |
*x = DecryptRequest{} |
| 176 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[2] |
| 177 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 178 |
ms.StoreMessageInfo(mi) |
| 179 |
} |
| 180 |
|
| 181 |
func (x *DecryptRequest) String() string { |
| 182 |
return protoimpl.X.MessageStringOf(x) |
| 183 |
} |
| 184 |
|
| 185 |
func (*DecryptRequest) ProtoMessage() {} |
| 186 |
|
| 187 |
func (x *DecryptRequest) ProtoReflect() protoreflect.Message { |
| 188 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[2] |
| 189 |
if x != nil { |
| 190 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 191 |
if ms.LoadMessageInfo() == nil { |
| 192 |
ms.StoreMessageInfo(mi) |
| 193 |
} |
| 194 |
return ms |
| 195 |
} |
| 196 |
return mi.MessageOf(x) |
| 197 |
} |
| 198 |
|
| 199 |
// Deprecated: Use DecryptRequest.ProtoReflect.Descriptor instead. |
| 200 |
func (*DecryptRequest) Descriptor() ([]byte, []int) { |
| 201 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP(), []int{2} |
| 202 |
} |
| 203 |
|
| 204 |
func (x *DecryptRequest) GetCiphertext() []byte { |
| 205 |
if x != nil { |
| 206 |
return x.Ciphertext |
| 207 |
} |
| 208 |
return nil |
| 209 |
} |
| 210 |
|
| 211 |
func (x *DecryptRequest) GetUid() string { |
| 212 |
if x != nil { |
| 213 |
return x.Uid |
| 214 |
} |
| 215 |
return "" |
| 216 |
} |
| 217 |
|
| 218 |
func (x *DecryptRequest) GetKeyId() string { |
| 219 |
if x != nil { |
| 220 |
return x.KeyId |
| 221 |
} |
| 222 |
return "" |
| 223 |
} |
| 224 |
|
| 225 |
func (x *DecryptRequest) GetAnnotations() map[string][]byte { |
| 226 |
if x != nil { |
| 227 |
return x.Annotations |
| 228 |
} |
| 229 |
return nil |
| 230 |
} |
| 231 |
|
| 232 |
type DecryptResponse struct { |
| 233 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 234 |
// The decrypted data. |
| 235 |
Plaintext []byte `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"` |
| 236 |
unknownFields protoimpl.UnknownFields |
| 237 |
sizeCache protoimpl.SizeCache |
| 238 |
} |
| 239 |
|
| 240 |
func (x *DecryptResponse) Reset() { |
| 241 |
*x = DecryptResponse{} |
| 242 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[3] |
| 243 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 244 |
ms.StoreMessageInfo(mi) |
| 245 |
} |
| 246 |
|
| 247 |
func (x *DecryptResponse) String() string { |
| 248 |
return protoimpl.X.MessageStringOf(x) |
| 249 |
} |
| 250 |
|
| 251 |
func (*DecryptResponse) ProtoMessage() {} |
| 252 |
|
| 253 |
func (x *DecryptResponse) ProtoReflect() protoreflect.Message { |
| 254 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[3] |
| 255 |
if x != nil { |
| 256 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 257 |
if ms.LoadMessageInfo() == nil { |
| 258 |
ms.StoreMessageInfo(mi) |
| 259 |
} |
| 260 |
return ms |
| 261 |
} |
| 262 |
return mi.MessageOf(x) |
| 263 |
} |
| 264 |
|
| 265 |
// Deprecated: Use DecryptResponse.ProtoReflect.Descriptor instead. |
| 266 |
func (*DecryptResponse) Descriptor() ([]byte, []int) { |
| 267 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP(), []int{3} |
| 268 |
} |
| 269 |
|
| 270 |
func (x *DecryptResponse) GetPlaintext() []byte { |
| 271 |
if x != nil { |
| 272 |
return x.Plaintext |
| 273 |
} |
| 274 |
return nil |
| 275 |
} |
| 276 |
|
| 277 |
type EncryptRequest struct { |
| 278 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 279 |
// The data to be encrypted. |
| 280 |
Plaintext []byte `protobuf:"bytes,1,opt,name=plaintext,proto3" json:"plaintext,omitempty"` |
| 281 |
// UID is a unique identifier for the request. |
| 282 |
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid,omitempty"` |
| 283 |
unknownFields protoimpl.UnknownFields |
| 284 |
sizeCache protoimpl.SizeCache |
| 285 |
} |
| 286 |
|
| 287 |
func (x *EncryptRequest) Reset() { |
| 288 |
*x = EncryptRequest{} |
| 289 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[4] |
| 290 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 291 |
ms.StoreMessageInfo(mi) |
| 292 |
} |
| 293 |
|
| 294 |
func (x *EncryptRequest) String() string { |
| 295 |
return protoimpl.X.MessageStringOf(x) |
| 296 |
} |
| 297 |
|
| 298 |
func (*EncryptRequest) ProtoMessage() {} |
| 299 |
|
| 300 |
func (x *EncryptRequest) ProtoReflect() protoreflect.Message { |
| 301 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[4] |
| 302 |
if x != nil { |
| 303 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 304 |
if ms.LoadMessageInfo() == nil { |
| 305 |
ms.StoreMessageInfo(mi) |
| 306 |
} |
| 307 |
return ms |
| 308 |
} |
| 309 |
return mi.MessageOf(x) |
| 310 |
} |
| 311 |
|
| 312 |
// Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead. |
| 313 |
func (*EncryptRequest) Descriptor() ([]byte, []int) { |
| 314 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP(), []int{4} |
| 315 |
} |
| 316 |
|
| 317 |
func (x *EncryptRequest) GetPlaintext() []byte { |
| 318 |
if x != nil { |
| 319 |
return x.Plaintext |
| 320 |
} |
| 321 |
return nil |
| 322 |
} |
| 323 |
|
| 324 |
func (x *EncryptRequest) GetUid() string { |
| 325 |
if x != nil { |
| 326 |
return x.Uid |
| 327 |
} |
| 328 |
return "" |
| 329 |
} |
| 330 |
|
| 331 |
type EncryptResponse struct { |
| 332 |
state protoimpl.MessageState `protogen:"open.v1"` |
| 333 |
// The encrypted data. |
| 334 |
// ciphertext must satisfy the following constraints: |
| 335 |
// 1. The ciphertext is not empty. |
| 336 |
// 2. The ciphertext is less than 1 kB. |
| 337 |
Ciphertext []byte `protobuf:"bytes,1,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` |
| 338 |
// The KMS key ID used to encrypt the data. This must always refer to the KMS KEK and not any local KEKs that may be in use. |
| 339 |
// This can be used to inform staleness of data updated via value.Transformer.TransformFromStorage. |
| 340 |
// keyID must satisfy the following constraints: |
| 341 |
// 1. The keyID is not empty. |
| 342 |
// 2. The size of keyID is less than 1 kB. |
| 343 |
KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` |
| 344 |
// Additional metadata to be stored with the encrypted data. |
| 345 |
// This data is stored in plaintext in etcd. KMS plugin implementations are responsible for pre-encrypting any sensitive data. |
| 346 |
// Annotations must satisfy the following constraints: |
| 347 |
// 1. Annotation key must be a fully qualified domain name that conforms to the definition in DNS (RFC 1123). |
| 348 |
// 2. The size of annotations keys + values is less than 32 kB. |
| 349 |
Annotations map[string][]byte `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 350 |
unknownFields protoimpl.UnknownFields |
| 351 |
sizeCache protoimpl.SizeCache |
| 352 |
} |
| 353 |
|
| 354 |
func (x *EncryptResponse) Reset() { |
| 355 |
*x = EncryptResponse{} |
| 356 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[5] |
| 357 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 358 |
ms.StoreMessageInfo(mi) |
| 359 |
} |
| 360 |
|
| 361 |
func (x *EncryptResponse) String() string { |
| 362 |
return protoimpl.X.MessageStringOf(x) |
| 363 |
} |
| 364 |
|
| 365 |
func (*EncryptResponse) ProtoMessage() {} |
| 366 |
|
| 367 |
func (x *EncryptResponse) ProtoReflect() protoreflect.Message { |
| 368 |
mi := &file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes[5] |
| 369 |
if x != nil { |
| 370 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 371 |
if ms.LoadMessageInfo() == nil { |
| 372 |
ms.StoreMessageInfo(mi) |
| 373 |
} |
| 374 |
return ms |
| 375 |
} |
| 376 |
return mi.MessageOf(x) |
| 377 |
} |
| 378 |
|
| 379 |
// Deprecated: Use EncryptResponse.ProtoReflect.Descriptor instead. |
| 380 |
func (*EncryptResponse) Descriptor() ([]byte, []int) { |
| 381 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP(), []int{5} |
| 382 |
} |
| 383 |
|
| 384 |
func (x *EncryptResponse) GetCiphertext() []byte { |
| 385 |
if x != nil { |
| 386 |
return x.Ciphertext |
| 387 |
} |
| 388 |
return nil |
| 389 |
} |
| 390 |
|
| 391 |
func (x *EncryptResponse) GetKeyId() string { |
| 392 |
if x != nil { |
| 393 |
return x.KeyId |
| 394 |
} |
| 395 |
return "" |
| 396 |
} |
| 397 |
|
| 398 |
func (x *EncryptResponse) GetAnnotations() map[string][]byte { |
| 399 |
if x != nil { |
| 400 |
return x.Annotations |
| 401 |
} |
| 402 |
return nil |
| 403 |
} |
| 404 |
|
| 405 |
var File_staging_src_k8s_io_kms_apis_v2_api_proto protoreflect.FileDescriptor |
| 406 |
|
| 407 |
var file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDesc = string([]byte{ |
| 408 |
0x0a, 0x28, 0x73, 0x74, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x2f, 0x73, 0x72, 0x63, 0x2f, 0x6b, 0x38, |
| 409 |
0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x76, 0x32, |
| 410 |
0x2f, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x76, 0x32, 0x22, 0x0f, |
| 411 |
0x0a, 0x0d, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, |
| 412 |
0x5b, 0x0a, 0x0e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, |
| 413 |
0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, |
| 414 |
0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x68, |
| 415 |
0x65, 0x61, 0x6c, 0x74, 0x68, 0x7a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, |
| 416 |
0x61, 0x6c, 0x74, 0x68, 0x7a, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, |
| 417 |
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x22, 0xe0, 0x01, 0x0a, |
| 418 |
0x0e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, |
| 419 |
0x1e, 0x0a, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, |
| 420 |
0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, |
| 421 |
0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, |
| 422 |
0x64, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 423 |
0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x45, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, |
| 424 |
0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, |
| 425 |
0x76, 0x32, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 426 |
0x74, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, |
| 427 |
0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, |
| 428 |
0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, |
| 429 |
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 430 |
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, |
| 431 |
0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, |
| 432 |
0x2f, 0x0a, 0x0f, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, |
| 433 |
0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, |
| 434 |
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 435 |
0x22, 0x40, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, |
| 436 |
0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, |
| 437 |
0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, |
| 438 |
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, |
| 439 |
0x69, 0x64, 0x22, 0xd0, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, |
| 440 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x69, 0x70, 0x68, 0x65, 0x72, |
| 441 |
0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x69, 0x70, 0x68, |
| 442 |
0x65, 0x72, 0x74, 0x65, 0x78, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, |
| 443 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x46, 0x0a, |
| 444 |
0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, |
| 445 |
0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, |
| 446 |
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, |
| 447 |
0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, |
| 448 |
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, |
| 449 |
0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, |
| 450 |
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, |
| 451 |
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 452 |
0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0xb5, 0x01, 0x0a, 0x14, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x6e, |
| 453 |
0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x31, |
| 454 |
0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x11, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, |
| 455 |
0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x12, 0x2e, 0x76, 0x32, |
| 456 |
0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, |
| 457 |
0x00, 0x12, 0x34, 0x0a, 0x07, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x12, 0x12, 0x2e, 0x76, |
| 458 |
0x32, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, |
| 459 |
0x1a, 0x13, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, 0x65, 0x73, |
| 460 |
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x34, 0x0a, 0x07, 0x45, 0x6e, 0x63, 0x72, 0x79, |
| 461 |
0x70, 0x74, 0x12, 0x12, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x52, |
| 462 |
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, |
| 463 |
0x79, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x14, 0x5a, |
| 464 |
0x12, 0x6b, 0x38, 0x73, 0x2e, 0x69, 0x6f, 0x2f, 0x6b, 0x6d, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x73, |
| 465 |
0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 466 |
}) |
| 467 |
|
| 468 |
var ( |
| 469 |
file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescOnce sync.Once |
| 470 |
file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescData []byte |
| 471 |
) |
| 472 |
|
| 473 |
func file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescGZIP() []byte { |
| 474 |
file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescOnce.Do(func() { |
| 475 |
file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDesc), len(file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDesc))) |
| 476 |
}) |
| 477 |
return file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDescData |
| 478 |
} |
| 479 |
|
| 480 |
var file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes = make([]protoimpl.MessageInfo, 8) |
| 481 |
var file_staging_src_k8s_io_kms_apis_v2_api_proto_goTypes = []any{ |
| 482 |
(*StatusRequest)(nil), // 0: v2.StatusRequest |
| 483 |
(*StatusResponse)(nil), // 1: v2.StatusResponse |
| 484 |
(*DecryptRequest)(nil), // 2: v2.DecryptRequest |
| 485 |
(*DecryptResponse)(nil), // 3: v2.DecryptResponse |
| 486 |
(*EncryptRequest)(nil), // 4: v2.EncryptRequest |
| 487 |
(*EncryptResponse)(nil), // 5: v2.EncryptResponse |
| 488 |
nil, // 6: v2.DecryptRequest.AnnotationsEntry |
| 489 |
nil, // 7: v2.EncryptResponse.AnnotationsEntry |
| 490 |
} |
| 491 |
var file_staging_src_k8s_io_kms_apis_v2_api_proto_depIdxs = []int32{ |
| 492 |
6, // 0: v2.DecryptRequest.annotations:type_name -> v2.DecryptRequest.AnnotationsEntry |
| 493 |
7, // 1: v2.EncryptResponse.annotations:type_name -> v2.EncryptResponse.AnnotationsEntry |
| 494 |
0, // 2: v2.KeyManagementService.Status:input_type -> v2.StatusRequest |
| 495 |
2, // 3: v2.KeyManagementService.Decrypt:input_type -> v2.DecryptRequest |
| 496 |
4, // 4: v2.KeyManagementService.Encrypt:input_type -> v2.EncryptRequest |
| 497 |
1, // 5: v2.KeyManagementService.Status:output_type -> v2.StatusResponse |
| 498 |
3, // 6: v2.KeyManagementService.Decrypt:output_type -> v2.DecryptResponse |
| 499 |
5, // 7: v2.KeyManagementService.Encrypt:output_type -> v2.EncryptResponse |
| 500 |
5, // [5:8] is the sub-list for method output_type |
| 501 |
2, // [2:5] is the sub-list for method input_type |
| 502 |
2, // [2:2] is the sub-list for extension type_name |
| 503 |
2, // [2:2] is the sub-list for extension extendee |
| 504 |
0, // [0:2] is the sub-list for field type_name |
| 505 |
} |
| 506 |
|
| 507 |
func init() { file_staging_src_k8s_io_kms_apis_v2_api_proto_init() } |
| 508 |
func file_staging_src_k8s_io_kms_apis_v2_api_proto_init() { |
| 509 |
if File_staging_src_k8s_io_kms_apis_v2_api_proto != nil { |
| 510 |
return |
| 511 |
} |
| 512 |
type x struct{} |
| 513 |
out := protoimpl.TypeBuilder{ |
| 514 |
File: protoimpl.DescBuilder{ |
| 515 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 516 |
RawDescriptor: unsafe.Slice(unsafe.StringData(file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDesc), len(file_staging_src_k8s_io_kms_apis_v2_api_proto_rawDesc)), |
| 517 |
NumEnums: 0, |
| 518 |
NumMessages: 8, |
| 519 |
NumExtensions: 0, |
| 520 |
NumServices: 1, |
| 521 |
}, |
| 522 |
GoTypes: file_staging_src_k8s_io_kms_apis_v2_api_proto_goTypes, |
| 523 |
DependencyIndexes: file_staging_src_k8s_io_kms_apis_v2_api_proto_depIdxs, |
| 524 |
MessageInfos: file_staging_src_k8s_io_kms_apis_v2_api_proto_msgTypes, |
| 525 |
}.Build() |
| 526 |
File_staging_src_k8s_io_kms_apis_v2_api_proto = out.File |
| 527 |
file_staging_src_k8s_io_kms_apis_v2_api_proto_goTypes = nil |
| 528 |
file_staging_src_k8s_io_kms_apis_v2_api_proto_depIdxs = nil |
| 529 |
} |