Skip to content

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 [email protected]

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

@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

@anmaxvl anmaxvl force-pushed the lcow-layer-integrity-tests branch from 9d8f078 to e77c84e Compare October 19, 2021 23:45
Add tests that validate that integrity protection is checked when
LCOW layers have dm-verity hashes appended.

Signed-off-by: Maksim An <[email protected]>
@anmaxvl anmaxvl force-pushed the lcow-layer-integrity-tests branch from e77c84e to e38656e Compare October 22, 2021 05:17
@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