Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-403

Swagger specs hosted on 3scale are exposed without protection

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.0 GA, SaaS
    • System

      Issue

      Swagger specs are exposed at the relative path on the dev portal /swagger/spec/<system_name>.json and this is not protected. If the spec should only be accessible to internal users for example then this presents a security issue as any user including non-logged in users can access the JSON spec.

      Current workaround

      Host the specs that should be protected directly on the CMS as a JSON file under the appropriate section protected by conditional logic checking for logged in state and group membership.

      Pros & Cons

      • the specs cannot be imported or updated via API
      • the private & internal documentation will not be exposed on the public URL mentioned in the issue.

      Suggested solution

      The spec can have predefined permission levels configured from the UI such as;

      • visible to logged in users only
      • groups configured can be given access to the relevant specs

      Pros & Cons

      • Could be complex to implement
      • Greater granularity and control over internal and security-sensitive API specs
      • Would reduce the amount of custom liquid logic required to control visibility to certain ActiveDocs

              Unassigned Unassigned
              rhn-support-keprice Kevin Price
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: