Mongoid FLE requires ffi to be available

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The rake task used to create a DEK will fail if ffi is not available within the bundle.

      % rake db:mongoid:encryption:create_data_key                                                                                                                                                  
      rake aborted!
      LoadError: cannot load such file -- ffi
      /Users/alex/.rvm/gems/ruby-3.1.2/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
      /Users/alex/.rvm/gems/ruby-3.1.2/gems/bootsnap-1.16.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:17:in `require'
      /Users/alex/.rvm/gems/ruby-3.1.2/gems/zeitwerk-2.6.8/lib/zeitwerk/kernel.rb:38:in `require'
      /Users/alex/.rvm/gems/ruby-3.1.2/bundler/gems/mongo-ruby-driver-137e302a5361/lib/mongo/crypt/handle.rb:18:in `<main>'
      

            Assignee:
            Dmitry Rybakov
            Reporter:
            Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: