-
Notifications
You must be signed in to change notification settings - Fork 216
[release-4.18] USHIFT-5294: Enable sigstore verification for selected scenarios #4478
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
Merged
openshift-merge-bot
merged 6 commits into
openshift:release-4.18
from
ggiguash:enable_sigstore_verification_418
Jan 30, 2025
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fcc17b1
Remove explicit IMAGE_SIGSTORE_ENABLED=false setting from scenarios
ggiguash ca845d7
Enable sigstore check in published image tests
ggiguash 8428fb5
Add dedicated container policy verification test
ggiguash 8cab2aa
Fix does_image_exist function logic in scenario.sh
ggiguash e3da28b
Fix [email protected] scenario to use rhel94
ggiguash 23ec0ac
Fix does_image_exist function to check in the mirror registry
ggiguash File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# Sourced from scenario.sh and uses functions defined there. | ||
|
||
# Enable container signature verification for current release images, | ||
# including the optional components. | ||
# These are ec / rc / z-stream, thus must all to be signed. | ||
# shellcheck disable=SC2034 # used elsewhere | ||
IMAGE_SIGSTORE_ENABLED=true | ||
|
||
start_image=rhel95-bootc-crel-optionals | ||
|
||
scenario_create_vms() { | ||
if ! does_image_exist "${start_image}"; then | ||
echo "Image '${start_image}' not found - skipping test" | ||
return 0 | ||
fi | ||
prepare_kickstart host1 kickstart-bootc.ks.template "${start_image}" | ||
launch_vm --boot_blueprint rhel95-bootc | ||
} | ||
|
||
scenario_remove_vms() { | ||
if ! does_image_exist "${start_image}"; then | ||
echo "Image '${start_image}' not found - skipping test" | ||
return 0 | ||
fi | ||
remove_vm host1 | ||
} | ||
|
||
scenario_run_tests() { | ||
if ! does_image_exist "${start_image}"; then | ||
echo "Image '${start_image}' not found - skipping test" | ||
return 0 | ||
fi | ||
# Run a minimal test for this scenario as its main functionality is | ||
# to verify container image signature check is enabled | ||
run_tests host1 \ | ||
--variable "IMAGE_SIGSTORE_ENABLED:True" \ | ||
suites/standard1/containers-policy.robot | ||
} |
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# Sourced from scenario.sh and uses functions defined there. | ||
|
||
# Enable container signature verification for current release images, | ||
# including the optional components. | ||
# These are ec / rc / z-stream, thus must all to be signed. | ||
# shellcheck disable=SC2034 # used elsewhere | ||
IMAGE_SIGSTORE_ENABLED=true | ||
|
||
start_commit=rhel-9.4-microshift-crel-optionals | ||
|
||
scenario_create_vms() { | ||
if ! does_commit_exist "${start_commit}"; then | ||
echo "Commit '${start_commit}' not found in ostree repo - skipping test" | ||
return 0 | ||
fi | ||
prepare_kickstart host1 kickstart.ks.template "${start_commit}" | ||
launch_vm | ||
} | ||
|
||
scenario_remove_vms() { | ||
if ! does_commit_exist "${start_commit}"; then | ||
echo "Commit '${start_commit}' not found in ostree repo - skipping test" | ||
return 0 | ||
fi | ||
remove_vm host1 | ||
} | ||
|
||
scenario_run_tests() { | ||
if ! does_commit_exist "${start_commit}"; then | ||
echo "Commit '${start_commit}' not found in ostree repo - skipping test" | ||
return 0 | ||
fi | ||
# Run a minimal test for this scenario as its main functionality is | ||
# to verify container image signature check is enabled | ||
run_tests host1 \ | ||
--variable "IMAGE_SIGSTORE_ENABLED:True" \ | ||
suites/standard1/containers-policy.robot | ||
} |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.