google-cloud-auth
यह क्या करती है
यह स्किल AI एजेंट को सिखाती है कि Google Cloud ऑथेंटिकेशन कैसे काम करता है। यह उन डेवलपर और IT स्टाफ़ के लिए है जिन्हें ऐप्स या उपयोगकर्ताओं को सुरक्षित रूप से Google Cloud से जोड़ना है।
कब इस्तेमाल करें
- ✓जब आपको लैपटॉप से Google Cloud पर काम करने वाले डेवलपर के लिए साइन-इन सेट करना हो।
- ✓जब Google Cloud पर चलने वाले ऐप को बिना सेव किए पासवर्ड के किसी Google सेवा तक पहुँच चाहिए।
- ✓जब आप किसी स्क्रिप्ट या लाइब्रेरी के लिए Application Default Credentials सेट करना चाहें।
Skill का लिंक
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/security/google-cloud-auth/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Cloud Run ऐप को कोड में key फ़ाइल डाले बिना BigQuery तक पहुँच कैसे दूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आपका एजेंट पूछता है कि कोड कहाँ चलता है और वह किससे जुड़ता है, फिर सही साइन-इन तरीका सुझाता है, जैसे Application Default Credentials।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Authenticating to Google Cloud
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).
Authentication
Clarifying Questions for the Agent
Before providing a specific solution, clarify the following with the user:
- Who or what is authenticating? (A human developer, a local script, or an application running in production?)
- Where is the code running? (Local laptop, Compute Engine, GKE, Cloud Run, or another cloud like AWS/Azure?)
- What is the target? (A Google Cloud API like Storage/BigQuery, or a custom application you built?)
- 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) and use Service Account Impersonation to run CLI commands or generate short-lived credentials. This is a critical best practice for local development and troubleshooting.
For End-Users and Customers
Used when a human (who is not a developer) needs to access a web application you've deployed on Google Cloud. Note: These are distinct from workforce identities.
- Identity-Aware Proxy (IAP): Acts as a central authorization layer for web appl
अक्सर पूछे जाने वाले सवाल
Application Default Credentials क्या हैं?
ये Google Cloud लाइब्रेरी के लिए सही क्रेडेंशियल अपने-आप खोजने का एक मानक तरीका हैं।
क्या यह service accounts कवर करती है?
हाँ। स्किल ऐप्स और सेवाओं की सेवा पहचान के साथ-साथ मानव उपयोगकर्ताओं को भी कवर करती है।
क्या यह अनुमतियाँ भी कवर करती है?
यह मुख्य रूप से यह बताती है कि आप कौन हैं, और नोट करती है कि अधिकृतता, यानी आप क्या कर सकते हैं, उसके बाद आती है।
जानकारी
लेखक का मूल विवरण
Provides expert guidance on authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Credentials (ADC), and best practices for secure access.
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #9055
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
owasp-security
33kआपके एजेंट को वेब ऐप, API, मोबाइल, कंटेनर और AI एजेंट्स के लिए OWASP सुरक्षा मार्गदर्शन सिखाती है, ताकि वह आम कमज़ोरियाँ पहचान सके और सुधार सुझा सके।
agent-management
33kआपके एजेंट को AI Maestro कमांड-लाइन से AI एजेंट बनाने, सूची देखने, hibernate और wake करने, नाम बदलने और हटाने देती है, हर एजेंट के जीवन-चक्र को संभालते हुए।
agent-messaging
33kAgent Messaging Protocol का उपयोग करके AI एजेंट्स के बीच हस्ताक्षरित संदेश भेजने, प्राप्त करने और उनका जवाब देने देती है, ज़्यादातर आपकी अपनी मशीन पर।
docs-search
33kआपके एजेंट को फ़ंक्शन सिग्नेचर, क्लास परिभाषा और कमेंट के लिए ऑटो-जनरेटेड कोड डॉक्यूमेंटेशन खोजने देती है, ताकि कोड बदलने से पहले वह असली API जाँच सके।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।