JWT Signer 플러그인 OpenAPI 사양
JWT Signer 플러그인 OpenAPI 사양 (JWT Signer Plugin OpenAPI Specification)
이 문서는 Kong Gateway의 JWT Signer 플러그인에서 사용하는 JWKS(JSON Web Key Set) 관리 API를 OpenAPI 3.0 사양으로 정의해 둔 거예요. JWKS 목록 조회, 개별 키 세트 조회와 삭제, 그리고 키 교체(rotate) 엔드포인트가 어떤 요청과 응답을 주고받는지 그대로 확인할 수 있어요. Kong Admin API(localhost:8001) 기준으로 작성되어 있어서 JWT Signer의 키 관리를 자동화하거나 클라이언트를 만들 때 참고하면 좋아요
출처: 문서
본문
---
openapi: 3.0.2
info:
title: JWT Signer JWKS API
version: 1.0.0
description: API for managing JWT Signer JSON Web Key Sets (JWKS) in Kong Gateway.
contact:
name: Kong Inc
url: https://konghq.com
email: docs@konghq.com
servers:
- url: http://localhost:8001
description: Kong Admin API
paths:
"/jwt-signer/jwks":
get:
summary: List JWKS entries
tags:
- JWT Signer
responses:
'200':
description: A list of JWKS entries
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
"$ref": "#/components/schemas/JWKS"
"/jwt-signer/jwks/{JwtSignerJwks}":
get:
summary: Retrieve a JWKS
tags:
- JWT Signer
parameters:
- name: JwtSignerJwks
in: path
required: true
schema:
type: string
responses:
'200':
description: JWKS returned without private keys
content:
application/jwk-set+json:
schema:
"$ref": "#/components/schemas/JWKS"
'404':
description: JWKS not found
delete:
summary: Delete a JWKS
tags:
- JWT Signer
parameters:
- name: JwtSignerJwks
in: path
required: true
schema:
type: string
responses:
'204':
description: JWKS deleted
'404':
description: JWKS not found
"/jwt-signer/jwks/{JwtSignerJwks}/rotate":
post:
summary: Rotate keys for a JWKS
tags:
- JWT Signer
parameters:
- name: JwtSignerJwks
in: path
required: true
schema:
type: string
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
client_username:
type: string
client_password:
type: string
client_certificate:
type: string
responses:
'200':
description: JWKS rotated and returned
content:
application/jwk-set+json:
schema:
"$ref": "#/components/schemas/JWKS"
'404':
description: JWKS not found
components:
schemas:
JWKS:
type: object
properties:
keys:
type: array
items:
type: object
description: A public key (private parts removed)
previous:
type: array
items:
type: object
description: A set of previously rotated keys
더 알아보기 (Learn more)
이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.