EncryptionConfiguration
mismatch between documentation and validation of provider aescbc
#129610
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/auth
Categorizes an issue or PR as relevant to SIG Auth.
sig/security
Categorizes an issue or PR as relevant to SIG Security.
What happened?
AES-CBC is documented to require 32-byte key in the
EncryptionConfiguration
kubernetes/staging/src/k8s.io/apiserver/pkg/apis/apiserver/types_encryption.go
Line 106 in e384893
16
,24
,32
sizeskubernetes/staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption.go
Lines 106 to 107 in e384893
What did you expect to happen?
I expect that the validation fails when one provides a key of size 16 or 24 bytes or that the documentation gets adapted to the current behaviour.
How can we reproduce it (as minimally and precisely as possible)?
Pass a 24-byte sized key for
aescbc
provider in anEncryptionConfiguration
to thekube-apiserver
.Anything else we need to know?
No response
Kubernetes version
This is valid for the current
v1.32.0
version.Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: