Skip to content

feat: Konflux and Tekton integration - #438

Merged
M0Rf30 merged 4 commits into
mainfrom
feat/konflux-tekton
Nov 8, 2026
Merged

M0Rf30 merged 4 commits into
mainfrom
feat/konflux-tekton

Conversation

@M0Rf30

@M0Rf30 M0Rf30 commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

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

Area Change Migration
Hermetic builds RubyGems /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_POLICY none
CI OIDC Key discovery: anonymous, static JWKS or Kubernetes service account; per-policy private issuer; dotted claim paths 020
Registry Cosign tags follow their image through cleanup, GC and promotion; referrers artifactType filter; honour_quay_expiry 021 (+ .no_tx index)
Attestations Signatures, in-toto attestations and SBOMs indexed and verified against per-repository trust (keys and Fulcio identities); promotion can require provenance (422 PROVENANCE_REQUIRED) 022
Scanning Docker scans from an attached SBOM; POST .../vuln/scans/import (SARIF, osv-scanner); gate endpoints readable with repository read none
Bundle checks CI-reported checks; required_checks per stage (422 CHECKS_REQUIRED); webhook events scan.completed, vulnerability.found, quarantine.changed, bundle.check_updated 024
Quay API facade /quay/api/v1 for the Konflux image-controller (quayApi.enabled) 025
CLI oa oidc exchange, oa bundle check report, oa gate, oa attestations, oa bundle add --digest
Tekton Catalog in integrations/tekton/, docker/Dockerfile.oa-tekton, tekton-catalog.yml

There 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. The release.yml verify job now fails when those tags differ from VERSION; docs/development/ci-and-releases.md describes 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.
  • Integration tests against Postgres (-tags=integration) pass for database, worker, promote, attestation, bundlechecks, quayapi, api, proxy and recovery, with migrations 020–025 applied.
  • Web: typecheck, 2421 tests and the build pass; i18n:check passes with every locale at 100%.
  • Isolated compose stack (-p oa-konflux, distroless):
    • scripts/smoke/oci-supplychain.sh with 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.
    • Attestations: the rows were indexed. With a trusted key set, reverify marks the matching signature verified, refuses the other key's signatures and flags the unsigned SBOM.
    • Quay facade: the image-controller sequence (repository, robot, permission, robot push via oras and skopeo, robot limits, token regeneration, visibility, tag delete, repository delete) and an anonymous request refused.
    • RubyGems: /gems and /downloads serve identical bytes.
    • Go sumdb: supported, lookup and latest relay; a host that is not allowed answers 404.
    • Curation block: 403 with X-OA-Block-Reason and the JSON body.
    • Bundle checks: 422 CHECKS_REQUIRED while the check is missing or failed; promotion succeeds after a passing report.
    • The gate and attestation reads, and a webhook with the four new events.

Not covered

  • Quay notifications are stored but never delivered.
  • Bundle checks are not in the backup export.
  • oa apply cannot manage attestation trust.
  • Keyless signatures are judged at first-seen time (no Rekor).
  • Promotion does not index attestations in the target repository; reverify with subject and image does it.
  • Enabling honour_quay_expiry on an existing repository doesn't backfill expiry for images already in it.
  • tkn bundle push of the StepActions has not been tried against a cluster.
  • The Tekton tasks have not run on a real cluster yet, because the image is published only at release.
  • OpenShift values for the Helm chart belong in the helm-charts repo.

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)
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Coverage

Coverage vs main
Go, unit + integration 83.3% -0.2
Go, unit tests only 70.1% +0.1
Go, integration tests only 54.1% -0.7
Web, lines 90.3% -0.8
Web, functions 84.8% ±0.0
Go by area
Area Coverage vs main
cmd/docgen 80.3% ±0.0
cmd/genformats 90.8% ±0.0
cmd/oa 0.0% ±0.0
cmd/resetpw 0.0% ±0.0
cmd/server 70.0% -0.8
internal/ai 85.6% ±0.0
internal/api 77.0% +0.1
internal/apkkeys 77.1% ±0.0
internal/artifactpath 100.0% ±0.0
internal/attest 84.0% -1.7
internal/attestation 79.2% new
internal/audit 97.6% ±0.0
internal/auth 91.5% +0.2
internal/backup 72.4% ±0.0
internal/bgtask 96.8% ±0.0
internal/blockreason 100.0% new
internal/branding 93.5% ±0.0
internal/bundlechecks 100.0% new
internal/clientsetup 93.6% ±0.0
internal/config 96.3% -0.1
internal/cron 90.0% ±0.0
internal/crypto 91.0% ±0.0
internal/curation 99.0% ±0.0
internal/database 75.9% -2.4
internal/declarative 84.1% +0.5
internal/dtrack 85.3% ±0.0
internal/exploit 94.1% +0.5
internal/federation 81.2% +0.1
internal/format 81.2% +0.1
internal/formats 88.0% +0.1
internal/gpgkeys 86.8% -0.3
internal/group 89.5% ±0.0
internal/httpcache 100.0% ±0.0
internal/httpcompress 93.3% ±0.0
internal/httpx 85.7% ±0.0
internal/imagesbom 81.9% new
internal/importmeta 93.3% ±0.0
internal/iocopy 100.0% ±0.0
internal/itempath 98.3% ±0.0
internal/lazyre 100.0% ±0.0
internal/license 98.5% ±0.0
internal/licensemeta 87.5% ±0.0
internal/licensepolicy 92.6% ±0.0
internal/limitio 92.9% ±0.0
internal/mcp 89.5% ±0.0
internal/metrics 96.2% ±0.0
internal/middleware 94.2% +0.1
internal/netutil 93.4% +0.4
internal/nixkeys 79.6% ±0.0
internal/oacli 85.1% +0.3
internal/ocimanifest 100.0% ±0.0
internal/ocipath 100.0% ±0.0
internal/ociref 96.8% new
internal/osv 89.8% ±0.0
internal/passwd 93.3% ±0.0
internal/pathseg 100.0% ±0.0
internal/pglock 79.0% ±0.0
internal/pkgdeps 88.1% ±0.0
internal/presign 99.2% ±0.0
internal/promote 84.7% -0.4
internal/proxy 86.7% +0.2
internal/publicurl 96.8% ±0.0
internal/pypisimple 97.9% ±0.0
internal/quarantine 100.0% ±0.0
internal/quayapi 81.2% new
internal/quota 90.7% ±0.0
internal/recovery 85.3% -0.2
internal/registry 100.0% ±0.0
internal/replication 78.2% -0.1
internal/repodispatch 85.1% +0.3
internal/repotype 97.0% ±0.0
internal/sbom 90.6% ±0.0
internal/scanexport 96.4% ±0.0
internal/search 90.7% ±0.0
internal/secrets 91.4% ±0.0
internal/storage 84.8% ±0.0
internal/telemetry 92.2% ±0.0
internal/tiering 83.5% ±0.0
internal/trash 96.7% ±0.0
internal/urlparams 100.0% ±0.0
internal/vuln 89.8% -0.1
internal/webhook 86.1% +2.0
internal/worker 82.6% -0.1
internal/workq 79.5% ±0.0
pkg/ansible 89.8% ±0.0
pkg/apk 96.0% ±0.0
pkg/cargo 95.6% ±0.0
pkg/compactindex 97.8% ±0.0
pkg/composer 94.5% ±0.0
pkg/conan 99.2% ±0.0
pkg/conda 94.8% ±0.0
pkg/deb 80.2% ±0.0
pkg/delta 71.4% ±0.0
pkg/gemversion 100.0% ±0.0
pkg/gpg 86.5% ±0.0
pkg/helm 97.0% ±0.0
pkg/logger 93.8% ±0.0
pkg/maven 96.7% ±0.0
pkg/nix 99.1% ±0.0
pkg/npm 88.0% ±0.0
pkg/nuget 97.6% ±0.0
pkg/pacman 90.4% ±0.0
pkg/pyversion 100.0% ±0.0
pkg/rpm 92.3% ±0.0
pkg/rpmsign 90.5% ±0.0
pkg/rubymarshal 87.1% ±0.0
pkg/xzlimit 63.3% ±0.0
tests/integration 78.8% ±0.0
web 93.7% ±0.0
Web by area (lines)
Area Coverage vs main
src 24.2% ±0.0
src/api 90.6% -1.0
src/components 88.2% -1.0
src/composables 88.7% -3.6
src/i18n 98.5% ±0.0
src/lib 99.1% -0.1
src/pages 91.9% ±0.0
src/pwa 97.6% ±0.0
src/router 99.7% ±0.0
src/stores 99.0% ±0.0
src/telemetry 90.9% ±0.0

Full report (HTML, merged profile) in the CI run artifacts

@M0Rf30
M0Rf30 merged commit 70d1566 into main Nov 8, 2026
27 checks passed
@M0Rf30
M0Rf30 deleted the feat/konflux-tekton branch November 8, 2026 16:53
@M0Rf30 M0Rf30 mentioned this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant