MCPcopy
hub / github.com/getsops/sops / UpdateMasterKeys

Method UpdateMasterKeys

sops.go:832–836  ·  view source on GitHub ↗

UpdateMasterKeys encrypts the data key with all master keys

(dataKey []byte)

Source from the content-addressed store, hash-verified

830
831// UpdateMasterKeys encrypts the data key with all master keys
832func (m *Metadata) UpdateMasterKeys(dataKey []byte) (errs []error) {
833 return m.UpdateMasterKeysWithKeyServices(dataKey, []keyservice.KeyServiceClient{
834 keyservice.NewLocalClient(),
835 })
836}
837
838// GetDataKeyWithKeyServices retrieves the data key, asking KeyServices to decrypt it with each
839// MasterKey in the Metadata's KeySources until one of them succeeds.

Callers 1

GenerateDataKeyMethod · 0.80

Calls 2

NewLocalClientFunction · 0.92

Tested by

no test coverage detected