Open heydonovan opened 3 months ago
Hey, can you test something for me please? Are you able to build your own sops version? If so, could you look at the following comment and change https://github.com/getsops/sops/blob/8b5cafe7b261729a5495d1b7988c1ec7d6b538c3/config/config.go#L193 to
// keytype + toMap make a unique combination per key type
valueMap := v.ToMap()
delete(valueMap, "created_at")
delete(valueMap, "enc")
key := fmt.Sprintf("%T/%v", v, valueMap)
and report if this fixes your problem?
It could be that the "make keys unique" is causing your issue. (I know this is not the clean solution we would wish for in the long term, I just want to know if this is the problem)
Since the encrypted file contains two keys, and the 3.9.0 error message also mentions two keys, I don't think this is related to making keys unique since both keys seem to be tried.
My guess is that this is related to some updated dependency. I don't use any KMS (and have access to none) so I have no way to test this myself...
hi got same error(
I've upgraded our sops binary from v3.8.1 to v3.9.0. Without changing any encrypted file, our pipeline jobs started failing due to this new error. I've put together a few steps to replicate the issue. Let me know if you need any more info!