constellation/disk-mapper
Otto Bittner 9a1f52e94e Refactor init/recovery to use kms URI
So far the masterSecret was sent to the initial bootstrapper
on init/recovery. With this commit this information is encoded
in the kmsURI that is sent during init.
For recover, the communication with the recoveryserver is
changed. Before a streaming gRPC call was used to
exchanges UUID for measurementSecret and state disk key.
Now a standard gRPC is made that includes the same kmsURI &
storageURI that are sent during init.
2023-01-19 13:14:55 +01:00
..
cmd Refactor init/recovery to use kms URI 2023-01-19 13:14:55 +01:00
internal Refactor init/recovery to use kms URI 2023-01-19 13:14:55 +01:00
recoverproto Refactor init/recovery to use kms URI 2023-01-19 13:14:55 +01:00
README.md AB#2260 Refactor disk-mapper recovery (#82) 2022-09-08 14:45:27 +02:00

State

Files and source code for mounting persistent state disks

Testing

Integration test is available in disk-mapper/test/integration_test.go. The integration test requires root privileges since it uses dm-crypt. Build and run the test:

go test -c -tags=integration ./disk-mapper/test/
sudo ./test.test