Skip to content

Commit c6640ac

Browse files
committed
Increase the key size for KubeConfig private key
It's now required to have a minimum of 1024 bits the RSA private key. https://pkg.go.dev/crypto/rsa@master#GenerateKey Signed-off-by: Arnaud Meukam <[email protected]>
1 parent 1fa3240 commit c6640ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubeconfig/create_kubecfg_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func fakeKeyset() *fi.Keyset {
142142

143143
func TestBuildKubecfg(t *testing.T) {
144144
originalPKIDefaultPrivateKeySize := pki.DefaultPrivateKeySize
145-
pki.DefaultPrivateKeySize = 512
145+
pki.DefaultPrivateKeySize = 2048
146146
defer func() {
147147
pki.DefaultPrivateKeySize = originalPKIDefaultPrivateKeySize
148148
}()

0 commit comments

Comments
 (0)