AI CA 인증서
AI CA 인증서 (AI CA Certificates)
AI CA 인증서는 신뢰할 수 있는 인증 기관(CA)의 PEM으로 인코딩된 공개 인증서를 담는 엔티티예요. AI Gateway는 AI 인증서와 AI 데이터 플레인 인증서의 유효성을 검증할 때 이 인증서를 루트 CA로 사용하고, 기본적으로 인증서 검증이 켜져 있어서 안전하지 않은 구성의 배포는 실패해요. 이 문서에서는 AI CA 인증서의 개념과 Konnect API, kongctl을 사용한 등록 방법, 스키마 구성까지 차근차근 살펴봐요
출처: 문서
본문
AI CA 인증서란 무엇인가요?
AI CA 인증서는 신뢰할 수 있는 인증 기관(Certificate Authority)의 PEM으로 인코딩된 공개 인증서를 담고 있어요. 이 인증서는 루트 CA로서 AI 인증서와 AI 데이터 플레인 인증서의 유효성을 검증하는 데 사용돼요.
AI Gateway는 기본적으로 인증서를 검증하며, 안전하지 않은 구성을 데이터 플레인에 푸시하려고 하면 실패해요.
AI CA 인증서 설정하기
다음 예시는 CA 인증서를 등록하고 AI CA 인증서 엔티티를 생성해요:
Konnect API
AI CA 인증서를 생성하려면 Konnect AI Gateway API의 /ca-certificates 엔드포인트를 호출하세요.
curl -X POST https://{region}.api.konghq.com/v1/ai-gateways/{AIGatewayId}/ca-certificates \
--header "accept: application/json" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer $KONNECT_TOKEN" \
--data '
{
"name": "my-root-ca",
"cert": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n"
}
'
다음 플레이스홀더는 여러분의 값으로 바꿔야 해요:
-
region: 여러분의 Kong Konnect가 호스팅되고 운영되는 지리적 리전이에요. -
KONNECT_TOKEN: 여러분의 Konnect 계정과 연결된 개인 액세스 토큰(PAT)이에요. -
AIGatewayId: AI Gateway의id예요.
리전별 URL과 개인 액세스 토큰에 대해 자세히 알아보려면 Konnect AI Gateway API 레퍼런스를 확인하세요.
kongctl
ai_gateway_ca_certificates:
- ref: my-root-ca
ai_gateway: !lookup {id: !env AI_GATEWAY_ID}
name: my-root-ca
cert: |
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
{: data-file="ca_certificate.yaml" data-tool="kongctl" }
다음 플레이스홀더는 여러분의 값으로 바꿔야 해요:
AI_GATEWAY_ID: 여러분의 AI Gatewayid예요.
스키마
{
"description": "A CA certificate represents a trusted CA. These objects are used to verify the validity of a client or server certificate.",
"type": "object",
"properties": {
"name": {
"description": "A user-defined unique identifier for this CA certificate, used as a stable human-readable reference. This value is immutable after creation.",
"example": "my-root-ca",
"allOf": [
{
"$ref": "#/components/schemas/AIGatewayEntityIdentifier"
}
]
},
"cert": {
"description": "PEM-encoded public certificate of the CA.",
"type": "string",
"example": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n",
"x-referenceable": true
},
"cert_digest": {
"description": "SHA256 hex digest of the public certificate. This field is read-only and is automatically computed; it cannot be set by the caller.",
"type": "string",
"nullable": true,
"readOnly": true
},
"labels": {
"$ref": "#/components/schemas/PublicLabels"
},
"managed_by": {
"$ref": "#/components/schemas/ManagedBy"
},
"id": {
"$ref": "#/components/schemas/UUID"
},
"created_at": {
"$ref": "#/components/schemas/CreatedAt"
},
"updated_at": {
"$ref": "#/components/schemas/UpdatedAt"
}
},
"additionalProperties": false,
"required": [
"name",
"cert",
"id",
"created_at",
"updated_at"
]
}
자주 묻는 질문(FAQ)
-
AI CA 인증서는 Kong Gateway CA 인증서와 어떤 점이 다른가요? 둘 다 TLS 인증서를 검증하는 데 사용되는 PEM으로 인코딩된 인증서를 담고 있지만, 서로 별개의 엔티티예요.
-
AI 인증서와 AI CA 인증서의 차이점은 무엇인가요? AI CA 인증서는 신뢰할 수 있는 인증 기관을 나타내며, 개인 키를 담고 있지 않고, 클라이언트나 업스트림 서버가 제시하는 인증서를 검증하는 데 사용돼요. AI 인증서는 데이터 플레인이 스스로 사용하는 신원이에요. 즉, 개인 키를 담고 있으며 TLS 핸드셰이크를 완료하기 위해 제시돼요.
관련 리소스
더 알아보기 (Learn more)
- AI CA 인증서로 유효성을 검증하는 대상 인증서 엔티티 — AI Certificates
- 데이터 플레인 쪽에서 검증 대상이 되는 인증서 엔티티 — AI Data Plane Certificates
- AI CA 인증서를 생성할 때 호출하는 Konnect API 엔드포인트 — AI Gateway API's
/ca-certificatesendpoint - AI Gateway 전체 구조 속에서 인증서 검증이 어떻게 동작하는지 이해하기 — AI Gateway architecture
- 인증서 구성과 함께 다루는 SNI 엔티티 살펴보기 — AI SNI