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

Allow installation with crypted root FS #308

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

jwalzer
Copy link
Contributor

@jwalzer jwalzer commented Mar 14, 2024

Description

Nowadays I don't trust any storage device anymore to keep my data when I need it, and to delete the data when I don't need/want it anymore. Consequentöy encrypting everything at rest is a maxime of today. do not write any unencrypted data to a storage device.

This PR allows to install your machine with centos/rhel on a crypted root filesystem which can be unlocked on boot via SSH

This PR is based on #307 .

The whole process to install is a bit fiddly, especially as the unlocking needs some workarounds to be automated.

The PR pulls in the epel repositories for dropbear to have an sshd in the initramfs and the copr repository: uriesk/dracut-crypt-ssh

the code just plumbs everything together

Note: the initial setup is still considered unsafe because the passphrase gets transfered via plaintext file into the rescue system. Thats why it will initially will setup a simple default key for the installimage installer.
After the reboots are finished the code will change the passphrase by adding the final one and deleting the initial one.
Thats the reason why the initial passphrase is stored unencrypted.

@rbo rbo changed the base branch from master to devel April 2, 2024 19:10
@rbo
Copy link
Contributor

rbo commented Apr 2, 2024

I don't know for how many people this feature is important.

Please rebase the branch to the latest devel tree, I would like to test it first....

@jwalzer
Copy link
Contributor Author

jwalzer commented Apr 15, 2024

Rebased to devel

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.

2 participants