Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-42922

Use SecureRandom, instead of Random in security sensitive contexts

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.3, 3.3.2, 3.4.0, 3.5.0
    • 3.3.3, 3.4.1, 3.5.0
    • SQL
    • None

    Description

      Most uses of Random in spark are either in test cases or where we need a pseudo random number which is repeatable.
      The following are usages where moving from Random to SecureRandom would be useful

      a) HttpAuthUtils.createCookieToken
      b) ThriftHttpServlet.RAN

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            mridulm80 Mridul Muralidharan
            mridulm80 Mridul Muralidharan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment