TDTech Digest

174. Zendesk Client Credentials 인증 설정 (Set up Client Credentials authentication)

  • 원문: English
  • 위치: Additional capabilities › Knowledge Bases › Build a managed knowledge base › Create a managed knowledge base › Connect a data source › Zendesk › Set up Client Credentials authentication

한 줄 요약

Zendesk에서 Confidential 유형 OAuth 클라이언트(read scope) 를 만들고, clientId·clientSecret·instanceUrl을 KB와 같은 리전의 Secrets Manager 시크릿에 저장하는 절차입니다.

쉽게 말하면

Zendesk 관리 센터에서 “앱용 아이디/비밀번호"를 발급받아 AWS 금고(Secrets Manager)에 넣는 작업입니다. 리디렉션이나 사용자 동의 단계는 없습니다.

핵심 내용

1단계: OAuth 클라이언트 생성

경로: Zendesk Admin Center › Apps and integrations › OAuth Clients › Add OAuth client

항목값
Client name사용자에게 보이는 이름
Unique identifier이 값이 Client ID(clientId)
Client kindConfidential (Public 클라이언트는 시크릿이 발급되지 않음)
Scopesread (커넥터는 읽기만 하며 토큰 교환 시 scope=read 요청)
Redirect URL사용 안 함(2LO는 리디렉션 없음). 필수 입력이면 https://example.com 같은 임시 값
  • 저장 후 뜨는 대화상자에서 Client Secret(clientSecret) 을 복사합니다.
  • ⚠️ 클라이언트 시크릿은 생성 시 한 번만 보이며 다시 보거나 재생성할 수 없습니다. 잃어버리면 OAuth 클라이언트를 다시 만들거나 교체하고 시크릿을 갱신해야 합니다.

2단계: Secrets Manager 시크릿 생성

{
  "clientId": "your-client-id",
  "clientSecret": "your-client-secret",
  "instanceUrl": "https://yoursubdomain.zendesk.com"
}
필드설명
clientIdOAuth 클라이언트의 Unique identifier
clientSecret생성 시 복사한 시크릿
instanceUrlhttps:// 포함, 끝 슬래시 없이. 데이터 소스의 hostUrl과 반드시 같아야 함 (커넥터가 동일성 검사 후 hostUrl로 토큰 엔드포인트 구성)
  • CLI: aws secretsmanager create-secret --name bedrock-zendesk-creds --secret-string file://secret.json
  • 응답의 시크릿 ARN을 데이터 소스 secretArn에 사용합니다.
  • KB 실행 역할에 해당 시크릿에 대한 secretsmanager:GetSecretValue 권한이 필요합니다.

다음 단계

175. Zendesk 데이터 소스 연결

SA 관점

  • instanceUrl과 hostUrl의 사소한 차이(끝 슬래시, http/https)로 연결이 실패하기 쉬우니 IaC에서 같은 변수 하나로 두 값을 채우세요.
  • 시크릿이 재조회 불가이므로 생성 직후 바로 Secrets Manager에 저장하는 절차를 한 사람이 끝까지 진행하도록 안내하세요.