Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-988

java-shell package should use proper crypto.randomBytes() polyfill

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0.2
    • Affects Version/s: None
    • Component/s: Java Shell, Tech debt
    • None
    • Not Needed

      The JS BSON package wants a cryptographically secure randomness source. We use Math.random() here, but that’s not a proper long-term solution:

       

      https://github.com/mongodb-js/mongosh/blob/9e5c1c2184554b6fe2eab8662669a52da219ab88/packages/java-shell/src/main/js/all.js#L1-L3

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: