We only encrypt fields if they don't match the placeholder value

Created on 15 November 2020, about 4 years ago
Updated 4 October 2024, 2 months ago

Problem/Motivation

\Drupal\field_encrypt\FieldEncryptProcessEntities::getUnencryptedPlaceholderValue() returns 0 for integer fields. But the fact an entity has a 0 value could be considered useful information that should be encrypted.

Proposed resolution

Instead of using values set things to NULL if the field is nullable. Only use the placeholder when necessary.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024