Make /api/push-github public for private Hydra instances. This makes it possible to use webhooks to trigger evaluations for private Hydra instances.

[?]
Jun 14, 2018, 3:22 PM
3RMTP4QNRY52U6IUMGHPA7PYDYFASPMWA3BYUH7ZT43KXMXKFRMQC

Dependencies

  • [2] 2P35LNRY Add XSRF protection for POST requests
  • [3] HPGWVEFK Add 'readonly_ips' option, to allow readonly access for certain IPs when 'private' option is enabled.
  • [4] V7UDCU3W Fix a couple of encoding issues
  • [5] E6S4CVUT Handle Referer not having a trailing slash
  • [6] LZVO64YG Merge in the first bits of the API work
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in src/lib/Hydra/Controller/Root.pm at line 29
    [3.273]
    [3.273]
    $c->request->path eq "api/push-github" ||
  • replacement in src/lib/Hydra/Controller/Root.pm at line 73
    [2.70][2.70:107]()
    if ($c->req->method eq "POST") {
    [2.70]
    [2.107]
    if ($c->req->method eq "POST" && $c->req->path ne "api/push-github") {