OPA 정책 구성 레퍼런스
OPA 정책 구성 레퍼런스 (OPA Policy Configuration Reference)
이 문서는 Kong Gateway OPA 플러그인에서 사용하는 구성 파라미터를 정리한 레퍼런스예요. opa_host, opa_port, opa_protocol 같은 OPA 서버 연결 설정과 ssl_verify 인증서 검증 옵션을 어떻게 구성하는지 확인할 수 있어요. 또한 라우트, 컨슈머, 서비스, 요청 본문 같은 정보를 OPA 입력에 포함할지 제어하는 include_* 옵션들도 함께 설명해요
출처: 문서
본문
{
"properties": {
"config": {
"type": "object",
"properties": {
"opa_path": {
"type": "string",
"description": "A string representing a URL path, such as /path/to/resource. Must start with a forward slash (/) and must not contain empty segments (i.e., two consecutive forward slashes)."
},
"include_route_in_opa_input": {
"type": "boolean",
"description": "If set to true, the Kong Gateway Route object in use for the current request is included as input to OPA.",
"default": false
},
"include_consumer_in_opa_input": {
"type": "boolean",
"description": "If set to true, the Kong Gateway Consumer object in use for the current request (if any) is included as input to OPA.",
"default": false
},
"include_body_in_opa_input": {
"type": "boolean",
"default": false
},
"include_uri_captures_in_opa_input": {
"type": "boolean",
"description": "If set to true, the regex capture groups captured on the Kong Gateway Route's path field in the current request (if any) are included as input to OPA.",
"default": false
},
"opa_protocol": {
"type": "string",
"enum": [
"http",
"https"
],
"description": "The protocol to use when talking to Open Policy Agent (OPA) server. Allowed protocols are `http` and `https`.",
"default": "http"
},
"include_service_in_opa_input": {
"type": "boolean",
"description": "If set to true, the Kong Gateway Service object in use for the current request is included as input to OPA.",
"default": false
},
"include_parsed_json_body_in_opa_input": {
"type": "boolean",
"description": "If set to true and the `Content-Type` header of the current request is `application/json`, the request body will be JSON decoded and the decoded struct is included as input to OPA.",
"default": false
},
"ssl_verify": {
"type": "boolean",
"description": "If set to true, the OPA certificate will be verified according to the CA certificates specified in lua_ssl_trusted_certificate.",
"default": true
},
"opa_host": {
"type": "string",
"description": "A string representing a host name, such as example.com.",
"default": "localhost"
},
"opa_port": {
"type": "integer",
"maximum": 65535,
"minimum": 0,
"description": "An integer representing a port number between 0 and 65535, inclusive.",
"default": 8181
}
},
"required": [
"opa_path"
]
}
}
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.