Merge pull request #118988 from nilekhc/hash-keyid

[KMSv2] chore: hashes keyID being logged
This commit is contained in:
Kubernetes Prow Robot
2023-07-13 15:47:48 -07:00
committed by GitHub
5 changed files with 33 additions and 21 deletions

View File

@@ -378,7 +378,7 @@ resources:
// 6. when kms-plugin is down, expect creation of new pod and encryption to fail because the DEK is invalid
_, err = test.createPod(testNamespace, dynamicClient)
if err == nil || !strings.Contains(err.Error(), `EDEK with keyID "2" expired at 2`) {
if err == nil || !strings.Contains(err.Error(), `EDEK with keyID hash "sha256:d4735e3a265e16eee03f59718b9b5d03019c07d8b6c51f90da3a666eec13ab35" expired at 2`) {
t.Fatalf("Create test pod should have failed due to encryption, ns: %s, got: %v", testNamespace, err)
}