gcp-secret-manager

Manages Google Cloud Platform secrets with versioning, rotation, replication, and access control via Secret Manager.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill gcp-secret-manager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-secret-manager
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/gcp-secret-manager
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill gcp-secret-manager

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the secure management of sensitive information like API keys, database credentials, and certificates within Google Cloud Platform's Secret Manager.

Core Features & Use Cases

  • Secret Creation & Versioning: Generate and manage multiple versions of secrets with options for replication, encryption, and expiration.
  • Access Patterns: Provides examples for accessing secrets from various GCP services (Cloud Run, GKE, Cloud Functions) and application code (Python, Node.js).
  • Rotation & IAM: Automates secret rotation and demonstrates how to implement fine-grained IAM access control.
  • Use Case: Securely store and manage database credentials for your Cloud Run service, ensuring they are rotated regularly and only accessible by the necessary service account.

Quick Start

Use the gcp-secret-manager skill to create a new secret named 'my-api-key' with automatic replication.

Frequently Asked Questions about gcp-secret-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I securely manage database credentials for a Cloud Run service using GCP Secret Manager?

To manage database credentials for Cloud Run, you create a secret in GCP Secret Manager, configure automatic replication, and grant the Cloud Run service account IAM access to retrieve it. This ensures credentials are securely stored and accessible at runtime.

How does secret rotation and IAM access control work in GCP Secret Manager?

Secret rotation in GCP Secret Manager automates updating sensitive values, while fine-grained IAM access control restricts retrieval to specific service accounts. This combination ensures only authorized services can access rotated secrets.

Can I access secrets from GKE and Cloud Functions using GCP Secret Manager?

Yes, you can access secrets from GKE and Cloud Functions using GCP Secret Manager. The Skill provides access patterns and code examples for Python and Node.js to integrate secure secret retrieval directly into your application logic.

What is the best way to integrate secret creation and versioning into a Terraform deployment?

Integrating secret creation and versioning into Terraform involves defining Secret Manager resources to handle replication and encryption. This approach seamlessly deploys secure storage alongside your infrastructure without exposing sensitive values in code.

Does GCP Secret Manager support multiple secret versions with automatic replication?

Yes, GCP Secret Manager supports creating multiple versions of secrets with options for automatic replication, encryption, and expiration. This allows you to safely update credentials while retaining previous versions for rollback.

How do I retrieve API keys in Python applications securely without hardcoding them?

You retrieve API keys in Python by using the GCP Secret Manager client library to fetch values at runtime. This prevents hardcoding sensitive information by dynamically pulling the required credentials using IAM permissions.