policy: add HTTP PGP signature verification builtin

Add verify_http_pgp_signature Rego builtin for HTTP sources using
pgpsign with checksum-request/response flow through policy resolution.
Wire sourcemeta HTTP checksum request/response conversion and add tests.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-03-26 15:39:46 -07:00
parent 55e8fa3b8e
commit a57372e966
9 changed files with 468 additions and 16 deletions
+5 -3
View File
@@ -41,11 +41,13 @@ type HTTP struct {
Checksum string `json:"checksum,omitempty"`
Signature *PGPSignature `json:"signature,omitempty"`
AttestationBundle *AttestationBundle `json:"attestationBundle,omitempty"`
checksumResponseForSignature *httpChecksumResponseForSignature `json:"-"`
}
type AttestationBundle struct{}
type httpChecksumResponseForSignature struct {
Digest string `json:"-"`
Suffix []byte `json:"-"`
}
type Git struct {
Schema string `json:"schema,omitempty"`