Skip to content

Commit ccbb37f

Browse files
authored
ignore tlog when using RFC3161Timestamp (#1874)
* ignore tlog when using RFC3161Timestamp Signed-off-by: jkylekelly <[email protected]> * update wantCheckOpts for test Signed-off-by: jkylekelly <[email protected]> --------- Signed-off-by: jkylekelly <[email protected]>
1 parent b007af1 commit ccbb37f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/webhook/validator.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,6 +1405,7 @@ func checkOptsFromAuthority(ctx context.Context, authority webhookcip.Authority,
14051405
return nil, fmt.Errorf("when using the new bundle format, the trustRootRef for the TSA must be the same as the trustRootRef for the Keyless authority")
14061406
}
14071407
ret.UseSignedTimestamps = true
1408+
ret.IgnoreTlog = true
14081409
}
14091410

14101411
// Check for custom Rekor

pkg/webhook/validator_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,6 +3428,7 @@ func TestCheckOptsFromAuthority(t *testing.T) {
34283428
NewBundleFormat: true,
34293429
UseSignedTimestamps: true,
34303430
TrustedMaterial: &root.TrustedRoot{},
3431+
IgnoreTlog: true,
34313432
},
34323433
}, {
34333434
name: "bundle format, bad TrustRootRef",

0 commit comments

Comments
 (0)