Skip to content

IonicDev/ionic-clevis-pin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Ionic Clevis Pin

This pin uses Ionic Machina to request an Ionic Policy controlled AES key by its keyid using the machina cli.

Dependencies

This pin requires the clevis package. This pin also requires the machina cli available here. If operating inside of a virtual machine it may be necessary to install and run the haveged tool to seed sufficient entropy for the machina cli.

Installation

Copy clevis-encrypt-ionic and clevis-decrypt-ionic to /usr/bin/ along side the other clevis pins.

Setup

Once machina is installed a persistor should be enrolled see here for details.

Usage

The Ionic keyid must be provided in the JSON configuration for the pin. clevis encrypt ionic '{"keyid":"<mykeyid>"}' < plain.txt > cyptotext.jwe

Machina general options can be specified in JSON configuration field. {"keyid":"<mykeyid>","generaloptions":"-t <devicetype> -f <devicefilepath>"} This is required when using any persistor other than the default.

Using Ionic Clevis Pin for luks-bind

To use this pin for luks binding the clevis-luks package is also required. Do not rely on the default persistor for machina instead specify a persistor located on the boot volume.

luks encrypt a device

cryptsetup --verify-passphrase luksFormat <device> Enter a backup password.

unlock the device

cryptsetup luksOpen <device> example

format the device

mkfs.ext4 /dev/mapper/example

create mount destination

mkdir /EXAMPLE

mount the device

mount /dev/mapper/example /EXAMPLE

create a key with machina

machina key create Record the keyid.

bind the luks device

clevis luks bind -d <device> ionic '{"keyid":"<mykeyid>","generaloptions":"-t <devicetype> -f <devicefilepath>"}

Configure automounting

Use the clevis-mount-helper project to configure automounting of luks encrypted devices.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages