constellation/mount
Malte Poll 260d2571c1 Only upload kubeadm certs if key is rotated
Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
Co-authored-by: 3u13r <lc@edgeless.systems>
2022-07-14 17:25:18 +02:00
..
cryptmapper Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00
kms Bootstrapper 2022-07-14 17:25:18 +02:00
test Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
README.md Report wipe progress every 30s for non terminal logging 2022-05-03 08:15:38 +02:00

constellation-mount-utils

Dependencies

This package uses the C library libcryptsetup for device mapping.

To install the required dependencies on Ubuntu run:

sudo apt install libcryptsetup-dev

Testing

A small test program is available in test/main.go. To build the program run:

go build -o test/crypt ./test/

Create a new crypt device for /dev/sdX and map it to /dev/mapper/volume01:

sudo test/crypt -source /dev/sdX -target volume01 -v 4

You can now interact with the mapped volume as if it was an unformatted device:

sudo mkfs.ext4 /dev/mapper/volume01
sudo mount /dev/mapper/volume01 /mnt/volume01

Close the mapped volume:

sudo umount /mnt/volume01
sudo test/crypt -c -target volume01 -v 4