Skip to content

Commit f6bc6df

Browse files
authored
Merge pull request #1781 from felixfontein/datakey-caching
Fix caching of Metadata.DataKey
2 parents 9b4714d + b09f60e commit f6bc6df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sops.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ func (m *Metadata) UpdateMasterKeys(dataKey []byte) (errs []error) {
824824

825825
// GetDataKeyWithKeyServices retrieves the data key, asking KeyServices to decrypt it with each
826826
// MasterKey in the Metadata's KeySources until one of them succeeds.
827-
func (m Metadata) GetDataKeyWithKeyServices(svcs []keyservice.KeyServiceClient, decryptionOrder []string) ([]byte, error) {
827+
func (m *Metadata) GetDataKeyWithKeyServices(svcs []keyservice.KeyServiceClient, decryptionOrder []string) ([]byte, error) {
828828
if m.DataKey != nil {
829829
return m.DataKey, nil
830830
}

0 commit comments

Comments
 (0)