-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
3
-
None
-
PHP Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Summary
Hide the reserved _safeContent_ field from Queryable Encryption query results, at the hydration level, instead of on the model.
Details
- The server writes _safeContent_ into encrypted documents. It is an implementation detail and should not appear in application results.
- Filter _safeContent_ when hydrating query results, covering both Eloquent models and raw reads (query builder, DB collection reads, aggregation).
- The write guard stays: the field cannot be set or unset on a model.
- This was removed from the Queryable Encryption PR to keep the model layer untouched; this ticket adds the filtering at the results level.
Related
- depends on
-
PHPLARA-279 Hide the reserved __safeContent__ field from query results
-
- Closed
-
- related to
-
PHPLARA-50 Queryable Encryption integration in Laravel-MongoDB
-
- Released
-