MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Verify

Method Verify

pkg/policies/engine/engine.go:157–157  ·  view source on GitHub ↗

Verify verifies an input against a policy

(ctx context.Context, policy *Policy, input []byte, args map[string]any)

Source from the content-addressed store, hash-verified

155type PolicyEngine interface {
156 // Verify verifies an input against a policy
157 Verify(ctx context.Context, policy *Policy, input []byte, args map[string]any) (*EvaluationResult, error)
158 // MatchesParameters evaluates the matches_parameters rule to determine if evaluation parameters match expected parameters
159 MatchesParameters(ctx context.Context, policy *Policy, evaluationParams, expectedParams map[string]string) (bool, error)
160 // MatchesEvaluation evaluates the matches_evaluation rule using policy violations and expected parameters

Callers 7

executeScriptMethod · 0.95
TestRenderMethod · 0.65
verifyTokenMethod · 0.65
parseTokenFunction · 0.65
verifyCertSignatureFunction · 0.65
VerifyIDTokenMethod · 0.65
verifyEnvelopeFunction · 0.65

Implementers 2

Enginepkg/policies/engine/wasm/engine.go
Enginepkg/policies/engine/rego/rego.go

Calls

no outgoing calls

Tested by 1

TestRenderMethod · 0.52