AWS 요청 서명 플러그인 구성 참조
AWS 요청 서명 플러그인 구성 참조 (AWS Request Signing Plugin Configuration Reference)
이 문서는 Kong의 AWS 요청 서명 플러그인에서 사용할 수 있는 구성 옵션을 스키마 형태로 정리해 놓은 설정 참조 자료예요. AWS 서비스 호출 시 요청에 서명하기 위해 필요한 aws_assume_role_arn, aws_region, aws_service 같은 필드와, 서비스 엔드포인트 대신 쓸 호스트·포트·프로토콜을 지정하는 override_target_* 옵션의 설명과 데이터 타입을 확인할 수 있어요. consumer, route, service, protocols처럼 플러그인 적용 범위를 정하는 공통 파라미터도 함께 다루고 있어서, 플러그인을 설정하기 전에 각 값의 형식과 허용 범위를 점검할 때 유용해요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"aws_assume_role_arn": {
"description": "The ARN of the AWS IAM Role to assume before making the request to the AWS service.",
"type": "string"
},
"aws_assume_role_name": {
"description": "The name of the AWS IAM Role to assume before making the request to the AWS service.",
"type": "string"
},
"aws_region": {
"description": "The AWS region in which the service is located.",
"type": "string"
},
"aws_service": {
"description": "The name of the AWS service to be called.",
"type": "string"
},
"override_target_host": {
"description": "An optional hostname or IP to use instead of the one specified in the service's endpoint.",
"type": "string"
},
"override_target_port": {
"description": "An optional port to use instead of the one specified in the service's endpoint.",
"type": "number"
},
"override_target_protocol": {
"description": "An optional protocol to use instead of the one specified in the service's endpoint.",
"enum": [
"http",
"https"
],
"type": "string"
}
},
"required": [],
"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"
}
},
"required": [],
"type": "object"
},
"protocols": {
"default": [
"http",
"https"
],
"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": [
"http",
"https"
],
"required": [],
"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"
}
},
"required": [],
"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"
}
},
"required": [],
"type": "object"
}
},
"required": []
}
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.