Managing compliance with the Enterprise Contract
The Enterprise Contract (EC) is an artifact verifier and customizable policy checker. By default, Konflux adds the Enterprise Contract as an integration test to each new application. The Enterprise Contract then keeps your software supply chain secure and ensures container images comply with your organization’s policies. It does this by verifying the security and provenance of builds created through Konflux.
Konflux’s build process uses Tekton Chains to produce a signed in-toto attestation of the build pipeline. The Enterprise Contract then uses this attestation to verify the build’s integrity and compliance with a set of policies. These policies include best practices and any organization-specific requirements.
If you ever need to restore the default EC integration test to an application, or if you want to use a different configuration of the EC as an integration test, use the following procedure.
-
You have created an application.
-
You have an upgraded build pipeline.
-
In the Konflux UI, open an existing application and go to the Integration tests tab.
-
Select Add integration test.
-
In the Integration test name field, enter a name of your choosing.
-
In the GitHub URL field, enter https://github.com/konflux-ci/build-definitions
-
In the Path in repository field, to use the default EC configuration, enter /pipelines/enterprise-contract.yaml
-
You can also enter any of the paths in the list of Enterprise Contract Configuration Files, to use a configuration that matches your specific needs more closely.
-
For example, to verify your artifacts with the policy rules that Red Hat uses, enter /pipelines/enterprise-contract-redhat.yaml
-
-
Optional: If passing the this test is optional, and you do not want to prevent the application from being deployed or released, then select Mark as optional for release.
-
Select Add Integration test.
-
Trigger a new build by commiting a change in the GitHub repository of the application you are working with.
-
On your application, go to the Activity > Pipeline runs tab.
-
Select a pipeline run with Type as Test, and review the status of your test pipeline.
-
You can also review pipeline run details, logs, task runs, and security details by selecting a pipeline run with Type as Test.
-
To produce a signed in-toto attestation of the build pipeline, go to Tekton Chains.
-
For information on the source code for the Tekton pipelines defined in the bundle, see the build-definitions and ec-cli repositories.
-
To use a specific version of the pipeline bundle instead of the devel tag, you can select one of the pinned tags.
-
For information on components in Enterprise Contract, see the Components.
-
For information on the Enterprise Contract policies designed for Konflux, see the Enterprise Contract Policies.