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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Blocker - P1
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Alex Bevilacqua
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: