@@ -160,7 +160,7 @@ func TestInitKeyRotationTick(t *testing.T) {
160160func TestReuseKey (t * testing.T ) {
161161 ctx := context .Background ()
162162 rand := testRand ()
163- key , err := rsa .GenerateKey (rand , 512 )
163+ key , err := rsa .GenerateKey (rand , 2048 )
164164 if err != nil {
165165 t .Fatalf ("Failed to generate test key: %v" , err )
166166 }
@@ -199,7 +199,7 @@ func TestReuseKey(t *testing.T) {
199199func TestRenewStaleKey (t * testing.T ) {
200200 ctx := context .Background ()
201201 rand := testRand ()
202- key , err := rsa .GenerateKey (rand , 512 )
202+ key , err := rsa .GenerateKey (rand , 2048 )
203203 if err != nil {
204204 t .Fatalf ("Failed to generate test key: %v" , err )
205205 }
@@ -259,7 +259,7 @@ func TestRenewStaleKey(t *testing.T) {
259259func TestKeyCutoff (t * testing.T ) {
260260 ctx := context .Background ()
261261 rand := testRand ()
262- key , err := rsa .GenerateKey (rand , 512 )
262+ key , err := rsa .GenerateKey (rand , 2048 )
263263 if err != nil {
264264 t .Fatalf ("Failed to generate test key: %v" , err )
265265 }
@@ -331,7 +331,7 @@ func writeLegacyKey(ctx context.Context, client kubernetes.Interface, key *rsa.P
331331func TestLegacySecret (t * testing.T ) {
332332 ctx := context .Background ()
333333 rand := testRand ()
334- key , err := rsa .GenerateKey (rand , 512 )
334+ key , err := rsa .GenerateKey (rand , 2048 )
335335 if err != nil {
336336 t .Fatalf ("Failed to generate test key: %v" , err )
337337 }
0 commit comments