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

tests/e2e: Add encrypted image tests #1988

Open
stevenhorsman opened this issue Aug 8, 2024 · 0 comments
Open

tests/e2e: Add encrypted image tests #1988

stevenhorsman opened this issue Aug 8, 2024 · 0 comments
Labels

Comments

@stevenhorsman
Copy link
Member

We have encrypted image support in kata-containers now, so we should add some testing in peer pods to check it works correctly

This is the acceptance criteria based on Kata, but it might be overblown to test all three cases and maybe one positive and one negative test (to ensure our test image is actually encrypted) is enough?

Acceptance Criteria

Scenario: Pull encrypted image on peer pod works
Given I have a version of kata deployed with a guest image that has an agent with guest_pull feature enabled and nydus-snapshotter installed and configured for guest-pulling
And A public encrypted container image i with a decryption key k that is configured in a KBS, so that image-rs on the guest can connect to it
When I try and create a peer pod from i
Then The pod is successfully created and runs

Scenario: Cannot pull encrypted image with no decryption key
Given I have a version of kata deployed with a guest image that has an agent with guest_pull feature enabled and nydus-snapshotter installed and configured for guest-pulling
And A public encrypted container image i with a decryption key k that is not configured in a KBS, so that image-rs on the guest can connect to it
When I try and create a peer pod from i
Then The pod is not created an errors (with a helpful message hopefully)

Scenario: Cannot pull encrypted image with wrong decryption key
Given I have a version of kata deployed with a guest image that has an agent with guest_pull feature enabled and nydus-snapshotter installed and configured for guest-pulling
And A public encrypted container image i with a decryption key k and a different key k' that is configured in a KBS, so that image-rs on the guest can connect to it
When I try and create a peer pod from i
Then The pod is not created an errors (with a helpful message hopefully)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant