# πŸ”‘ API Keys & μ™ΈλΆ€ 연동 μ„€μ • λͺ¨λ“  ν‚€λŠ” **없어도 앱은 λ™μž‘**ν•©λ‹ˆλ‹€ (fallback λ˜λŠ” dry-run). ν‚€ 등둝 μ‹œ ν•΄λ‹Ή κΈ°λŠ₯이 μžλ™μœΌλ‘œ μ‹€ 연동. ## 1. Anthropic Claude (AI λ³΄ν—˜κΈˆ νŒμ •) - **λ°œκΈ‰**: [https://console.anthropic.com](https://console.anthropic.com) β†’ API Keys - **k8s secret key**: `api-secrets.anthropicApiKey` - **ν™˜κ²½λ³€μˆ˜**: `ANTHROPIC_API_KEY` - **없을 λ•Œ**: 룰베이슀 νŒμ • (ν‚€μ›Œλ“œ λ§€μΉ­) ## 2. Naver Clova OCR (영수증/증ꢌ OCR) - **λ°œκΈ‰**: [https://www.ncloud.com/product/aiService/ocr](https://www.ncloud.com/product/aiService/ocr) β†’ 도메인 생성 β†’ APIGW 호좜 URL + Secret Key - **k8s secret key**: `api-secrets.clovaOcrUrl`, `api-secrets.clovaOcrSecret` - **ν™˜κ²½λ³€μˆ˜**: `CLOVA_OCR_URL`, `CLOVA_OCR_SECRET` - **없을 λ•Œ**: Google Vision μ‹œλ„ β†’ 그것도 μ—†μœΌλ©΄ OCR μŠ€ν‚΅ (μˆ˜λ™ μž…λ ₯) ## 3. Google Cloud Vision (OCR fallback) - **λ°œκΈ‰**: [https://console.cloud.google.com](https://console.cloud.google.com) β†’ Vision API ν™œμ„±ν™” β†’ API key - **ν™˜κ²½λ³€μˆ˜**: `GCP_VISION_API_KEY` ## 4. Solapi 카카였 μ•Œλ¦Όν†‘ - **λ°œκΈ‰**: [https://solapi.com](https://solapi.com) κ°€μž… + API key - **카카였 λΉ„μ¦ˆμ±„λ„**: [https://center-pf.kakao.com](https://center-pf.kakao.com) κ°œμ„€ β†’ 검색ID (pfId) - **λ°œμ‹ λ²ˆν˜Έ 등둝** + **μ•Œλ¦Όν†‘ ν…œν”Œλ¦Ώ 심사** (1~2μ£Ό) - **ν™˜κ²½λ³€μˆ˜**: `SOLAPI_API_KEY`, `SOLAPI_API_SECRET`, `SOLAPI_PFID`, `SOLAPI_SENDER_KEY` - **없을 λ•Œ**: `console.log`둜 λ“œλΌμ΄λŸ° ## 5. 카카였 둜그인 (μ›Ή) - **λ°œκΈ‰**: [https://developers.kakao.com](https://developers.kakao.com) β†’ μ•± 생성 β†’ ν”Œλž«νΌ: Web (`https://insurance.junggomoa.com`) β†’ JavaScript ν‚€ - **ν΄λΌμ΄μ–ΈνŠΈ λΉŒλ“œ ν™˜κ²½λ³€μˆ˜**: `EXPO_PUBLIC_KAKAO_JS_KEY` - **λ°±μ—”λ“œμ—μ„œ access_token 검증**은 이미 κ΅¬ν˜„ (`/auth/kakao`) ## 6. 넀이버 둜그인 - **λ°œκΈ‰**: [https://developers.naver.com](https://developers.naver.com) β†’ μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 등둝 β†’ Client ID/Secret - μ›Ή: 넀이버 SDK 연동 ν•„μš” (LoginScreen onNaver() μ»€μŠ€ν„°λ§ˆμ΄μ¦ˆ) - λ°±μ—”λ“œλŠ” 이미 μ™„μ„± (`/auth/naver`) ## 7. Apple 둜그인 - **Apple Developer 계정 ν•„μš”** (μ—° $99) - μ„œλΉ„μŠ€ ν™œμ„±ν™”: Sign in with Apple - iOS: `expo-apple-authentication` μžλ™ λ™μž‘ (λ„€μ΄ν‹°λΈŒ λΉŒλ“œ ν›„) - λ°±μ—”λ“œλŠ” 이미 μ™„μ„± (`/auth/apple`) ## 8. CODEF λ³΄ν—˜ ν†΅ν•©μ‘°νšŒ - **λ°œκΈ‰**: [https://developer.codef.io](https://developer.codef.io) β†’ μƒν’ˆ 계약 - λΉ„μ¦ˆλ‹ˆμŠ€ 계약 ν•„μš” (μ›” μˆ˜μ‹­λ§Œμ›~) - **ν™˜κ²½λ³€μˆ˜**: `CODEF_CLIENT_ID`, `CODEF_CLIENT_SECRET` - **없을 λ•Œ**: mock 데이터 λ°˜ν™˜ (ENABLE_CODEF_MOCK=trueκ°€ κΈ°λ³Έ) ## 9. Expo Push (iOS/Android ν‘Έμ‹œ) - iOS: Apple Developer 계정 + APNs μΈμ¦μ„œ (EAS Build μ‹œ μžλ™) - Android: FCM server key 등둝 (`eas credentials`) - 무료 --- ## πŸ“¦ μ„œλ²„μ— ν‚€ λ“±λ‘ν•˜λŠ” 법 SSH 접속 ν›„: ```bash # /home/chpark/.insurance-secrets 에 export ν˜•μ‹μœΌλ‘œ μΆ”κ°€ cat >> /home/chpark/.insurance-secrets < EXPO_PUBLIC_NAVER_CLIENT_ID=<넀이버 Client ID> ```