fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
3.12k stars 431 forks source link

`curl` table should include ability to add request body. #8571

Open zhumo opened 2 years ago

zhumo commented 2 years ago

Problem

The curl table in osquery does not support request body. This makes a lot of POST and PUT/PATCH requests not doable. The curl table should include that.

Business Case

If we have a curl table, then being able to use a request body is expected. You can even set the method already. For a user who needs the curl table, but then gets blocked here, this is a very disappointing experience and will reduce confidence in osquery.

Analytics

NA

Requirements

  1. I am able to set a request_body string. For the most part, I will likely stringify a json. There is no need to support/accept formatted json. It can just be an ugly string, which the user must input.

Design

UI

TODO

API

TODO

CLI

TODO

Related

Child issues

Interface team

Platform team

Agent team

Documentation

zhumo commented 1 year ago

de-prioritized because the curl table is sus