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
@@ -188,7 +188,7 @@ func (s *Service) buildSnapshot(ctx context.Context, signedInUser *user.SignedIn
// Use GMS public key + the grafana generated private private key to encrypt snapshot files.
snapshotWriter, err := snapshot.NewSnapshotWriter(contracts.AssymetricKeys{
Public: []byte(snapshotMeta.EncryptionKey),
Public: snapshotMeta.EncryptionKey,
Private: privateKey[:],
},
crypto.NewNacl(),