getsops/sops

Encrypt parte of file using different keys

emper0r-cu opened this issue · 0 comments

Hi if possible use sops to encrypt for example in this way in the same file.sops.yml

Using aws KMS key 1

Key1: value1
Key2: value2

And with aws KMS key 2 in the same file

Key3: value3
Key3: value4

So when I open file with aws key 1

I can edit or see key1 and key2 with that key but key3 and key4 can't and show it with encrypted strings.

And if I open using aws key 2 i can see the key3 and key4 but the key1 and 2 show encrypted strings

The idea Is use the same file by 2 different people using their own key but can't see the secret from the other person

Is possible do that? I read the context but I guess is using different files in this case is the same.

If is possible how can I configure it sops?

Thanks