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: Add CRI tests for integrity protection of LCOW layers #1193

Merged
merged 3 commits into from
Oct 22, 2021

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Oct 8, 2021

Add tests that validate that integrity protection is checked when
LCOW layers have dm-verity hashes appended.

Depends on:

Signed-off-by: Maksim An maksiman@microsoft.com

@anmaxvl anmaxvl requested a review from a team as a code owner October 8, 2021 17:53
Copy link
Contributor

@katiewasnothere katiewasnothere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one request, otherwise LGTM

@katiewasnothere katiewasnothere self-assigned this Oct 8, 2021
t,
[]string{imageLcowAlpine},
WithSandboxAnnotations(map[string]string{
"containerd.io/diff/io.microsoft.storage.lcow.append-dm-verity": "true",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This depends on this getting in as is right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, that too. added a feature flag to enable local testing at least.

@dcantah dcantah self-assigned this Oct 11, 2021
@dcantah
Copy link
Contributor

dcantah commented Oct 14, 2021

I think we should hold off to see if anyone has opinions on the labels vs annotations for the containerd PR, as that would change this slightly. The tests LGTM though so if the ctrd one goes in feel free to check in

Add tests that validate that integrity protection is checked when
LCOW layers have dm-verity hashes appended.

Signed-off-by: Maksim An <maksiman@microsoft.com>
Signed-off-by: Maksim An <maksiman@microsoft.com>
Signed-off-by: Maksim An <maksiman@microsoft.com>
@anmaxvl
Copy link
Contributor Author

anmaxvl commented Oct 22, 2021

I think we shouldn't wait for the upstream PR here. The tests are hidden behind a feature flag which is not added to allFeatures

@anmaxvl
Copy link
Contributor Author

anmaxvl commented Oct 22, 2021

@dcantah lmk if you have any concerns with merging this.

@dcantah
Copy link
Contributor

dcantah commented Oct 22, 2021

Sure, I was mainly hesitant on the labels vs annotations discussion. I still don't have a great view of which to use. I'd ping Mike Brown on the PR for his opinion.

@dcantah
Copy link
Contributor

dcantah commented Oct 22, 2021

If anything it's a one line change depending on what is decided between the two.

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