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

webui: introduce dialog to unlock existing locked LUKS partitions #4873

Merged
merged 2 commits into from
Jul 17, 2023

Conversation

KKoukiou
Copy link
Contributor

No description provided.

@KKoukiou

This comment was marked as resolved.

@M4rtinK
Copy link
Contributor

M4rtinK commented Jun 30, 2023

/boot-iso --webui

@KKoukiou
Copy link
Contributor Author

/boot-iso --webui

@KKoukiou KKoukiou force-pushed the webui-luks branch 2 times, most recently from b63fb37 to d7504e4 Compare July 3, 2023 14:19
@KKoukiou

This comment was marked as resolved.

@KKoukiou KKoukiou force-pushed the webui-luks branch 6 times, most recently from 42b59d2 to f5b585d Compare July 5, 2023 15:07
Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

Looks good to me. But someone else should take a look on the backend too :).

Copy link
Contributor

@VladimirSlavik VladimirSlavik left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you!

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

One note from me. Otherwise LGTM.

@@ -688,6 +688,12 @@ def test_unlock_device(self, device_setup, device_teardown, format_setup):
self.storage.devicetree.populate.assert_called_once()
self.storage.devicetree.teardown_all.assert_called_once()
assert dev2.format.has_key
assert self.interface.GetFormatData("dev2") == {
Copy link
Member

Choose a reason for hiding this comment

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

Would be great to have this check also before unlocking the device to check if has_key is False.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So before unlocking the has_key does not exist. I am also a bit confused why it's not false, but since I just parse it from blivet and I don't get something explicit there, I guessed it's correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated the test to reflect this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that it is possible that fmt.has_key returns None instead of False, so we throw it away when we prune the collected attributes. It would be great if this attribute was always there for luks formats, but in that case, that should be fixed in Blivet. @vojtechtrefny?

Copy link
Contributor

Choose a reason for hiding this comment

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

It would be great if this attribute was always there for luks formats, but in that case, that should be fixed in Blivet.

Makes sense. storaged-project/blivet#1142

Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks!

Copy link
Contributor

@poncovka poncovka left a comment

Choose a reason for hiding this comment

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

The back-end changes look good to me. Thanks!

@@ -688,6 +688,12 @@ def test_unlock_device(self, device_setup, device_teardown, format_setup):
self.storage.devicetree.populate.assert_called_once()
self.storage.devicetree.teardown_all.assert_called_once()
assert dev2.format.has_key
assert self.interface.GetFormatData("dev2") == {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that it is possible that fmt.has_key returns None instead of False, so we throw it away when we prune the collected attributes. It would be great if this attribute was always there for luks formats, but in that case, that should be fixed in Blivet. @vojtechtrefny?

vojtechtrefny added a commit to vojtechtrefny/blivet that referenced this pull request Jul 12, 2023
@KKoukiou
Copy link
Contributor Author

/kickstart-test --testtype smoke

@KKoukiou
Copy link
Contributor Author

/kickstart-test --testtype smoke

@KKoukiou
Copy link
Contributor Author

/kickstart-test --testtype smoke

@KKoukiou
Copy link
Contributor Author

/kickstart-test --testtype smoke

This is especially useful to know if a LUKS device can be unlocked.
@KKoukiou
Copy link
Contributor Author

/kickstart-test --testtype smoke

@KKoukiou KKoukiou merged commit 072eceb into rhinstaller:master Jul 17, 2023
14 checks passed
@KKoukiou KKoukiou deleted the webui-luks branch July 17, 2023 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

6 participants