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

Add test for prevention of reusing encrypted layers #3941

Merged

Conversation

hshiina
Copy link
Contributor

@hshiina hshiina commented Apr 28, 2022

Signed-off-by: Hironori Shiina shiina.hironori@jp.fujitsu.com

What type of PR is this?

/kind other

What this PR does / why we need it:

This fix modifies the test "commit oci encrypt to registry" to verify that encrypted layers are not reused for a non-encrypted image. This test verifies a fix in containers/image#1533.

How to verify it

Run the modified test: bats tests/commit.bats

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

@hshiina
Copy link
Contributor Author

hshiina commented Apr 28, 2022

This test will succeed after containers/image#1533 is introduced.

@flouthoc
Copy link
Collaborator

flouthoc commented May 4, 2022

@hshiina Could you please rebase this , c/image is already updated on upstream.

@hshiina hshiina force-pushed the test-not-reuse-encrypt-layer branch from ec56c8e to 5a9ba0c Compare May 4, 2022 13:20
This fix modifies the test "commit oci encrypt to registry" to verify
that encrypted layers are not reused for a non-encrypted image.

see: containers/image#1533

Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
@hshiina hshiina force-pushed the test-not-reuse-encrypt-layer branch from 5a9ba0c to 063abf6 Compare May 4, 2022 21:57
@rhatdan
Copy link
Member

rhatdan commented May 6, 2022

/approve
/lgtm
Thanks @hshiina

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 6, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hshiina, rhatdan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label May 6, 2022
@openshift-merge-robot openshift-merge-robot merged commit 33eaa17 into containers:main May 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants