-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Summary
Currently, when attaching policies to contracts, individual policies support a gate: true option that causes the attestation process to fail if the policy is violated. However, this option is not available when attaching a policy group.
Proposed Behavior
Allow setting gate: true on a policy group attachment in a contract. When set, all underlying policies within the group inherit the gating behavior — meaning any policy violation within the group will cause the attestation to fail.
Example Contract
apiVersion: chainloop.dev/v1
kind: Contract
metadata:
name: example-contract
spec:
policyGroups:
- ref: file://groups/sbom-quality-group.yaml
gate: true # all policies in the group become gated
with:
bannedComponents: log4j@2.14.1
bannedLicenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-laterReferences
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers