Files
threshold/internal/servers
Jeff Mitchell c3684d20db Fix WithKeyId option (#970)
Currently this would validate that a KeyId was in the returned wrapper
but then return the base wrapper; and if it required a database lookup
it wouldn't validate it anyways.

All uses of this were for decryption so it didn't actually affect
anything to this point (you'd error later instead of sooner) but for any
case where we need to encrypt against a specific version or derive a key
against a specific version this would be broken, in a way that could
lead you to use the wrong key version.

This also properly sends the Key ID around sessions. This worked
currently for the same reason as above but would have broken for any
session in flight once a key was rotated.
2021-03-03 11:23:00 -05:00
..
2021-03-03 11:23:00 -05:00
2021-01-21 16:27:20 -05:00
2021-01-21 16:27:20 -05:00
2021-01-21 16:27:20 -05:00
2021-01-21 16:27:20 -05:00
2021-01-21 16:27:20 -05:00
2021-01-21 16:27:20 -05:00