Cloud migration: encryption key is a byte slice (#90739)
* Cloud migrations: include metadata returned by CMS in the index file * Cloud migrations: make EncryptionKey a []byte in structs * test
This commit is contained in:
@@ -57,7 +57,7 @@ func (c *memoryClientImpl) StartSnapshot(context.Context, cloudmigration.CloudMi
|
||||
return nil, fmt.Errorf("nacl: generating public and private key: %w", err)
|
||||
}
|
||||
c.snapshot = &cloudmigration.StartSnapshotResponse{
|
||||
EncryptionKey: fmt.Sprintf("%x", publicKey[:]),
|
||||
EncryptionKey: publicKey[:],
|
||||
SnapshotID: uuid.NewString(),
|
||||
MaxItemsPerPartition: 10,
|
||||
Algo: "nacl",
|
||||
|
||||
Reference in New Issue
Block a user