मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी22k · #10179

google-cloud-recipe-auth

यह क्या करती है

यह समझाती है कि Google Cloud को कैसे साबित करें कि आप कौन हैं, और वह पहचान क्या कर सकती है। यह उन डेवलपर्स और एडमिन के लिए है जो लोगों, ऐप्स और सेवाओं की पहुँच सेट कर रहे हैं।

कब इस्तेमाल करें

  • ✓जब आपको किसी डेवलपर या लैपटॉप पर चल रही स्क्रिप्ट के लिए साइन-इन सेट करना हो।
  • ✓जब Google Cloud पर चल रहे ऐप को किसी Google सेवा को कॉल करने की अनुमति चाहिए।
  • ✓जब आप जाँचना चाहते हों कि सर्विस अकाउंट के पास कौन सी अनुमतियाँ होनी चाहिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/google/skills/blob/main/plugins/cloud/google-cloud-developer/skills/google-cloud-recipe-auth/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Cloud Run पर चल रहे मेरे ऐप को बिना पासवर्ड फ़ाइल सहेजे Google Cloud पर कैसे प्रमाणित होना चाहिए?”

हर हफ़्ते 5 नई skills, 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
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

finding-google-skills

22k

आपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।

AI और एजेंटएजेंट

gcloud

22k

यह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

google-cloud-recipe-onboarding

22k

एक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

retrieving-developer-knowledge

22k

आपके एजेंट को Cloud, Android, Chrome, Firebase, Flutter और दूसरे Google प्लेटफ़ॉर्म के आधिकारिक डेवलपर दस्तावेज़ देखने में मदद करती है, याद के भरोसे नहीं।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills