Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3862

Configure swatch-common-security in swatch-metrics-hbi

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • swatch-metrics-hbi
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • True
    • subs-swatch-1

      The swatch-metrics-hbi service should use the swatch-common-security library/module to secure its API endpoints. Configure the service to add the schemes required by the service and apply security to POST /api/swatch-metrics-hbi/internal/outbox to ensure that it is working correctly.

      Security schemes

      The following security schemes should be added to the openapi.yaml

      service:

      • type: apiKey
      • header: x-rh-swatch-psk

      test

      • type: apiKey
      • header: x-rh-swatch-psk

      Acceptance Criteria

      • The swatch-metrics-hbi service is configured to use the new library/module.
      • Security schemes are defined in the API schema file and ready to use by the service's other endpoints.
      • The test scheme is set on the POST /api/swatch-metrics-hbi/internal/outbox endpoint and adequate tests exist.

              rhn-engineering-wpoteat William Poteat
              mstead@redhat.com Michael Stead
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: