Skip to content

Commit

Permalink
add TODOs to the code
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Fernandez <hector@chainguard.dev>
  • Loading branch information
hectorj2f committed Nov 15, 2022
1 parent 54543bd commit 6f2a95b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cosign/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,13 @@ func VerifyTSABundle(ctx context.Context, sig oci.Signature, tsaClient *tsaclien
if err != nil {
return false, fmt.Errorf("reading DecodeString: %w", err)
}
// TODO: Add support for TUF certificates.
pemBytes, err := os.ReadFile(filepath.Clean(tsaCertChainPath))
if err != nil {
return false, fmt.Errorf("error reading certification chain path file: %w", err)
}
// TODO: Update this logic once https://github.com/sigstore/timestamp-authority/issues/121 gets merged.
// This relies on untrusted leaf certificate.
certPool := x509.NewCertPool()
ok := certPool.AppendCertsFromPEM(pemBytes)
if !ok {
Expand Down

0 comments on commit 6f2a95b

Please sign in to comment.