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:
Bruno
2024-07-22 11:25:12 -03:00
committed by GitHub
parent 7fdf992dab
commit 8d8f2ba587
4 changed files with 8 additions and 13 deletions
@@ -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",