cosign

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeLeafHash added in v0.4.1

func ComputeLeafHash(e *models.LogEntryAnon) ([]byte, error)

func FindTLogEntriesByPayload added in v0.5.0

func FindTLogEntriesByPayload(ctx context.Context, rekorClient *client.Rekor, payload []byte) (uuids []string, err error)

FindTLogEntriesByPayload is removed in cosign v2.x, so we implement it here

func GetRekorServerURL

func GetRekorServerURL() string

func GetTlogEntry added in v0.4.0

func GetTlogEntry(ctx context.Context, rekorClient *rekorgenclient.Rekor, uuid string) (*models.LogEntryAnon, error)

cosign has a bug in GetTlogEntry() function as of v1.12.1, so use this instead here

func SignBlob

func SignBlob(blobPath string, keyPath, certPath *string, rekorURL string, tlogUpload, force bool, pf cosign.PassFunc) (map[string][]byte, error)

func SignImage

func SignImage(resBundleRef string, keyPath, certPath *string, rekorURL string, tlogUpload, force bool, pf cosign.PassFunc, imageAnnotations map[string]interface{}, allowInsecure bool) error

func VerifyBlob

func VerifyBlob(msgBytes, sigBytes, certBytes, bundleBytes []byte, pubkeyPath *string, certRef, certChain, rekorURL, oidcIssuer string, rootCerts *x509.CertPool) (bool, string, *int64, error)

func VerifyImage

func VerifyImage(resBundleRef, pubkeyPath, certRef, certChain, rekorURL, oidcIssuer string, rootCerts *x509.CertPool, allowInsecure bool) (bool, string, *int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL