Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(policy): Introduce policy engine for semantic convention registr…
…y checks This commit introduces a new policy engine, `weaver_checker`, to validate semantic convention registries against custom rules defined using the Rego language. The engine offers enhanced flexibility and control over registry compliance checks. Key improvements: - Policy engine implementation: A new crate, weaver_checker, was created to wrap the `regorus` crate and provide a convenient interface for defining and executing `Rego` policies against semantic convention registries. - Policy separation: Policy checks are now decoupled from registry loading for improved performance and maintainability. - Policy examples: Example `Rego` policies for comparing released and unreleased versions of semantic conventions are included for reference and demonstration. - Documentation: Comprehensive documentation on the policy engine and its usage is added, including updates to the otel-weaver-platform diagram. - Unit tests and coverage: Unit tests were added to ensure the functionality of the policy engine, and test coverage was improved to meet project criteria. - Registry check command: A new CLI option `--before-resolution-policies` allows applying policies before schema resolution.
- Loading branch information