Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-30127

Add Hits Api end points to accept the rules and resolutions from On Prem app

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • RH Cloud
    • None
    • Sprint 143, Sprint 144, Sprint 145
    • None

      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:[

      { "rule_id","description", "needs_reboot","resolution_risk", "resolution_type" }

      ],

      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

              rhn-engineering-paji Partha Aji
              rhn-engineering-paji Partha Aji
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: