Project

General

Profile

Feature #31301

Arbitrary headers with ERB rendering

Added by Lukas Zapletal about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

For better Shellhooks plugin integration, we should allow passing arguments into scripts via X-Shellhook-Arg-N named HTTP headers. To allow that, we need to extend webhook with headers, the reasonable solution is to have one string/text SQL column with headers stored in JSON, which can be nicely presented to the user in the UI and CLI.

ERB will be enabled in the headers themselves as well as in URL for easier integration with backend services directly. This patch only prepares the field for #31299 if we choose to implement it.


Related issues

Related to Foreman - Tracker #30290: Foreman webhooks integration storyNew

Associated revisions

Revision 84683307 (diff)
Added by Lukáš Zapletal 12 months ago

Fixes #31301 - arbitrary HTTP headers (#15)

  • Fixes #31301 - arbitrary HTTP headers
  • Refs #31301 - arbitrary HTTP headers

History

#1 Updated by Lukas Zapletal about 1 year ago

#2 Updated by Lukas Zapletal 12 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_webhooks/pull/15 added

#3 Updated by Anonymous 12 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF