FLE: Optionally read @Encrypted POJO properties from unencrypted JSON fields.

Description

Let the @Encrypted annotation read from unencrypted fields, so users can add encryption incrementally. (Previously, the read would fail).

Make it optional because enabling this feature would let an adversary to forge a field value simply by replacing an encrypted value with an unencrypted one.

Suggested release note text:

The `@Encrypted` annotation can now be used to migrate an existing field from unencrypted to encrypted. If you annotate a field with

@Encrypted(migration = Encrypted.Migration.FROM_UNENCRYPTED)

then either encrypted or unencrypted values will be accepted during deserialization.

Environment

None

Gerrit Reviews

None

Release Notes Description

None

Activity

Show:
Flagged
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created July 28, 2021 at 12:20 AM
Updated August 4, 2021 at 4:22 PM
Resolved August 2, 2021 at 3:20 PM
Instabug