Repository navigation
feat: Konflux and Tekton integration - #438
Merged
Merged
Conversation
Make OpenArtifact a drop-in registry and artifact store for Konflux and
plain Tekton pipelines.
- Hermetic builds: RubyGems /downloads/{file} alias, Go checksum database
relay (workers.proxyGoSumdbHosts), and one block-reason contract for
proxy/group downloads refused by policy (403, X-OA-Block-Reason,
code BLOCKED_BY_POLICY).
- CI OIDC trust policies: anonymous, static JWKS and Kubernetes
service-account key discovery, per-policy private issuers and dotted
claim paths (migration 020).
- Registry hygiene: cosign signature tags follow their image through
cleanup, GC and promotion; referrers artifactType filter; optional
quay.expires-after expiry per repository (migration 021).
- Attestations: cosign signatures, in-toto attestations and SBOMs pushed
next to an image are indexed and verified against per-repository trust
(keys, Fulcio identities); promotion can require verified provenance
(422 PROVENANCE_REQUIRED) (migration 022).
- Image SBOM scans and external scan import (SARIF, osv-scanner); gate
endpoints readable with repository read.
- Bundle checks reported by CI with required_checks per stage
(422 CHECKS_REQUIRED); webhook events scan.completed,
vulnerability.found, quarantine.changed, bundle.check_updated
(migration 024).
- Optional Quay-compatible API (/quay/api/v1) for the Konflux
image-controller: repositories, robot accounts, permissions, tags
(migration 025).
- oa CLI: oidc exchange, bundle check report, gate, attestations,
bundle add --digest.
- Tekton catalog in integrations/tekton (StepActions, Tasks, Pipelines),
the oa-tekton step image and its publish workflow; release verify
checks the catalog image tags against VERSION.
- Web UI for OIDC discovery, attestations and trust, bundle checks and
Quay expiry, translated in all locales; docs and upgrade notes.
- bundle checks list through collectRows (dup gate) - federation: docker_manifests.expires_at stays local - declarative e2e: private issuer literal for the in-cluster example - api-fuzz: attestation and gate reads of public repositories are public - quarantine.PathKeys: no size arithmetic in allocations (CodeQL)
…ublic repositories
Coverage
Go by area
Web by area (lines)
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Konflux and Tekton integration, in one PR as requested: OpenArtifact as the registry, artifact store and promotion gate for Konflux and plain Tekton pipelines.
What's in it
/downloads/{file}; Go checksum database relay (workers.proxyGoSumdbHosts); one block-reason contract for proxy and group downloads refused by policy:403,X-OA-Block-Reason,code: BLOCKED_BY_POLICYartifactTypefilter;honour_quay_expiry.no_txindex)422 PROVENANCE_REQUIRED)POST .../vuln/scans/import(SARIF, osv-scanner); gate endpoints readable with repositoryreadrequired_checksper stage (422 CHECKS_REQUIRED); webhook eventsscan.completed,vulnerability.found,quarantine.changed,bundle.check_updated/quay/api/v1for the Konflux image-controller (quayApi.enabled)oa oidc exchange,oa bundle check report,oa gate,oa attestations,oa bundle add --digestintegrations/tekton/,docker/Dockerfile.oa-tekton,tekton-catalog.ymlThere is no migration 023.
Release coupling. The catalog defaults to
ghcr.io/openartifact/oa-tekton:0.21.0, the first release that will publish the image. Therelease.ymlverify job now fails when those tags differ fromVERSION;docs/development/ci-and-releases.mddescribes this.Verification
golangci-lint(0 issues),make deadcode, the dup check (0 clones),go mod tidy -diff,make docs-check,reuse lint, actionlint.go test -short -race ./...passes.-tags=integration) pass for database, worker, promote, attestation, bundlechecks, quayapi, api, proxy and recovery, with migrations 020–025 applied.i18n:checkpasses with every locale at 100%.-p oa-konflux, distroless):scripts/smoke/oci-supplychain.shwith a locally built oa-tekton image. It covers oras push, cosign sign and attest (tag schema), attach and download of an SBOM, verify, copy, a cosign 3 bundle listed by the referrers API, and the blob round trip.reverifymarks the matching signature verified, refuses the other key's signatures and flags the unsigned SBOM./gemsand/downloadsserve identical bytes.supported,lookupandlatestrelay; a host that is not allowed answers404.403withX-OA-Block-Reasonand the JSON body.422 CHECKS_REQUIREDwhile the check is missing or failed; promotion succeeds after a passing report.Not covered
oa applycannot manage attestation trust.reverifywithsubjectandimagedoes it.honour_quay_expiryon an existing repository doesn't backfill expiry for images already in it.tkn bundle pushof the StepActions has not been tried against a cluster.