mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 00:50:38 -05:00
Bootstrapper
This commit is contained in:
parent
1af18e990d
commit
66b573ea5d
34 changed files with 492 additions and 202 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
"google.golang.org/grpc/credentials/insecure"
|
||||
)
|
||||
|
||||
// ConstellationKMS is a key service using the Constellation Coordinator to fetch volume keys.
|
||||
// ConstellationKMS is a key service to fetch volume keys.
|
||||
type ConstellationKMS struct {
|
||||
endpoint string
|
||||
kms kmsClient
|
||||
|
|
@ -23,7 +23,7 @@ func NewConstellationKMS(coordinatorEndpoint string) *ConstellationKMS {
|
|||
}
|
||||
}
|
||||
|
||||
// GetDEK connects to the Constellation Coordinators VPN API to request a data encryption key derived from the Constellation's master secret.
|
||||
// GetDEK request a data encryption key derived from the Constellation's master secret.
|
||||
func (k *ConstellationKMS) GetDEK(ctx context.Context, dekID string, dekSize int) ([]byte, error) {
|
||||
conn, err := grpc.DialContext(ctx, k.endpoint, grpc.WithTransportCredentials(insecure.NewCredentials()))
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue