Fix Inventory Core
Fix Inventory Core (fixcore
) is the graph persistence and search backend of Fix Inventory. It maintains the graph of resources and provides APIs to update and access them.
Within Fix Inventory Core, there are workflows consisting of steps that result in actions like collect
, cleanup
or generate_metrics
. These actions are received by components like Fix Inventory Worker and Fix Inventory Metrics.
somecr.io/someengineering/fixinventorycore:4.1.0
API​
The Fix Inventory Core API is exposed at https://<fixinventory-address>:8900/api-doc
. You can also access it at https://inventory.fix.security/docs/reference/api
.
Fix Inventory Core has two API endpoints to connect to for CLI purposes:
The /cli/evaluate
functinality is used internally on every /cli/execute
before the command executes.
Below is a simulation of sending a Fix Inventory Shell search to the API.
We will evaluate the search before executing it for demonstration. We also introduce a search with a typo to show the response if not successful.
Evaluate​
> echo 'search is("resource") limit 1' | http :8900/cli/evaluate
​HTTP/1.1 200 OK
​Content-Length: 47
​Content-Type: application/json; charset=utf-8
​Date: Wed, 06 Oct 2021 15:13:08 GMT
​Server: Python/3.9 aiohttp/3.7.4.post0
​[
​ {
​ "execute_query": "is(\"resource\") limit 1"