CSRF protection breaks POST to notifyCommit URL (GET is OK)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      CSRF breaks general commit hook actions, not just for Plugins. Since Kohsuke added the http://jenkins/git/notifyCommit?url= action to trigger a polling event, this kind of action is used generically outside of Github Plugin, e.g. projects using something other than Github. In my case, Gitlab, which has push hooks to generically trigger remote URLs.

      CSRF should have an exclusion for /git/notifyCommit

      See http://kohsuke.org/2011/12/01/polling-must-die-triggering-jenkins-builds-from-a-git-hook/
      See JENKINS-20140
      See JENKINS-10263

            Assignee:
            Unassigned
            Reporter:
            jieryn
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: