ExportXMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • 5.12.0
    • Affects Version/s: None
    • None
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      The _safeContent_ field cannot be read or written from the model classes. 

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      3. Which versions of the driver/connector does this apply to?

      Laravel-MongoDB 5.12.0

      Show
      1. What would you like to communicate to the user about this feature? The _ safeContent _ field cannot be read or written from the model classes.  2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to? Laravel-MongoDB 5.12.0
    • 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

              Assignee:
              Jérôme Tamarelle
              Reporter:
              Jérôme Tamarelle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: