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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Needs Triage
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: