feat(security): 관리자 API에 API 키 인증 적용

- 민감한 API(모델 재시작, 캐시 정리)를 보호하기 위해 API 키 기반 인증 추가
-  모듈을 생성하여 API 키 검증 로직 중앙화
- 에 API 키를 설정하여 관리 용이성 확보
- FastAPI의 를 사용하여 엔드포인트에 보안 규칙 적용
- CODING_CONVENTIONS.md에 API 키 사용법 및 cURL 예제 문서화
This commit is contained in:
hyungi
2025-07-25 07:02:39 +09:00
parent 867c7f4bca
commit 9093611c96
5 changed files with 98 additions and 5 deletions

View File

@@ -38,5 +38,8 @@
"static_hosting": "static-hosting",
"metadata": "metadata",
"local_work_path": "~/Scripts/nllb-translation-system"
},
"security": {
"api_key": "nllb-secret-key-!@#$%"
}
}