Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5613

auto_encryption_options not applied when mongoid.yml configured with a uri (vs. array of hosts)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      When configuring a Rails application to use Mongoid FLE, the following configuration will not work:

      Unable to find source-code formatter for language: yml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      development:
        # Configure available database clients. (required)
        clients:
          # Defines the default client. (required)
          default:      
            uri: mongodb://localhost:27017/test
            options:
              auto_encryption_options: # This key enables automatic encryption
      

      whereas the following will work:

      Unable to find source-code formatter for language: yml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      development:
        # Configure available database clients. (required)
        clients:
          # Defines the default client. (required)
          default:
            hosts:
              - localhost:27017
            database: test
            options:
              auto_encryption_options: # This key enables automatic encryption
      

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: