HMAC 인증 플러그인 구성 레퍼런스
HMAC 인증 플러그인 구성 레퍼런스 (HMAC Auth Plugin Configuration Reference)
이 문서는 Kong Gateway의 HMAC 인증 플러그인에서 설정할 수 있는 모든 파라미터를 스키마 형태로 정리한 구성 레퍼런스예요. 알고리즘 목록이나 clock_skew, hide_credentials 같은 각 필드의 기본값과 설명을 한눈에 확인할 수 있어서 플러그인을 적용하거나 튜닝할 때 참고하기 좋아요. 지원 프로토콜이나 표현식 기반 조건 같은 플러그인 공통 옵션도 함께 다루고 있어요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"algorithms": {
"default": [
"hmac-sha224",
"hmac-sha256",
"hmac-sha384",
"hmac-sha512"
],
"description": "A list of HMAC digest algorithms that the user wants to support. Allowed values are `hmac-sha224`, `hmac-sha256`, `hmac-sha384`, `hmac-sha512`, and `hmac-sha1` (disabled by default, and not available in FIPS mode)",
"items": {
"enum": [
"hmac-sha1",
"hmac-sha224",
"hmac-sha256",
"hmac-sha384",
"hmac-sha512"
],
"type": "string"
},
"type": "array"
},
"anonymous": {
"description": "An optional string (Consumer UUID or username) value to use as an “anonymous” consumer if authentication fails.",
"type": "string"
},
"clock_skew": {
"default": 300,
"description": "Clock skew in seconds to prevent replay attacks.",
"type": "number"
},
"enforce_headers": {
"default": [],
"description": "A list of headers that the client should at least use for HTTP signature creation.",
"items": {
"type": "string"
},
"type": "array"
},
"hide_credentials": {
"default": true,
"description": "An optional boolean value telling the plugin to show or hide the credential from the upstream service.",
"type": "boolean"
},
"realm": {
"description": "When authentication fails the plugin sends `WWW-Authenticate` header with `realm` attribute value.",
"type": "string"
},
"validate_request_body": {
"default": false,
"description": "A boolean value telling the plugin to enable body validation.",
"type": "boolean"
}
},
"type": "object"
},
"expressions": {
"additionalProperties": true,
"type": "object"
},
"protocols": {
"default": [
"grpc",
"grpcs",
"http",
"https",
"ws",
"wss"
],
"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": [
"grpc",
"grpcs",
"http",
"https",
"ws",
"wss"
],
"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)
- HMAC 인증과 함께 소비자 그룹 기반 접근 제어를 구성할 때 자주 사용하는 플러그인이에요 — ACL plugin
- Kong Gateway 전반의 DNS 동작과 설정 방법을 다루는 구성 레퍼런스예요 — DNS configuration reference