Skip to content

Commit 3355fd1

Browse files
committed
Merge pull request #4 from ritazh/review-updates
address review comments
2 parents b9e2436 + 8fca627 commit 3355fd1

File tree

1 file changed

+18
-43
lines changed
  • keps/sig-auth/3299-kms-v2-improvements

1 file changed

+18
-43
lines changed

keps/sig-auth/3299-kms-v2-improvements/README.md

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
- [Encrypt Request](#encrypt-request)
1313
- [Decrypt Request](#decrypt-request)
1414
- [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)
1519
- [Graduation Criteria](#graduation-criteria)
1620
- [Alpha](#alpha)
1721
- [Beta](#beta)
@@ -126,27 +130,9 @@ proposal will be implemented, this is the place to discuss them.
126130
index d7d68d2584d..84c1fa6546f 100644
127131
--- a/staging/src/k8s.io/apiserver/pkg/apis/config/v1/types.go
128132
+++ 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.
139133
@@ -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"`
150136
```
151137

152138
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
225211
type EncryptedObject struct {
226212
TypeMeta `json:",inline" protobuf:"bytes,1,opt,name=typeMeta"`
227213

228-
EncryptResponse EncryptResponse `protobuf:"bytes,2,opt,name=encryptResponse"`
214+
KeyID string `protobuf:"bytes,2,opt,name=keyID"`
229215

230216
PluginName string `protobuf:"bytes,3,opt,name=pluginName"`
231217

232218
Ciphertext []byte `protobuf:"bytes,4,opt,name=ciphertext"`
219+
220+
Annotations map[string][]byte `protobuf:"bytes,5,opt,name=annotations"`
233221
}
234222
```
235223

@@ -345,37 +333,24 @@ sequenceDiagram
345333

346334
### Test Plan
347335

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.
353337

354-
338+
##### Prerequisite testing updates
355339

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.
365341

366-
Integration test covering:
342+
##### Unit tests
367343

368-
344+
This section is incomplete and will be updated before the beta milestone.
369345

370-
Observability:
346+
##### Integration tests
371347

372-
Unit tests covering:
348+
This section is incomplete and will be updated before the beta milestone.
373349

374-
350+
##### e2e tests
375351

376-
Integration test covering:
352+
This section is incomplete and will be updated before the beta milestone.
377353

378-
379354

380355
### Graduation Criteria
381356

0 commit comments

Comments
 (0)