|
12 | 12 | - [Encrypt Request](#encrypt-request)
|
13 | 13 | - [Decrypt Request](#decrypt-request)
|
14 | 14 | - [Test Plan](#test-plan)
|
| 15 | + - [Prerequisite testing updates](#prerequisite-testing-updates) |
| 16 | + - [Unit tests](#unit-tests) |
| 17 | + - [Integration tests](#integration-tests) |
| 18 | + - [e2e tests](#e2e-tests) |
15 | 19 | - [Graduation Criteria](#graduation-criteria)
|
16 | 20 | - [Alpha](#alpha)
|
17 | 21 | - [Beta](#beta)
|
@@ -126,27 +130,9 @@ proposal will be implemented, this is the place to discuss them.
|
126 | 130 | index d7d68d2584d..84c1fa6546f 100644
|
127 | 131 | --- a/staging/src/k8s.io/apiserver/pkg/apis/config/v1/types.go
|
128 | 132 | +++ b/staging/src/k8s.io/apiserver/pkg/apis/config/v1/types.go
|
129 |
| -@@ -51,7 +51,8 @@ type ProviderConfiguration struct { |
130 |
| - // identity is the (empty) configuration for the identity transformer. |
131 |
| - Identity *IdentityConfiguration `json:"identity,omitempty"` |
132 |
| - // kms contains the name, cache size and path to configuration file for a KMS based envelope transformer. |
133 |
| -- KMS *KMSConfiguration `json:"kms,omitempty"` |
134 |
| -+ KMS *KMSConfiguration `json:"kms,omitempty"` |
135 |
| -+ KMSv2 *KMSv2Configuration `json:"kmsv2,omitempty"` |
136 |
| - } |
137 |
| - |
138 |
| - // AESConfiguration contains the API configuration for an AES transformer. |
139 | 133 | @@ -98,3 +99,10 @@ type KMSConfiguration struct {
|
140 |
| - // +optional |
141 |
| - Timeout *metav1.Duration `json:"timeout,omitempty"` |
142 |
| - } |
143 |
| -+ |
144 |
| -+type KMSv2Configuration struct { |
145 |
| -+ // name is the name of the KMSv2 plugin to be used. |
146 |
| -+ Name string `json:"name"` |
147 |
| -+ // endpoint is the gRPC server listening address, for example "unix:///var/run/kmsv2-provider.sock". |
148 |
| -+ Endpoint string `json:"endpoint"` |
149 |
| -+} |
| 134 | ++ // apiversion of KeyManagementService |
| 135 | ++ APIVersion string `json:"apiVersion"` |
150 | 136 | ```
|
151 | 137 |
|
152 | 138 | Support key hierarchy in KMS plugin that generates local KEK and add v2alpha1 `KeyManagementService` proto service contract in Kubernetes to include `key_id`, `annotations`, and `status`.
|
@@ -225,11 +211,13 @@ The last byte represents the encoding style, with 0 meaning that the rest of the
|
225 | 211 | type EncryptedObject struct {
|
226 | 212 | TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"`
|
227 | 213 |
|
228 |
| - EncryptResponse EncryptResponse `protobuf:"bytes,2,opt,name=encryptResponse"` |
| 214 | + KeyID string `protobuf:"bytes,2,opt,name=keyID"` |
229 | 215 |
|
230 | 216 | PluginName string `protobuf:"bytes,3,opt,name=pluginName"`
|
231 | 217 |
|
232 | 218 | Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext"`
|
| 219 | + |
| 220 | + Annotations map[string][]byte `protobuf:"bytes,5,opt,name=annotations"` |
233 | 221 | }
|
234 | 222 | ```
|
235 | 223 |
|
@@ -345,37 +333,24 @@ sequenceDiagram
|
345 | 333 |
|
346 | 334 | ### Test Plan
|
347 | 335 |
|
348 |
| -This section is incomplete and will be updated before the beta milestone. |
349 |
| - |
350 |
| -Performance: |
351 |
| - |
352 |
| -Unit tests covering: |
| 336 | +[ ] I/we understand the owners of the involved components may require updates to existing tests to make this code solid enough prior to committing the changes necessary to implement this enhancement. |
353 | 337 |
|
354 |
| -… |
| 338 | +##### Prerequisite testing updates |
355 | 339 |
|
356 |
| -Integration test covering: |
357 |
| - |
358 |
| -… |
359 |
| - |
360 |
| -Rotation: |
361 |
| - |
362 |
| -Unit tests covering: |
363 |
| - |
364 |
| -… |
| 340 | +This section is incomplete and will be updated before the beta milestone. |
365 | 341 |
|
366 |
| -Integration test covering: |
| 342 | +##### Unit tests |
367 | 343 |
|
368 |
| -… |
| 344 | +This section is incomplete and will be updated before the beta milestone. |
369 | 345 |
|
370 |
| -Observability: |
| 346 | +##### Integration tests |
371 | 347 |
|
372 |
| -Unit tests covering: |
| 348 | +This section is incomplete and will be updated before the beta milestone. |
373 | 349 |
|
374 |
| -… |
| 350 | +##### e2e tests |
375 | 351 |
|
376 |
| -Integration test covering: |
| 352 | +This section is incomplete and will be updated before the beta milestone. |
377 | 353 |
|
378 |
| -… |
379 | 354 |
|
380 | 355 | ### Graduation Criteria
|
381 | 356 |
|
|
0 commit comments