Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-31585

Adding x-rh-identity into platform.upload.announce

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • Ingress
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No

      Automation Analytics project needs x-rh-identity (we specifically need service_account_client_id field) in the platform.upload.announce topic.

       

      The current body of platform.upload.announce topic looks like

      {'account': '',
      'category': 'aap',
      'content_type': 'application/vnd.redhat.aap-billing-controller.aap_billing_controller_payload+tgz',
      'metadata': {'reporter': '', 'stale_timestamp': '0001-01-01T00:00:00Z'},
      'org_id': '17702902',
      'principal': '17702902',
      'request_id': '5192b41875a04fd6a9b6a24dd89908c9',
      'service': 'aap-billing-controller',
      'size': 1301,
      'timestamp': '2024-03-20T12:15:00.188214385Z',
      'url': 'https://s3.us-east-1.amazonaws.com/upload-stage/5192b41875a04fd6a9b6a24dd89908c9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVDTUBFCYR74UT6EO%2F20240320%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240320T121500Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=773b690e784964823c491a919885e89170e07d9f4238a6668ea567cbc7784a6d'} 

       

      x-rh-identity is currently only in validation topic https://github.com/RedHatInsights/insights-ingress-go/blob/5c838f9cba64991c81e0abcb7da6c13113809f1a/internal/upload/upload.go#L226

       

       

            Unassigned Unassigned
            rhn-engineering-lsmola Ladislav Smola
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: