@@ -28,6 +28,7 @@ public class LegacySigningConfig {
28
28
29
29
static final URI REKOR_PUBLIC_GOOD_URI = URI .create ("https://rekor.sigstore.dev" );
30
30
static final URI REKOR_STAGING_URI = URI .create ("https://rekor.sigstage.dev" );
31
+ static final URI REKOR_V2_STAGING_URI = URI .create ("https://log2025-alpha1.rekor.sigstage.dev" );
31
32
32
33
static final URI FULCIO_PUBLIC_GOOD_URI = URI .create ("https://fulcio.sigstore.dev" );
33
34
static final URI FULCIO_STAGING_URI = URI .create ("https://fulcio.sigstage.dev" );
@@ -40,24 +41,36 @@ public class LegacySigningConfig {
40
41
// URI.create("https://timestamp.sigstore.dev/api/v1/timestamp");
41
42
static final URI TSA_STAGING_URI = URI .create ("https://timestamp.sigstage.dev/api/v1/timestamp" );
42
43
43
- static SigstoreSigningConfig from (URI fulcioUrl , URI rekorUrl , URI dexUrl , @ Nullable URI tsaUrl ) {
44
+ static SigstoreSigningConfig from (
45
+ URI fulcioUrl , Service rekorService , URI dexUrl , @ Nullable URI tsaUrl ) {
44
46
var anySelector = ImmutableConfig .builder ().selector (Selector .ANY ).build ();
45
47
var now = ImmutableValidFor .builder ().start (Instant .now ()).build ();
46
48
var signingConfigBuilder =
47
49
ImmutableSigstoreSigningConfig .builder ()
48
50
.tLogConfig (anySelector )
49
51
.tsaConfig (anySelector )
50
52
.addCas (Service .of (fulcioUrl , 1 ))
51
- .addTLogs (Service . of ( rekorUrl , 1 ) )
53
+ .addTLogs (rekorService )
52
54
.addOidcProviders (Service .of (dexUrl , 1 ));
55
+
53
56
if (tsaUrl != null ) {
54
57
signingConfigBuilder .addTsas (Service .of (tsaUrl , 1 ));
55
58
}
56
59
return signingConfigBuilder .build ();
57
60
}
58
61
59
62
public static final SigstoreSigningConfig PUBLIC_GOOD =
60
- from (FULCIO_PUBLIC_GOOD_URI , REKOR_PUBLIC_GOOD_URI , DEX_PUBLIC_GOOD_URI , null );
63
+ from (FULCIO_PUBLIC_GOOD_URI , Service . of ( REKOR_PUBLIC_GOOD_URI , 1 ) , DEX_PUBLIC_GOOD_URI , null );
61
64
public static SigstoreSigningConfig STAGING =
62
- from (FULCIO_STAGING_URI , REKOR_STAGING_URI , DEX_STAGING_GOOD_URI , TSA_STAGING_URI );
65
+ from (
66
+ FULCIO_STAGING_URI ,
67
+ Service .of (REKOR_PUBLIC_GOOD_URI , 1 ),
68
+ DEX_STAGING_GOOD_URI ,
69
+ TSA_STAGING_URI );
70
+ public static SigstoreSigningConfig STAGING_REKOR_V2 =
71
+ from (
72
+ FULCIO_STAGING_URI ,
73
+ Service .of (REKOR_V2_STAGING_URI , 2 ),
74
+ DEX_STAGING_GOOD_URI ,
75
+ TSA_STAGING_URI );
63
76
}
0 commit comments