Skip to content

feat/added support for ext. compliance service + user-defined policies - #332

Merged
san-zrl merged 2 commits into
mainfrom
feat/ext-compliance
Apr 7, 2026
Merged

san-zrl merged 2 commits into
mainfrom
feat/ext-compliance

Conversation

@san-zrl

@san-zrl san-zrl commented Mar 31, 2026

Copy link
Copy Markdown
Contributor

This PR addresses #328 and should be the basis for #330.

It adds support for using Open Policy Agent (OPA) as an external compliance evaluation service. OPA evaluates compliance based on user-defined policies written in a declarative policy language. The OPA instance and the compliance policy used by CBOMkit are configurable. CBOMkit's built-in basic compliance service is used as a fall-back solution if ext. compliance checking is either not configured or fails for any reason. The PR contains a default policy specification opa/quantum_safe.rego which replicates the behavior of the built-in compliance service. Custom policies can be configured. For details checkout README.md.

Note that docker-compose.yaml has been modified to also launch an OPA instance. The ext-compliance profile can used for testing with a local backend image. The remote CBOMkit image will be updated with the next release.

TODO: Update helms charts yet to start an OPA container with a predefined policy.

@san-zrl
san-zrl requested a review from a team as a code owner March 31, 2026 10:33
@san-zrl

san-zrl commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

@FotiosBistas - FYI

@san-zrl
san-zrl merged commit a0cf167 into main Apr 7, 2026
3 checks passed
@san-zrl
san-zrl deleted the feat/ext-compliance branch April 7, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant