-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
storage: Remember passphrases and export them to Anaconda #19924
storage: Remember passphrases and export them to Anaconda #19924
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When creating a device and then formatting it this works. However I create an encrypted partition directly the passphrase is not passed or at least not maintained inside the cockpit_passphrases.
AwesomeScreenshot-2_1_2024.5.55.00PM.mp4
Ah, yes, I forgot about this case. I was only looking for the Unlock() method... Thanks! |
59b5340
to
1290a16
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, hmm, let's not hide all errors when exporting, I went too far with that. I don't want the page to crash when there is garbage in sessionStorage, but I think we should crash when there is a bug in the exporting code. |
1290a16
to
1ecb7d8
Compare
Should be fixed. |
1ecb7d8
to
396a7e4
Compare
I can't reproduce this, unfortunately. |
99f6d96
to
e7eeeb1
Compare
e7eeeb1
to
4e29016
Compare
e6895fc
to
3fbe954
Compare
3fbe954
to
54761d2
Compare
Oops, we need tests, forgot about that. |
Retracing veto, missed the special case
Ah, I missed that it skips the storing of passphrases in non-anaconda mode, this alleviates most of my concern. So I retract my veto. |
8712a02
to
6cf61ca
Compare
6cf61ca
to
bddb7d0
Compare
bddb7d0
to
56676a4
Compare
92bccde
to
21a588b
Compare
21a588b
to
967456b
Compare
This also changes everything from localStorage to sessionStorage, for good measure.
967456b
to
e482442
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned on matrix.
- Please merge this asap, tests are currently passing with this and my open cockpit-storage integration PR
- create a ticket in COCKPIT component in Jira to remove this code which will be blocked on https://issues.redhat.com/browse/INSTALLER-3898
- I already started working on https://issues.redhat.com/browse/INSTALLER-3898 and it looks very promising - even for this f40 release
Merging prematurely this - even though it's not final solution - will make our collaboration more seemless as we can develop on top of existing tests to at least not break the functionality
} catch { | ||
console.warn("Can't record passphrases"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 2 added lines are not executed by any test. Details
remember_passphrase(block, passphrase); | ||
} else if (passphrase_type == "stored") { | ||
await crypto.Unlock("", {}); | ||
} else if (passphrase_type == "clevis") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This added line is not executed by any test. Details
No description provided.