GithubHelp home page GithubHelp logo

allebb / hooker Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 153 KB

Hooker is a lightweight PHP web application that can be used to trigger remote workflows (such as automated deployments) on your Linux or UNIX based servers.

License: GNU General Public License v2.0

PHP 87.22% Shell 12.78%
cicd deployment nginx php trigger-deployments virtualhost webhooks

hooker's People

Contributors

allebb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hooker's Issues

Add ability to only allow hook execution for a configurable list of IP addresses.

For added security the global and per-site configurations should have the ability to set an array of allowed IP addresses that are allowed to 'hit' the hook.

In addition to that I will hard code and maintain a list of GitHub and BitBucket IP addresses for ease of use as per their documentation.

The ability to add their own IP addresses will enable users using on-prem Git hosting, CI services or other less-known services to configure additional security.

Send a suitable HTTP status code on Hook failure.

At present the script is kept very simple but as some Git hosting provides provide more information on their Hook configuration (like ability to highlight issues, trigger alerts etc) I'll ensure that in the event of an error a suitable HTTP status is sent with the response instead of the default behavior or sending a 200 each time.

Enable pre-configured GitHub "push" event checking.

GitHub uses a single web hook for various tasks, this feature will enable that as a configuration item the user can specify that the repo is a "github" repo of which will then add additional checking to ensure that the hook only executes on a "push" or "release" event in order to limit excessive load on the users web/application server(s) etc.

requestHeader() fails to detect HTTP request headers

Currently the requestHeader() function appears to fail detecting HTTP request headers which is causing hooker.php to silently die in a production environment.

Need to debug and check this function and ensure that it is not a PHP-FPM specific issue causing this.

Currently the workaround for users is to simple set the 'is_{service}' configuration parameter to 'false' to bypass the hook event header checking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.