본문으로 건너뛰기
Skillpedia
보안22k · #10179

google-cloud-recipe-auth

하는 일

Google Cloud에 누구인지 증명하는 방법과, 그 신원이 무엇을 할 수 있는지 설명합니다. 사람, 앱, 서비스의 접근을 설정하는 개발자와 관리자를 위한 스킬입니다.

사용하는 경우

  • ✓노트북에서 개발자나 스크립트의 로그인을 설정해야 할 때.
  • ✓Google Cloud에서 실행되는 앱이 Google 서비스를 호출할 권한이 필요할 때.
  • ✓서비스 계정에 어떤 권한을 주어야 하는지 확인하고 싶을 때.

스킬 링크

https://github.com/google/skills/blob/main/plugins/cloud/google-cloud-developer/skills/google-cloud-recipe-auth/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/plugins/cloud/google-cloud-developer/skills/google-cloud-recipe-auth/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Cloud Run에서 실행되는 제 앱이 비밀번호 파일을 저장하지 않고 Google Cloud에 인증하려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 코드가 어디에서 실행되는지, 누가 로그인하는지 묻고, Application Default Credentials 같은 적절한 방법과 부여할 역할을 추천합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Authenticating and Authorizing to Google Cloud (IAM)

Authentication is the process of proving who you are. In Google Cloud, you represent a Principal (an identity like a user or a service). This is the first step before Authorization (determining what you can do).

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-recipe-auth)" and append agent-skills/1.0 (skill:google-cloud-recipe-auth) to User-Agent headers.

Authentication

Clarifying Questions for the Agent

Before providing a specific solution, clarify the following with the user:

  1. Who or what is authenticating? (A human developer, a local script, or an application running in production?)
  2. Where is the code running? (Local laptop, Compute Engine, GKE, Cloud Run, or another cloud like AWS/Azure?)
  3. What is the target? (A Google Cloud API like Storage/BigQuery, or a custom application you built?)
  4. Are you using a high-level client library? (e.g., Python, Go, Node.js libraries usually handle ADC automatically.)

Human Authentication

For users to access Google Cloud, they need an identity that Google Cloud can recognize.

Types of User Identities

Google Cloud supports several ways to configure identities for your internal workforce (developers, administrators, employees):

  • Google-Managed Accounts: You can use Cloud Identity or Google Workspace to create managed user accounts. These are called managed accounts because your organization controls their lifecycle and configuration.
  • Federation using Cloud Identity or Google Workspace: You can federate identities to allow users to use their existing identity and credentials to sign in to Google services. Users authenticate against an external identity provider (IdP), but you must keep accounts synchronized into Google Cloud using tools like Google Cloud Directory Sync (GCDS) or an external authoritative source like Active Directory or Microsoft Entra ID.
  • Workforce Identity Federation: This lets you use an external IdP to authenticate and authorize a workforce using IAM directly. Unlike standard federation, you do not need to synchronize user identities from your existing IdP to Google Cloud identities. It supports syncless, attribute-based single sign-on.

Methods of Access for Developers and Administrators

Used for interacting with Google Cloud resources and APIs during development and management.

  • Google Cloud Console: The primary web interface. You authenticate using your Google Account (Gmail or Google Workspace).
  • gcloud CLI (gcloud auth login): Used to authenticate the CLI itself so you can run management commands (e.g., gcloud compute instances list). It uses a Credential (like an OAuth 2.0 refresh token) stored locally.
  • Local Development with App Default Credentials (ADC) (gcloud auth application-default login): This is different from CLI auth. It creates a local JSON file that Google Cloud Client Libraries (Python, Java, etc.) use to act as "you" when you run code on your laptop.
  • Service Account Impersonation: For security reasons, developers should avoid downloading Service Account keys entirely. Instead, they should authenticate as humans (gcloud auth login)
자주 묻는 질문

Application Default Credentials란 무엇인가요?

노트북이나 Google Cloud에서 코드가 올바른 Google Cloud 로그인을 자동으로 찾게 하는 표준 방식입니다.

권한을 대신 설정해 주나요?

먼저 명확히 하는 질문을 하고, 그다음 설정에 맞는 구체적인 해결책을 줍니다.

gcloud 도구가 필요한가요?

네. 많은 단계가 gcloud 명령줄 도구를 사용합니다.

상세 정보

작성자의 원본 설명

Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Credentials (ADC), and best practices for secure access.

repo: google/skills

인기도

GitHub 스타
22k
순위
#10179
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬