본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Imperva API Security 플러그인 구성 참조

원문 보기 위키 갱신

Imperva API Security 플러그인 구성 참조 (Imperva API Security Plugin Configuration Reference)

이 문서는 Kong의 Imperva API Security 플러그인에서 설정할 수 있는 구성 파라미터를 JSON 스키마 형태로 정리한 참조 자료예요. destination_addr처럼 필수인 항목과 destination_port, connection_type, ssl 같은 선택 항목의 타입, 기본값, 허용값을 필드별로 확인할 수 있어요. 요청·응답 본문 전송 여부나 재시도 횟수, 큐 크기 같은 세부 옵션도 함께 다루기 때문에 플러그인을 실제로 구성하거나 튜닝할 때 참고하기 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "destination_addr": {
          "type": "string",
          "required": true,
          "encrypted": true,
          "description": "Destination address of the API security receiver. \nThis can be an IP address or domain name, for example `logconsumer.myapisec.mydomain`."
        },
        "destination_port": {
          "type": "number",
          "default": 8080,
          "one_of": [
            8080,
            80,
            8443,
            443
          ],
          "description": "Destination port of the API security receiver."
        },
        "connection_type": {
          "type": "string",
          "default": "tcp",
          "one_of": [
            "tcp",
            "http"
          ],
          "description": "The connection protocol to use."
        },
        "method": {
          "type": "string",
          "default": "POST",
          "one_of": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "description": "The request method to use."
        },
        "max_body_size": {
          "type": "number",
          "default": 1048576,
          "description": "Maximum payload body size to capture, in bytes."
        },
        "ssl": {
          "type": "boolean",
          "default": false,
          "description": "Whether or not to use an TLS/SSL tunnel to send API traffic capture to the destination."
        },
        "request_body_flag": {
          "type": "boolean",
          "default": true,
          "description": "Determines whether to send the request body payload to the destination. \n\nSet to `false` to disable. Use **only** for debugging purposes. \nAPI security will not fully function without inspection of the request body payload."
        },
        "response_body_flag": {
          "type": "boolean",
          "default": true,
          "description": "Determines whether to send the response body payload to the destination. \n\nSet to `false` to disable. Use **only** for debugging purposes. \nAPI security will not fully function without inspection of the response body payload."
        },
        "retry_count": {
          "type": "number",
          "default": 0,
          "description": "Number of retries if sending the API call capture fails. No retry by default."
        },
        "queue_size": {
          "type": "number",
          "default": 1,
          "description": "Number of API logs to keep in the queue for retries. Default is 1, meaning no retries. \nSet to a number larger than 1 to enable retries."
        },
        "flush_timeout": {
          "type": "number",
          "default": 2,
          "description": "Number of seconds to wait before flushing the queue. "
        },
        "timeout": {
          "type": "number",
          "default": 6000000,
          "description": "Number of milliseconds to keep a single connection open to the destination. "
        }
      },
      "required": [
        "destination_addr"
      ]
    },
    "protocols": {
      "default": [
        "http",
        "https"
      ],
      "description": "A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support tcp and tls.",
      "items": {
        "enum": [
          "http",
          "https"
        ],
        "required": [],
        "type": "string"
      },
      "type": "array"
    },
    "route": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [],
      "type": "object"
    },
    "service": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "required": [],
      "type": "object"
    }
  },
  "required": []
}

관련 리소스

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.