Skip to content
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

feat(RELEASE-1176): only sign registry.access if required #601

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

mmalina
Copy link
Contributor

@mmalina mmalina commented Oct 8, 2024

rh-sign-image and rh-sign-image-cosign will now only sign registry.access.redhat.com references if requires_terms is false in the corresponding repository object in Pyxis.

If require_terms is true (the vast majority of repos), signing of registry.access references will be skipped which will result in 50 % reduction of signing
requests.

Several changes are included:

  • publish-pyxis-repository provides a new result that points to a file that contains a list of repos where signing of registry.access references is needed.
  • rh-sign-image and rh-sign-image-cosign take this result as a new mandatory parameter and will skip registry.access signing unless the given repo is included in the file.
  • rh-advisories and rh-push-to-registry-redhat-io pipelines were modified for this. The order of tasks was also slightly modified so that publish-pyxis-repository runs earlier in the pipeline.

Copy link

openshift-ci bot commented Oct 8, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@mmalina mmalina force-pushed the require-terms-switch branch 6 times, most recently from 7f23c36 to 3bd01f6 Compare October 8, 2024 13:03
@mmalina mmalina marked this pull request as ready for review October 8, 2024 15:11
@mmalina mmalina requested a review from a team as a code owner October 8, 2024 15:11
@mmalina
Copy link
Contributor Author

mmalina commented Oct 9, 2024

/retest

@mmalina
Copy link
Contributor Author

mmalina commented Oct 14, 2024

/retest

@mmalina mmalina force-pushed the require-terms-switch branch 3 times, most recently from 8341108 to cf4fc35 Compare October 21, 2024 11:32
johnbieren
johnbieren previously approved these changes Oct 21, 2024
@mmalina
Copy link
Contributor Author

mmalina commented Oct 22, 2024

@johnbieren I think I lost your approval when I needed to resolve a conflict.

johnbieren
johnbieren previously approved these changes Oct 22, 2024
@mmalina
Copy link
Contributor Author

mmalina commented Oct 23, 2024

/retest

2 similar comments
@mmalina
Copy link
Contributor Author

mmalina commented Oct 23, 2024

/retest

@mmalina
Copy link
Contributor Author

mmalina commented Oct 23, 2024

/retest

Copy link

openshift-ci bot commented Oct 25, 2024

New changes are detected. LGTM label has been removed.

@mmalina
Copy link
Contributor Author

mmalina commented Oct 25, 2024

/retest

`rh-sign-image` and `rh-sign-image-cosign` will now only
sign registry.access.redhat.com
references if requires_terms is false in the corresponding
repository object in Pyxis.

If require_terms is true (the vast majority of repos),
signing of registry.access references will be skipped
which will result in 50 % reduction of signing
requests.

Several changes are included:

* `publish-pyxis-repository` provides a new result that points
  to a file that contains a list of repos where signing
  of registry.access references is needed.
* `rh-sign-image` and `rh-sign-image-cosign` take this result
  as a new mandatory parameter
  and will skip registry.access signing unless the given repo
  is included in the file.
* `rh-advisories` and `rh-push-to-registry-redhat-io` pipelines
  were modified for this. The order of tasks was also slightly
  modified so that `publish-pyxis-repository` runs earlier
  in the pipeline.

Signed-off-by: Martin Malina <[email protected]>
@mmalina
Copy link
Contributor Author

mmalina commented Oct 25, 2024

/retest

@mmalina mmalina merged commit 3208763 into konflux-ci:development Oct 25, 2024
8 checks passed
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.

3 participants