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

Request Transformer Advanced 플러그인 구성 참조

원문 보기 위키 갱신

Request Transformer Advanced 플러그인 구성 참조 (Request Transformer Advanced Plugin Configuration Reference)

이 문서는 Request Transformer Advanced 플러그인의 구성 옵션을 전부 정리해 놓은 참조 자료예요. 요청의 본문, 헤더, 쿼리스트링에 값을 추가(add)하거나 덧붙이고(append), 허용 목록(allow)을 지정하는 파라미터들이 JSON 스키마 형태로 담겨 있어요. 필드별 기본값과 데이터 타입까지 확인할 수 있으니 플러그인 설정 시 필요한 값을 찾는 용도로 활용해 보세요. 여러 필드가 볼트에 저장된 시크릿을 참조할 수 있는 referenceable 필드라는 점도 눈여겨보면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "add": {
          "properties": {
            "body": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "headers": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "json_types": {
              "default": [],
              "items": {
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "querystring": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "allow": {
          "properties": {
            "body": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "append": {
          "properties": {
            "body": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "headers": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "json_types": {
              "default": [],
              "items": {
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "querystring": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "dots_in_keys": {
          "default": true,
          "description": "Specify whether dots (for example, `customers.info.phone`) should be treated as part of a property name or used to descend into nested JSON objects.",
          "type": "boolean"
        },
        "http_method": {
          "description": "A string representing an HTTP method, such as GET, POST, PUT, or DELETE. The string must contain only uppercase letters.",
          "type": "string"
        },
        "max_request_body_size": {
          "default": -1,
          "description": "The maximum request body size, in bytes, that the plugin reads to apply body transformations. Bodies larger than `client_body_buffer_size` are buffered by Nginx to a temporary file. `-1` (the default) disables reading such buffered bodies, so their body transformations are skipped to avoid the extra disk I/O. `0` means unlimited (still bounded by Nginx's `client_max_body_size`), and any positive value caps how much of the buffered body is read from the temporary file.",
          "type": "integer"
        },
        "remove": {
          "properties": {
            "body": {
              "default": [],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "headers": {
              "default": [],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "querystring": {
              "default": [],
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "rename": {
          "properties": {
            "body": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "headers": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "querystring": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            }
          },
          "type": "object"
        },
        "replace": {
          "properties": {
            "body": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "headers": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "json_types": {
              "default": [],
              "items": {
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ],
                "type": "string"
              },
              "type": "array"
            },
            "querystring": {
              "default": [],
              "items": {
                "description": "\nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault).",
                "type": "string",
                "x-referenceable": true
              },
              "type": "array"
            },
            "uri": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "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"
    },
    "consumer_group": {
      "additionalProperties": false,
      "description": "If set, the plugin will activate only for requests where the specified consumer group has been authenticated. (Note that some plugins can not be restricted to consumers groups this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer Groups",
      "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)

  • Request Transformer 플러그인의 기본 개념과 사용법을 정리한 문서예요 — Request Transformer plugin
  • Kong Gateway에서 클라이언트 요청을 실제로 변환하는 과정을 단계별로 따라 해 볼 수 있어요 — Transform a client request in Kong Gateway
  • 요청 변환을 AI로 수행하는 유사 플러그인인 AI Request Transformer도 함께 살펴봐요 — AI Request Transformer
  • referenceable 필드에서 볼트에 저장한 시크릿을 참조하는 방법을 설명해요 — referenceable