Open EtienneBruines opened 3 days ago
Heya, thanks for the suggestion!
I agree this would be a nifty enhancement for dispatch jobs, especially for the webhook use case you describe.
but we'll need to bounce it around internally a bit. I'll get it in the queue for consideration. Thanks again!
Proposal
The ability to send the job payload as the http request body, instead of having to base64-encode it.
That would allow support for something like this:
Use-cases
Some external systems support 'webhooks', but don't allow for much control over the contents of the request body. These bodies usually contain information on the event or the changed entity, but do not allow us to specify "put that information in a
Payload
object and base64-encode everything". This makes it difficult to use Nomad's dispatch-job as a webhook handler.It would be nice to be able to tell Nomad (via a query parameter or a HTTP header) to interpret the entire HTTP request body as the raw payload.
Attempted Solutions