automatron icon indicating copy to clipboard operation
automatron copied to clipboard

Feature: Webhook based Runbooks

Open madflojo opened this issue 9 years ago • 1 comments

A requested feature is the ability to send a webhook to a URL that will trigger a define action. This is similar to functionality available to Runbook.io but I'd like to make this super flexible.

Some thoughts:

  • Should this be it's own Runbook section to make it easier to identify or just add a field to identify typical runbooks vs. webhook based runbooks
  • Ideally as part of a runbook you specify the URI i.e. path: /nodes/restart_apache
  • Should have the ability to require an Authorization Bearer token header Authorization: Bearer asdklfjalsj
    • Should have master token set in config, allow users to overwrite with a value in runbook or set to None to disable
  • Give the user the ability to search a payload for a string in the case of POST messages
    • Would be cool to allow them to populate facts with a REGEX search i.e. facts['postdata']['group1']
  • The web listener should be it's own standalone process similar to monitoring.py

madflojo avatar Oct 24 '16 15:10 madflojo

After typing it out, a field to identify runbook type is probably more future proof in case of other additional runbook types in the future.

madflojo avatar Oct 24 '16 15:10 madflojo