You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When encryptedPayload.c is missing (i.e., not in the EQL payload data structure), the decrypt function currently panics. We want to handle this more gracefully by simply returning the original value and issuing a debug-level log message indicating that no ciphertext was found and the function will skip decryption. This ensures the function doesn’t break application flow due to absent ciphertext while still providing visibility through logging.
Proposed Change
Check if encryptedPayload.c is present.
If missing, return the original (unencrypted) value.
Log a debug message stating that the payload did not include a ciphertext, and decryption was skipped.
Maintain existing decryption steps if encryptedPayload.c is present.
The text was updated successfully, but these errors were encountered:
Issue Description
When encryptedPayload.c is missing (i.e., not in the EQL payload data structure), the decrypt function currently panics. We want to handle this more gracefully by simply returning the original value and issuing a debug-level log message indicating that no ciphertext was found and the function will skip decryption. This ensures the function doesn’t break application flow due to absent ciphertext while still providing visibility through logging.
Proposed Change
The text was updated successfully, but these errors were encountered: