How to match different fields and use different keys in .sops.yaml #1225
-
Hello ! The problem is that in the file, something like this won't work, because SOPS will only evaluate the first matching block :
And, I did not find a way to specify multiple regex and keys in the same block, is this possible ? Thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
And the underlying question might be : is it even possible to encrypt different fields from a YAML file using different KMS keys? |
Beta Was this translation helpful? Give feedback.
It is not. Also the fields aren't encrypted by a KMS key, but by a per-file randomly generated key. That key is in turn encrypted by the KMS keys and stored in that file. The same per-file key is used for all fields in that file.