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

포워드 프록시 고급 플러그인 구성 참조

원문 보기 위키 갱신

포워드 프록시 고급 플러그인 구성 참조 (Forward Proxy Advanced Plugin Configuration Reference)

이 문서는 Kong Gateway의 포워드 프록시 고급 플러그인에서 설정할 수 있는 구성 옵션을 스키마 형태로 정리한 참조 자료예요. 프록시 호스트와 포트, 기본 인증용 사용자 이름과 비밀번호, 업스트림 TLS 인증서 검증에 쓰이는 CA 인증서 목록 같은 각 필드의 의미와 기본값을 한눈에 확인할 수 있어요. 어떤 필드가 볼트에서 참조 가능한지, 암호화되는지 같은 특성 표시도 함께 제공해요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "auth_password": {
          "description": "The password to authenticate with, if the forward proxy is protected\nby basic authentication. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
          "type": "string",
          "x-encrypted": true,
          "x-referenceable": true
        },
        "auth_username": {
          "description": "The username to authenticate with, if the forward proxy is protected\nby basic authentication. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
          "type": "string",
          "x-referenceable": true
        },
        "ca_certificates": {
          "description": "Array of CA Certificate object UUIDs used to build the trust store for verifying the upstream server's TLS certificate. When https_verify is enabled and this array is non-empty, those CAs override the global lua_ssl_trusted_certificate for requests proxied by this plugin. When unset or empty, verification falls back to the global lua_ssl_trusted_certificate. When https_verify is disabled, the value is retained in the configuration but ignored at request time.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "http_proxy_host": {
          "description": "A string representing a host name, such as example.com.",
          "type": "string"
        },
        "http_proxy_port": {
          "description": "An integer representing a port number between 0 and 65535, inclusive.",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "https_proxy_host": {
          "description": "A string representing a host name, such as example.com.",
          "type": "string"
        },
        "https_proxy_port": {
          "description": "An integer representing a port number between 0 and 65535, inclusive.",
          "maximum": 65535,
          "minimum": 0,
          "type": "integer"
        },
        "https_verify": {
          "default": true,
          "description": "Whether the server certificate will be verified. When ca_certificates is configured, those certificates are used for verification. Otherwise, verification uses the CA certificates specified in lua_ssl_trusted_certificate.",
          "type": "boolean"
        },
        "proxy_scheme": {
          "default": "http",
          "description": "The proxy scheme to use when connecting. Only `http` is supported.",
          "enum": [
            "http"
          ],
          "type": "string"
        },
        "x_headers": {
          "default": "append",
          "description": "Determines how to handle headers when forwarding the request.",
          "enum": [
            "append",
            "delete",
            "transparent"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "consumer": {
      "additionalProperties": false,
      "description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "expressions": {
      "additionalProperties": true,
      "type": "object"
    },
    "protocols": {
      "default": [
        "grpc",
        "grpcs",
        "http",
        "https"
      ],
      "description": "A set of strings representing HTTP protocols.",
      "items": {
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https"
        ],
        "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"
        }
      },
      "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"
        }
      },
      "type": "object"
    }
  }
}

관련 리소스

더 알아보기 (Learn more)

  • 인증 비밀번호 같은 필드에서 볼트에 저장된 시크릿을 참조하는 방법을 설명해요 — referenceable
  • 암호화 표시된 필드가 키링을 통해 어떻게 보호되는지 이해할 수 있어요 — encrypted