| 1 |
/* |
| 2 |
Copyright 2018 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 |
// To regenerate api.pb.go run `hack/update-codegen.sh protobindings` |
| 18 |
syntax = "proto3"; |
| 19 |
|
| 20 |
package v1beta1; |
| 21 |
option go_package = "k8s.io/kms/apis/v1beta1"; |
| 22 |
option deprecated = true; |
| 23 |
|
| 24 |
// This service defines the public APIs for remote KMS provider. |
| 25 |
service KeyManagementService { |
| 26 |
// Version returns the runtime name and runtime version of the KMS provider. |
| 27 |
rpc Version(VersionRequest) returns (VersionResponse) {} |
| 28 |
|
| 29 |
// Execute decryption operation in KMS provider. |
| 30 |
rpc Decrypt(DecryptRequest) returns (DecryptResponse) {} |
| 31 |
// Execute encryption operation in KMS provider. |
| 32 |
rpc Encrypt(EncryptRequest) returns (EncryptResponse) {} |
| 33 |
} |
| 34 |
|
| 35 |
// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead. |
| 36 |
message VersionRequest { |
| 37 |
// Version of the KMS plugin API. |
| 38 |
string version = 1; |
| 39 |
} |
| 40 |
|
| 41 |
// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead. |
| 42 |
message VersionResponse { |
| 43 |
// Version of the KMS plugin API. |
| 44 |
string version = 1; |
| 45 |
// Name of the KMS provider. |
| 46 |
string runtime_name = 2; |
| 47 |
// Version of the KMS provider. The string must be semver-compatible. |
| 48 |
string runtime_version = 3; |
| 49 |
} |
| 50 |
|
| 51 |
// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead. |
| 52 |
message DecryptRequest { |
| 53 |
// Version of the KMS plugin API. |
| 54 |
string version = 1; |
| 55 |
// The data to be decrypted. |
| 56 |
bytes cipher = 2; |
| 57 |
} |
| 58 |
|
| 59 |
// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead. |
| 60 |
message DecryptResponse { |
| 61 |
// The decrypted data. |
| 62 |
bytes plain = 1; |
| 63 |
} |
| 64 |
|
| 65 |
// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead. |
| 66 |
message EncryptRequest { |
| 67 |
// Version of the KMS plugin API. |
| 68 |
string version = 1; |
| 69 |
// The data to be encrypted. |
| 70 |
bytes plain = 2; |
| 71 |
} |
| 72 |
|
| 73 |
// Deprecated: KMSv1 is deprecated in v1.28 and will only receive security updates going forward. Use KMSv2 instead. |
| 74 |
message EncryptResponse { |
| 75 |
// The encrypted data. |
| 76 |
bytes cipher = 1; |
| 77 |
} |