@@ -160,7 +160,7 @@ func TestInitKeyRotationTick(t *testing.T) {
160
160
func TestReuseKey (t * testing.T ) {
161
161
ctx := context .Background ()
162
162
rand := testRand ()
163
- key , err := rsa .GenerateKey (rand , 512 )
163
+ key , err := rsa .GenerateKey (rand , 2048 )
164
164
if err != nil {
165
165
t .Fatalf ("Failed to generate test key: %v" , err )
166
166
}
@@ -199,7 +199,7 @@ func TestReuseKey(t *testing.T) {
199
199
func TestRenewStaleKey (t * testing.T ) {
200
200
ctx := context .Background ()
201
201
rand := testRand ()
202
- key , err := rsa .GenerateKey (rand , 512 )
202
+ key , err := rsa .GenerateKey (rand , 2048 )
203
203
if err != nil {
204
204
t .Fatalf ("Failed to generate test key: %v" , err )
205
205
}
@@ -259,7 +259,7 @@ func TestRenewStaleKey(t *testing.T) {
259
259
func TestKeyCutoff (t * testing.T ) {
260
260
ctx := context .Background ()
261
261
rand := testRand ()
262
- key , err := rsa .GenerateKey (rand , 512 )
262
+ key , err := rsa .GenerateKey (rand , 2048 )
263
263
if err != nil {
264
264
t .Fatalf ("Failed to generate test key: %v" , err )
265
265
}
@@ -331,7 +331,7 @@ func writeLegacyKey(ctx context.Context, client kubernetes.Interface, key *rsa.P
331
331
func TestLegacySecret (t * testing.T ) {
332
332
ctx := context .Background ()
333
333
rand := testRand ()
334
- key , err := rsa .GenerateKey (rand , 512 )
334
+ key , err := rsa .GenerateKey (rand , 2048 )
335
335
if err != nil {
336
336
t .Fatalf ("Failed to generate test key: %v" , err )
337
337
}
0 commit comments