Skip to content

Commit

Permalink
Increase the key size for KubeConfig private key
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ameukam committed Mar 5, 2025
1 parent 757138c commit a625046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubeconfig/create_kubecfg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func fakeKeyset() *fi.Keyset {

func TestBuildKubecfg(t *testing.T) {
originalPKIDefaultPrivateKeySize := pki.DefaultPrivateKeySize
pki.DefaultPrivateKeySize = 512
pki.DefaultPrivateKeySize = 2048
defer func() {
pki.DefaultPrivateKeySize = originalPKIDefaultPrivateKeySize
}()
Expand Down

0 comments on commit a625046

Please sign in to comment.