E2E integration tests for converting encrypted saved objects #106567
Labels
bug
Fixes for quality problems that affect the customer experience
Team:Security
Team focused on: Auth, Users, Roles, Spaces, Audit Logging, and more!
Blocks: #100067
In doing some local testing for the linked issue above, there is an indication that we are not handling AAD correctly for converted saved objects. From @chrisronline :
the scenario is:
server log [12:06:49.294] [error][encryptedSavedObjects][plugins] Failed to decrypt "apiKey" attribute: Unsupported state or unable to authenticate data
The ESO service has some special handling in place for converted objects, but at first glance this may not be correct. We just attempt to decrypt the object with/without the
namespace
in its descriptor (which feeds into its additionally-authenticated data, or AAD). However it looks like we need to attempt to decrypt the object with its old ID (originId
).We need to create E2E integration tests for an encrypted saved object that is converted, and probably update our algorithm in the ESO service to correctly handle these cases.
The text was updated successfully, but these errors were encountered: