Automation & Ops ✓ Google · Official google-cloudcloud-authenticationiamapplication-default-credentialsservice-accountsworkload-identity-federationoidcapi-keys

Google Cloud Authentication Guide

Choose secure Google Cloud authentication and authorization for local, production, and cross-cloud workloads.

FollowSkills review · FSRS-2.0
Not recommended
58/ 100 5-point scale 2.9 / 5
Trust20 / 25 · 4.0/5

The document explicitly discourages long-lived service-account keys and recommends attached service accounts, short-lived credentials, impersonation, workload identity federation, API-key restrictions, and Secret Manager, with least-privilege guidance and partial data-flow disclosure. Points are deducted because user confirmation, rollback, credential-leak response, audit requirements, and complete sensitive-data boundaries are not specified.

Reliability8 / 20 · 2.0/5

The material is internally consistent and organized around human authentication, service-to-service authentication, authorization, examples, and a validation checklist, with several concrete commands and an ADC order. Points are deducted because the static files contain no test suite, CI coverage, compatibility matrix, or diagnosable abnormal-input error handling; reproducibility of key paths is therefore unproven.

Adaptability10 / 15 · 3.3/5

Clarifying questions cover the identity, runtime environment, target API, and client-library context, and the skill addresses local development, production, GKE, Cloud Run, external clouds, and custom applications. Points are deducted because non-fit boundaries, an input/output contract, regional network reachability, and Chinese-language usage guidance are absent; the core function depends on Google Cloud services that may be difficult to reach from mainland China.

Convention8 / 15 · 2.7/5

The name and description match the content, and the documentation has clear sections, examples, a checklist, references, repository installation guidance, an Apache-2.0 license, official organizational provenance, and an issue-reporting path. Points are deducted because the skill itself lacks a version, changelog, named maintenance owner, update policy, post-install dependency notes, and troubleshooting FAQs.

Effectiveness7 / 15 · 2.3/5

The skill provides directly usable guidance, commands, role examples, and deployment patterns for common Google Cloud authentication and authorization decisions, so it can complete the core advisory task. Points are deducted because nothing was executed, examples omit permission-grant commands, environment prerequisites, failure handling, and result confirmation, and users must still consult official documentation and supply concrete configuration.

Verifiability5 / 10 · 2.5/5

The skill cites numerous Google official documents and states auditable details such as commands, roles, environments, and ADC lookup order; the repository also supplies a fixed revision, license, and official-source context. Points are deducted because there are no skill-level tests, CI results, third-party corroboration, or independent reproduction artifacts, so static review cannot justify more than 5 points.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 513a7a51e85f
The upstream repository has new commits since this review. The score still applies to the reviewed revision shown and may not cover the latest changes.
Before you use it
  • This is a static source review only; no commands, authentication flows, or examples were executed.
  • Before implementation, confirm the project, principal, permission scope, and organizational policies, and verify that credentials are not written to logs or source control.
  • The documentation does not address mainland-China reachability; some Google Cloud consoles and documentation may require additional network access conditions.
  • The examples are advisory fragments rather than complete runnable configurations; add error handling, auditing, revocation, and recovery steps.
Review evidence [1][2][3][4]
See the full review method →

What does this skill do, and when should you use it?

This skill provides focused guidance for authenticating to and authorizing access to Google Cloud services and APIs. It covers human users, service accounts, Application Default Credentials, service account impersonation, workload identity federation, API keys, OIDC, and IAM. It asks about the principal, runtime environment, target resource, and client library before recommending an approach. It suits developers and administrators designing or troubleshooting Google Cloud access; the surrounding repository is installed with npx skills add google/skills and licensed under Apache-2.0.

Explains when to use gcloud auth login versus gcloud auth application-default login, and how to choose Google Cloud Console, ADC, service account impersonation, or attached service accounts; maps authentication approaches across local machines, Compute Engine, Cloud Run, GKE, AWS, Azure, and on-premises environments; explains IAM roles, API key restrictions, access scopes, short-lived tokens, OIDC ID tokens, and JWTs; provides human-to-service Python Storage, Cloud Run-to-Cloud SQL, and private Cloud Run OIDC examples; and applies a validation checklist for keys, default service accounts, cross-cloud access, and API key restrictions.

  1. A local developer needs a Python, Java, or other client library to access a Google Cloud API using ADC instead of manually managed credentials.
  2. An administrator needs to configure a least-privilege service account for production code running on Cloud Run or Compute Engine.
  3. A developer needs to access Google Cloud from AWS, Azure, or on-premises without using long-lived service account keys.
  4. A team needs GKE workloads to access selected Google Cloud APIs through Workload Identity Federation for GKE.
  5. A developer needs to call a private Cloud Run application and send a Google-signed OIDC ID token.
  6. An operator is troubleshooting an attached service account that has IAM permissions but cannot call an API and needs to check access scopes.

What are this skill's strengths and limitations?

Pros
  • Covers local development, production services, GKE, external workloads, and custom applications.
  • Clearly distinguishes CLI authentication from ADC, reducing a common local-development credential mistake.
  • Strongly recommends attached service accounts, impersonation, and short-lived credentials over downloaded long-lived keys.
  • Includes concrete IAM, API key restriction, and validation guidance.
  • The repository is under active development and uses the Apache-2.0 license.
Limitations
  • It is instructional Markdown rather than an executable automation package, and no test suite is provided in the source.
  • Apart from example gcloud commands, it does not provide complete client configuration, deployment manifests, or troubleshooting command sequences.
  • Actual permissions, organization policies, and identity-provider configuration still require environment-specific decisions.
  • The repository contains about 90 skills; this profile covers only the authentication skill and not sibling capabilities.

How do you install this skill?

Run npx skills add google/skills, then select the skill corresponding to skills/cloud/google-cloud-recipe-auth during the installation flow. The README does not document a client-specific directory for copying this skill manually.

How do you use this skill?

After installing it in an Agent Skills-compatible client, provide a concrete scenario such as: “My Python program runs locally and needs to read Cloud Storage; which authentication method should I use?” or “My Cloud Run service needs Cloud SQL access; how should I configure the service account and IAM?” The skill first asks clarifying questions about the principal, runtime, target, and client library, then recommends authentication and authorization steps. The source does not define a fixed trigger command or parameter format.

How does this skill compare with similar options?

Compared with using only gcloud auth login, this skill explains that CLI authentication is for gcloud management commands, while client libraries commonly use gcloud auth application-default login to configure ADC. Compared with downloading service account keys, it recommends impersonation, attached service accounts, or workload identity federation for short-lived credentials. Compared with relying solely on IAM, API keys can serve some public-data or simplified-access scenarios, but the skill says to restrict them to specific APIs and projects and store them in Secret Manager.

FAQ

Does this skill log in to Google Cloud or create credentials automatically?
No. The source presents guidance and examples; it does not provide scripts that automatically log in, create resources, or generate credentials.
Should local development use gcloud auth login or ADC?
Use `gcloud auth login` for gcloud management commands. Use `gcloud auth application-default login` when client-library code should act as the local user.
Are service account JSON keys recommended in production?
No. The skill explicitly recommends avoiding keys and attaching a custom, least-privilege service account to resources such as Cloud Run or Compute Engine.
Does using this skill cost extra?
The source does not state that the skill itself has a cost, and it does not provide pricing information for Google Cloud services or related resources.

More skills from this repository

All from google/skills

Dev & Engineering ✓ Google · Official

Gemini LiveAPI Client Service Skill

Generate a resumable, multimodal, bidirectional Gemini LiveAPI client over WebSockets.

Automation & Ops ✓ Google · Official

Gemini AI Studio to Agent Platform Migration

Guides Gemini API applications from Google AI Studio to Google Cloud Agent Platform.

Automation & Ops ✓ Google · Official

Google Cloud WAF Security Advisor

Assesses Google Cloud workloads against Well-Architected security principles and produces actionable improvement guidance.

Automation & Ops ✓ Google · Official

Google Cloud Foundation Builder

Deploys a secure enterprise landing-zone foundation for a Google Cloud organization.

Dev & Engineering ✓ Google · Official

Data Manager API Setup Assistant

Set up local authentication and client libraries for the Data Manager API.

Dev & Engineering ✓ Google · Official

Google Analytics Admin API Assistant

Automate Google Analytics account, property, and data-stream configuration.

Automation & Ops ✓ Google · Official

Google Cloud Workload Manager Evaluator

Evaluate Google Cloud workloads against best-practice rules and review actionable findings.

Dev & Engineering ✓ Google · Official

Gemini API Enterprise Development Guide

Helps developers build enterprise Gemini applications on Agent Platform with Google's unified Gen AI SDK.

Dev & Engineering ✓ Google · Official

Gemini Interactions API Guide

Build stateful, multi-turn Gemini interactions on Google Agent Platform.

Automation & Ops ✓ Google · Official

GKE Cost Optimization

Reduce GKE spending through rightsizing, quotas, Spot VMs, and capacity planning.

Automation & Ops ✓ Google · Official

Google Cloud Global Load Balancer Configurator

Design and deploy opinionated global external Application Load Balancers on Google Cloud.

Automation & Ops ✓ Google · Official

Google Cloud Secure Serverless Tiers

Guides agents to design, codify, deploy, and validate isolated multi-tier serverless web applications on Google Cloud.

Dev & Engineering ✓ Google · Official

Gemini Enterprise Skill Registry

Search, manage, monitor, and scaffold skills for the Gemini Enterprise Agent Platform.

Dev & Engineering ✓ Google · Official

Gemini Enterprise Managed Agents

Manage stateful Gemini Enterprise agents through the Managed Agents API.

Automation & Ops ✓ Google · Official

Google Cloud Solution Architect

Plan, validate, and package end-to-end architectures for complex multi-product Google Cloud workloads.

Automation & Ops ✓ Google · Official

Google Cloud Reliability Architect

Evaluate and improve Google Cloud workload reliability using the Well-Architected Framework.

Automation & Ops ✓ Google · Official

Google Cloud Live Multimodal Streaming Architect

Design and deploy Google Cloud solutions for live, bidirectional multimodal streams.

Automation & Ops ✓ Google · Official

GKE Production Golden Path

Set production-oriented GKE defaults, readiness checks, and decision guardrails for cluster design.

Automation & Ops ✓ Google · Official

Google Cloud AI Agent Builder

Design, implement, deploy, and validate AI agents and multi-agent systems on Google Cloud.

Automation & Ops ✓ Google · Official

GKE Enterprise RAG Search Architect

Designs and validates enterprise RAG search systems built on GKE and AlloyDB.

Related skills