When the insights client runs on a host,
- It forwards a payload from the host to satellite. The
- Satellite then forwards that to the on prem insights advisor
- The on prem insights advisor then calculates the needed remediation and rules posts it back to satellite for that host name
Authentication is yet to be determined.
Suggested API end point
POST /insights_cloud/hits/
Parameters for the endpoint to accept
host_name,
payload: {
resolutions:[
],
hits:[
{ "title", "solution_url","total_risk","likelihood", "publish_date", "rule_id" }],
rules: [
{ "rule_id", "description", "category_name", "impact_name", "summary", "generic", "reason", "total_risk", "reboot_required", "more_info", "rating" }],
details: “json string”
}
The post action should follow the logic listed here
https://gitlab.cee.redhat.com/insights-platform/insights-satellite-engine/-/blob/main/insights_engine/db.py?ref_type=heads#L40