Documentation
¶
Overview ¶
Package verify checks the Sigstore signature on a signed Fleet Intelligence report.
It is a package of its own so that the sigstore, rekor, and TUF dependency tree stays out of the main nvfleetint module surface: a caller that only lists nodes or downloads reports never links it in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidKey means the supplied data is not a PEM-encoded public key. ErrInvalidKey = errors.New("invalid public key: expected a PEM-encoded public key") // ErrInvalidBundle means the supplied data is not a Sigstore .sig.bundle. ErrInvalidBundle = errors.New("invalid signature bundle: expected a Sigstore .sig.bundle file") // ErrVerificationFailed means the report does not match the signature. ErrVerificationFailed = errors.New("signature verification failed: the report does not match the signature") )
Errors returned by VerifySignedReport. They are sentinels so callers can distinguish the failure mode (e.g. with errors.Is) and present their own messages instead of the underlying sigstore/proto details.
Functions ¶
func VerifySignedReport ¶
VerifySignedReport verifies that csv was signed with the public key in publicKeyPEM, using the Sigstore bundle in bundleJSON. It mirrors `cosign verify-blob --key <key> --bundle <bundle> --insecure-ignore-tlog <csv>`: the signature is checked against an out-of-band public key while the transparency log and observer timestamps are intentionally not required. It returns nil when verification succeeds and a descriptive error otherwise.
The verify.VerifySignedReport stutter is deliberate: this is the name the function has always had, so moving it into this package costs callers an import path and nothing else.
Types ¶
This section is empty.