FAQ

  • GitHub GitHub Repo stars
  • Discord Discord Server
  • ✨ New! Try the OpenAPI Doctor ✨ The OpenAPI Doctor

    owasp-security-hosts-https-oas2


    Formats: Severity:

    This rule was removed in v0.7.0 of vacuum.

    All server interactions MUST use the https protocol, so the only OpenAPI scheme being used should be https.

    JSONPath used

    $.schemes

    Bad example

    swagger: "2.0"
    info:
      version: "1.0"
    definitions:
      Nuggets:
        type: integer
    paths:
      "/"
    host:
      - pb33f.io
    schemes:
      - http
    

    Good Example

    swagger: "2.0"
    info:
      version: "1.0"
    definitions:
      Nuggets:
        type: integer
    paths:
      "/"
    host:
      - pb33f.io
    schemes:
      - https
    

    How do I fix this violation?

    Make sure all servers use the https protocol.

    In this day and age, there should never be a reason why you are not using https for all your server interactions, unless this is an internal API that is not exposed to the internet. If that’s the case, then just disable this rule.