Create POC for running existing task policies against a task bundle image#3223
Create POC for running existing task policies against a task bundle image#3223dheerajodha wants to merge 3 commits intoconforma:mainfrom
Conversation
- Create Rego-based task bundle detection using ec.oci.image_manifest() - Add task extraction from bundle layers using ec.oci.blob_files() - Implement basic task validation (kind, apiVersion, steps, etc.) - Add ECP configuration for testing - Pure Rego approach - no Go code changes needed This POC demonstrates running task policies against task bundles at component-level during 'ec validate image'. Detection, extraction, and validation are all handled in Rego using existing OCI built-ins. Related to: EC-1683
- Merge detector/extractor/validator into single task_bundle package to avoid "unsupported value" error from EC's rule inspector on exported boolean helper rules - Fix blob extraction: Tekton bundles store tasks as tar entries named after the task with no file extension (not task.yaml) - Use ec.oci.blob_files() with exact task name as path - Remove package-level METADATA annotation that was incorrectly associated with helper rules - Verified working end-to-end against quay.io/conforma/tekton-task:latest: - Detection: found 3 tasks - Extraction: all 3 tasks extracted - Validation: found real violation (StepAction without image) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Skip step_image check for steps using a StepAction ref instead of an inline image. Rewrite README to reflect the final single-file architecture. resolves: EC-1683 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
resolves: EC-1683