diff --git a/stores/stores.go b/stores/stores.go index 169e8dbb52..bdc026a00d 100644 --- a/stores/stores.go +++ b/stores/stores.go @@ -44,14 +44,14 @@ type SopsFile struct { type Metadata struct { ShamirThreshold int `yaml:"shamir_threshold,omitempty" json:"shamir_threshold,omitempty"` KeyGroups []keygroup `yaml:"key_groups,omitempty" json:"key_groups,omitempty"` - KMSKeys []kmskey `yaml:"kms" json:"kms"` - GCPKMSKeys []gcpkmskey `yaml:"gcp_kms" json:"gcp_kms"` - AzureKeyVaultKeys []azkvkey `yaml:"azure_kv" json:"azure_kv"` - VaultKeys []vaultkey `yaml:"hc_vault" json:"hc_vault"` - AgeKeys []agekey `yaml:"age" json:"age"` + KMSKeys []kmskey `yaml:"kms,omitempty" json:"kms,omitempty"` + GCPKMSKeys []gcpkmskey `yaml:"gcp_kms,omitempty" json:"gcp_kms,omitempty"` + AzureKeyVaultKeys []azkvkey `yaml:"azure_kv,omitempty" json:"azure_kv,omitempty"` + VaultKeys []vaultkey `yaml:"hc_vault,omitempty" json:"hc_vault,omitempty"` + AgeKeys []agekey `yaml:"age,omitempty" json:"age,omitempty"` LastModified string `yaml:"lastmodified" json:"lastmodified"` MessageAuthenticationCode string `yaml:"mac" json:"mac"` - PGPKeys []pgpkey `yaml:"pgp" json:"pgp"` + PGPKeys []pgpkey `yaml:"pgp,omitempty" json:"pgp,omitempty"` UnencryptedSuffix string `yaml:"unencrypted_suffix,omitempty" json:"unencrypted_suffix,omitempty"` EncryptedSuffix string `yaml:"encrypted_suffix,omitempty" json:"encrypted_suffix,omitempty"` UnencryptedRegex string `yaml:"unencrypted_regex,omitempty" json:"unencrypted_regex,omitempty"`