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

Standard Webhooks 플러그인 구성 참조

원문 보기 위키 갱신

Standard Webhooks 플러그인 구성 참조 (Standard Webhooks Plugin Configuration Reference)

이 문서는 Standard Webhooks 플러그인의 구성 속성을 상세히 설명해요. secret_v1과 tolerance_second 같은 주요 설정을 통해 웹훅의 보안과 유효성 검증을 제어할 수 있답니다. 또한 consumer_group, route, service 등으로 플러그인이 적용될 범위를 지정할 수 있어요.

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "secret_v1": {
          "description": "Webhook secret \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
        },
        "tolerance_second": {
          "default": 300,
          "description": "Tolerance of the webhook timestamp in seconds. If the webhook timestamp is older than this number of seconds, it will be rejected with a '400' response.",
          "type": "integer"
        }
      },
      "required": [
        "secret_v1"
      ],
      "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"
    }
  },
  "required": [
    "config"
  ]
}

관련 리소스

더 알아보기 (Learn more)