애플리케이션에서 API 키를 사용하는 경우 저장 및 전송 중에 안전하게 보호되도록 해야 합니다. API 키를 공개적으로 노출하면 계정에 예상치 않은 비용이 청구되거나 데이터에 대한 무단 액세스가 발생할 수 있습니다.
API 키를 안전하게 보호하려면 다음 권장사항을 구현하세요.
API 키 제한사항을 키에 추가
제한사항을 추가하면 API 키 사용 방법을 제한하여 손상된 API 키로 인한 영향을 줄일 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-26(UTC)"],[[["Secure API keys by implementing best practices during storage and transmission to prevent unauthorized access or unexpected charges."],["Restrict API key usage to minimize the impact of compromised keys, using the provided resources for more information on restrictions."],["Avoid including API keys in URLs as query parameters, instead opting for the `x-goog-api-key` HTML parameter or client libraries."],["Periodically rotate API keys and delete old ones, while deleting any keys that are not in use to minimize potential exposure."],["Never include API keys directly in client code or code repositories, instead leveraging server-side logic, and implement monitoring to detect any unauthorized usage."]]],[]]