ExportXMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 9.1.2, 9.0.13
    • Affects Version/s: 9.1.1, 9.0.12
    • Component/s: None
    • None
    • None
    • Fully Compatible
    • Ruby Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      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?

      Show
      1. What would you like to communicate to the user about this feature? 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?
    • None
    • None
    • None
    • None
    • None
    • None

      The guard that checks if a model has an encryption schema only looks to see if the client's schema map covers the model's namespace. It never checks bypass_auto_encryption.

      Mongoid fills in the schema map either way, so a client configured with bypass_auto_encryption: true passes the guard, and then the driver quietly skips encryption, so fields marked encrypt: true get written in plaintext.

      The client has to deliberately configure this, and the driver treats bypass plus manual encryption as a legitimate setup. Still, it feels a bit wonky; does this scenario deserve a warning? Should we document it, at the very least?

            Assignee:
            Jamis Buck
            Reporter:
            Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: