Skip to content

support a way to explicitly disable policies in a group #2557

@migmartri

Description

@migmartri

Currently, when you reference a policy group, all the policies inside are created. My proposal is to have an attribute in the attachment of the policy groups in the contract that allows you to explicitly disable policies you want to skip.

For example, having this contract that runs all the policies in the quality group

apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policyGroups: - ref: file://groups/sbom-quality-group.yaml with: bannedComponents: log4j@2.14.1 

We could have

apiVersion: chainloop.dev/v1 kind: Contract metadata: name: example-contract spec: policyGroups: - ref: file://groups/sbom-quality-group.yaml with: bannedComponents: log4j@2.14.1 bannedLicenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later skip: - sbom-present - my-other-policy 

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions