mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 17:11:08 -05:00
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.
This commit is contained in:
parent
0e71322e2e
commit
9a1f52e94e
35 changed files with 466 additions and 623 deletions
|
|
@ -30,8 +30,10 @@ const (
|
|||
MasterSecretLengthMin = 16
|
||||
// RNGLengthDefault is the number of bytes used for generating nonces.
|
||||
RNGLengthDefault = 32
|
||||
// HKDFInfoPrefix is the prefix used for the info parameter in HKDF.
|
||||
HKDFInfoPrefix = "key-"
|
||||
// DEKPrefix is the prefix used to prefix DEK IDs. Originally introduced as a requirement for the HKDF info parameter.
|
||||
DEKPrefix = "key-"
|
||||
// MeasurementSecretKeyID is name used for the measurementSecret DEK.
|
||||
MeasurementSecretKeyID = "measurementSecret"
|
||||
)
|
||||
|
||||
// DeriveKey derives a key from a secret.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue