How does SealedSecret know which encryption cert to use for unsealing a secret? #1191
-
How does it know? Or does it just brute force and cycle through all the encryption certs until one successfully unseals it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
At the moment, all possible private keys are being tried and there is a ToDo item to change that
sealed-secrets/pkg/crypto/crypto.go Line 76 in bb942f1 That And the sealed-secrets/pkg/controller/controller.go Line 499 in bb942f1 |
Beta Was this translation helpful? Give feedback.
At the moment, all possible private keys are being tried and there is a ToDo item to change that
sealed-secrets/pkg/crypto/crypto.go
Line 76 in bb942f1
That
HybridDecrypt
function is called by theUnseal
fct:sealed-secrets/pkg/apis/sealedsecrets/v1alpha1/sealedsecret_expansion.go
Line 278 in bb942f1
And the
Unseal
function is called after looping …