Skip to content

Pin the policy bundle by modifying the ECP in tekton tasks#3268

Draft
simonbaird wants to merge 2 commits intoconforma:mainfrom
simonbaird:policy-with-bundle-pin
Draft

Pin the policy bundle by modifying the ECP in tekton tasks#3268
simonbaird wants to merge 2 commits intoconforma:mainfrom
simonbaird:policy-with-bundle-pin

Conversation

@simonbaird
Copy link
Copy Markdown
Member

simonbaird and others added 2 commits April 30, 2026 17:45
Add optional POLICY_BUNDLE_DIGEST parameter to both conforma Tekton
tasks. When provided, the policy configuration is resolved and the
oci::quay.io/conforma/release-policy:konflux tag reference is replaced
with a digest-pinned reference for reproducible policy evaluation.

The reason we want to do this is the same tekton task uses the same
policy always, to avoid unexpected cli/policy incompatibilities.

As mentioned elsewhere, this is quite Red Hat Konflux-specific, and
quite an unpleasant hack, but we're choosing an uncoupled,
easy-to-delete hack over alternative options.

Ref: https://redhat.atlassian.net/browse/EC-1790
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 30, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: 5cf135ea-14c6-46f0-abff-393d85db4f2a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
acceptance 55.21% <ø> (+<0.01%) ⬆️
generative 17.90% <ø> (ø)
integration 26.65% <ø> (ø)
unit 69.01% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

fi
fi

ORIGINAL="oci::quay.io/conforma/release-policy:konflux"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does matching the tag provide any value? Also, we're still pushing to quay.io/enterprise-contract/ec-release-policy. Should that be added as well?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to match the tag since I think we should support people for whatever reason that deliberately want to use something other than the konflux tag. E.g. if you explicitly use :latest then let's respect that.

I don't think there's any good reason for anyone to still be using quay.io/enterprise-contract, so I'd rather not carry forward support for old deprecated repos.

simonbaird added a commit to simonbaird/konflux-build-definitions that referenced this pull request May 1, 2026
It's a long story, but we want to reduce the number of moving parts
related to updating Conforma in Red Hat Konflux. Being able to pin
the policy bundle when building the Conforma tasks means we can
reduce breakages related to old incompatible versions of the cli
being used with the latest policy bundle.

See also the related PR at conforma/cli#3268

Ref: https://redhat.atlassian.net/browse/EC-1790
simonbaird added a commit to simonbaird/konflux-build-definitions that referenced this pull request May 1, 2026
It's a long story, but we want to reduce the number of moving parts
related to updating Conforma in Red Hat Konflux. Being able to pin
the policy bundle when building the Conforma tasks means we can
reduce breakages related to old incompatible versions of the cli
being used with the latest policy bundle.

See also the related PR at conforma/cli#3268

Ref: https://redhat.atlassian.net/browse/EC-1790
simonbaird added a commit to simonbaird/konflux-build-definitions that referenced this pull request May 1, 2026
It's a long story, but we want to reduce the number of moving parts
related to updating Conforma in Red Hat Konflux. Being able to pin
the policy bundle when building the Conforma tasks means we can
reduce breakages related to old incompatible versions of the cli
being used with the latest policy bundle.

See also the related PR at conforma/cli#3268

Ref: https://redhat.atlassian.net/browse/EC-1790
simonbaird added a commit to simonbaird/konflux-build-definitions that referenced this pull request May 1, 2026
It's a long story, but we want to reduce the number of moving parts
related to updating Conforma in Red Hat Konflux. Being able to pin
the policy bundle when building the Conforma tasks means we can
reduce breakages related to old incompatible versions of the cli
being used with the latest policy bundle.

See also the related PR at conforma/cli#3268

Ref: https://redhat.atlassian.net/browse/EC-1790
# Instead of needing to bump this in hundreds of separate ECPs, we'll do
# it here instead. If you don't want this behavior then provide an empty
# string value for this param.
default: "sha256:1b296a925b4021f4b4959ea289596925a8735540e554f3ba7754a651731a216f"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If konflux-ci/build-definitions#3490 is merged, then we have the possibility of a slightly nicer way to set this at build time, instead of hard coding it. But I don't think that's a blocker, since the end result is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants