-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROX-27350: Setup ACS trusted tasks builds and publishing #3
Open
msugakov
wants to merge
32
commits into
main
Choose a base branch
from
misha/ROX-27350-initial-setup
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
2 times, most recently
from
December 11, 2024 19:21
18c2c31
to
ad9ed75
Compare
/retest acs-konflux-tasks-on-push |
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
6 times, most recently
from
December 12, 2024 10:05
7016f0d
to
36eac71
Compare
for consistent text editing experience in IDEs. Generic contents from https://editorconfig.org/ YAML formatting borrowed from https://github.com/stackrox/stackrox/blob/master/.editorconfig
Used the following commands, no manual changes: ``` $ cdrox $ cp .tekton/*-task.yaml ~/projects/stackrox-konflux-tasks/tasks/ ```
to prevent clashes with collector and scanner copies of it.
in order to differentiate this V4 task from V2 task that'll come from the `scanner` repo.
Used the following commands, no further manual changes ``` $ cdrox scanner $ cp .tekton/*-task.yaml ~/projects/stackrox-konflux-tasks/tasks/ ```
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
3 times, most recently
from
December 12, 2024 10:59
a98d0a0
to
4056835
Compare
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
3 times, most recently
from
December 12, 2024 12:17
b798fe8
to
6921801
Compare
msugakov
changed the title
ROX-27350: WIP
ROX-27350: Setup ACS trusted tasks builds and publishing
Dec 12, 2024
msugakov
added a commit
to stackrox/collector
that referenced
this pull request
Dec 12, 2024
5 tasks
msugakov
added a commit
to stackrox/stackrox
that referenced
this pull request
Dec 12, 2024
which come from stackrox/konflux-tasks#3
9 tasks
msugakov
added a commit
to stackrox/stackrox
that referenced
this pull request
Dec 12, 2024
which come from stackrox/konflux-tasks#3
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
from
December 12, 2024 19:49
3f000ed
to
7d11471
Compare
in order to better differentiate it better from its V4 sibling.
`tkn-bundle-oci-ta` is the one which builds and pushes tasks bundle as OCI artifact. https://github.com/konflux-ci/build-definitions/tree/main/task/tkn-bundle-oci-ta/0.1
because there's no base image anyway and because the task isn't happy due to architecture not being specified on the image. ``` step-check-images WARNING: SBOM attachments are deprecated and support will be removed in a Cosign release soon after 2024-02-22 (see sigstore/cosign#2755). Instead, please use SBOM attestations. WARNING: Downloading SBOMs this way does not ensure its authenticity. If you want to ensure a tamper-proof SBOM, download it using 'cosign download attestation <image uri>'. Error: could not parse reference: quay.io/redhat-user-workloads/rh-acs-tenant/acs-konflux-tasks@ main.go:74: error during command execution: could not parse reference: quay.io/redhat-user-workloads/rh-acs-tenant/acs-konflux-tasks@ {"result":"ERROR","timestamp":"2024-12-11T19:23:19+00:00","note":"Unexpected error: Script errored at command: cosign download sbom $arch_imageanddigest > ${SBOM_FILE_PATH}.","namespace":"default","successes":0,"failures":0,"warnings":0} ```
which is not used to work with containers without architecture (and there's no way to force architecture via parameters). From logs: ``` step-check-container time="2024-12-12T08:09:55Z" level=info msg="certification library version" version="1.10.2 <commit: 3a93f15cba1f3a4517c02f10914d6cff5cfa5c60>" Error: cannot process image manifest of different arch without platform override Usage: preflight check container [flags] ... ```
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
3 times, most recently
from
December 13, 2024 10:29
333d151
to
526fa7d
Compare
This is paired with stackrox/scanner#1742 The idea is to unify determine-image-tag tasks for scanner and collector after that.
and add notes to later unify with the StackRox one. Scanner can be unified with Collector thanks to stackrox/scanner#1742 It could be that the ultimate unification will come in https://issues.redhat.com/browse/ROX-26026 but I created a new task anyway.
since "." makes Cachi2 not love.
to match SCREAMING_CASE of the other ones. This seems to be our predominant convention.
To make things symmetric with the Scanner V2's task.
The pipeline is quick so these timeouts are quite generous and there's room to make them lower, but let's see how it goes.
so that the repo does not look naked.
for user's convenience.
Task bundles are architecture-neutral containers with data and so `build-image-index` is currently disabled and I'm confident we will not need to enable it in the foreseeable future. If some Tekton task needs to use some native binaries, these are provided through step's `image:` attribute. Therefore `build-image-index` is simply redundant at this point.
stackrox/stackrox#13599 will help to catch any regressions.
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
from
December 13, 2024 10:44
526fa7d
to
dd67459
Compare
msugakov
force-pushed
the
misha/ROX-27350-initial-setup
branch
from
December 13, 2024 10:53
9a6400e
to
1c67bf3
Compare
/retest |
msugakov
added a commit
to stackrox/stackrox
that referenced
this pull request
Dec 13, 2024
which come from stackrox/konflux-tasks#3
msugakov
added a commit
to stackrox/collector
that referenced
this pull request
Dec 13, 2024
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.
Notes
determine-image-tag
isn't great but it will not be the right time to address that now. Let's leave that for ROX-27384 or, most likely, ROX-26026.clair-scan
andclamav-scan
but they aren't failing the pipeline either, and so I decided to keep them in the hopes that one day they may start working. By keeping the tasks it will hopefully be easier to conform EC when that will be required.Links
determine-image-tag
to trusted task collector#1992Testing