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

HistoryServer should set headers Content-Security-Policy (CSP)

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.5.0
    • None
    • Web UI
    • None

    Description

      Hi,

      I provide spark history server UI to different users within my company.

      The security team scan all URLs with this script : https://github.com/santoru/shcheck
      On the SHS site everything went smoothly except for Content-Security-Policy (CSP).
      I tried with the policy: "default-src self" but it is not sufficient to get things working.
      There is a massive amount of nonce/sha-256 to be included to make things work.

      Even if I may find some dirty hack on nginx side (there is a reverse proxy) to avoid using unsafe-inline, it will not be Ok since it will report the security issue from spark to nginx which is worse.

      It may be more appropriate to tweak jetty configuration to have everything set in the origin server.

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            julienlau Laurenceau Julien

            Dates

              Created:
              Updated:

              Slack

                Issue deployment