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: verify that factory reset after remodeling to a new snapd works #14471

Draft
wants to merge 2 commits into
base: fde-manager-features
Choose a base branch
from

Conversation

valentindavid
Copy link
Contributor

It does not work yet.

This depends on #14304. It also has a commit in common with #14305 (fakestore tracks)

@github-actions github-actions bot added the Run Nested -auto- Label automatically added in case nested tests need to be executed label Sep 5, 2024
@valentindavid valentindavid added the FDE Manager Pull requests that target FDE manager branch label Sep 10, 2024
@valentindavid valentindavid force-pushed the valentindavid/remodel-then-factory-reset branch from e820f9a to 21ed272 Compare September 11, 2024 10:11
@valentindavid valentindavid force-pushed the valentindavid/remodel-then-factory-reset branch from 21ed272 to 4b3991d Compare September 20, 2024 08:41
@valentindavid valentindavid added the Run nested The PR also runs tests inluded in nested suite label Sep 20, 2024
@valentindavid valentindavid reopened this Sep 20, 2024
@pedronis pedronis force-pushed the fde-manager-features branch from fcc5e2e to 24018ee Compare October 18, 2024 11:27
@valentindavid valentindavid force-pushed the valentindavid/remodel-then-factory-reset branch from 4b3991d to f463a03 Compare October 18, 2024 11:53
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (fde-manager-features@dd0f4ad). Learn more about missing BASE report.

Additional details and impacted files
@@                   Coverage Diff                   @@
##             fde-manager-features   #14471   +/-   ##
=======================================================
  Coverage                        ?   78.84%           
=======================================================
  Files                           ?     1093           
  Lines                           ?   147881           
  Branches                        ?        0           
=======================================================
  Hits                            ?   116592           
  Misses                          ?    24010           
  Partials                        ?     7279           
Flag Coverage Δ
unittests 78.84% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@valentindavid valentindavid force-pushed the valentindavid/remodel-then-factory-reset branch 2 times, most recently from 3fe46ac to 29dd378 Compare November 19, 2024 11:38
@valentindavid valentindavid marked this pull request as ready for review November 19, 2024 11:38
@valentindavid
Copy link
Contributor Author

This might still need #14718 to work. We will see.

@valentindavid valentindavid force-pushed the valentindavid/remodel-then-factory-reset branch 4 times, most recently from c0efc73 to d43620a Compare November 20, 2024 09:30
@valentindavid
Copy link
Contributor Author

We are missing a piece, I have forgotten about that. We need to be able to convert LUKS2 disk without tokens to ones with tokens, just for the names, so we can rename and delete them.

@valentindavid
Copy link
Contributor Author

I have opened canonical/secboot#349 to have a way to write factory reset in a way that works.

Until now, we were just delete old keys on factory-reset instead of
renaming if cryptsetup was too old. But this is a bit too dangerous.
Instead we copy-delete them.

Second, we need to convert old keyslots to have a name so we can
remove them after.
@valentindavid valentindavid force-pushed the valentindavid/remodel-then-factory-reset branch from d43620a to bfbb339 Compare December 10, 2024 10:46
@valentindavid
Copy link
Contributor Author

This also depends on canonical/secboot#355

@valentindavid
Copy link
Contributor Author

Draft, because it needs PRs to be merged on secboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FDE Manager Pull requests that target FDE manager branch Run Nested -auto- Label automatically added in case nested tests need to be executed Run nested The PR also runs tests inluded in nested suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant