gcp-secret-manager

Manage Google Cloud Secret Manager secrets with IAM and GKE integration.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill gcp-secret-manager-bagelhole
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gcp-secret-manager
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/security/secrets/gcp-secret-manager
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill gcp-secret-manager-bagelhole

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of securely storing, managing, and accessing sensitive information like API keys, passwords, and certificates within Google Cloud Platform environments.

Core Features & Use Cases

  • Secure Secret Storage: Centralized and encrypted storage for secrets in GCP.
  • IAM Integration: Fine-grained access control using Google Cloud IAM policies.
  • GKE Integration: Seamlessly inject secrets into Kubernetes pods via CSI driver.
  • Secret Versioning: Manage multiple versions of secrets for rotation and rollback.
  • Use Case: A developer needs to store a database password for an application running on GKE. This skill allows them to create the secret in Secret Manager, grant the GKE workload the necessary permissions via Workload Identity, and configure the CSI driver to mount the secret as a file in the pod.

Quick Start

Use the gcp-secret-manager skill to create a new secret named 'api-key' with the value 'supersecretkey123'.

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 GCP secrets for applications running on GKE?

To securely manage GCP secrets on GKE, you can use Google Cloud Secret Manager to centrally store sensitive data and inject it into pods using the CSI driver. This approach provides encrypted storage and seamless integration for your cloud-native applications.

What is the best way to control access to secrets in Google Cloud Secret Manager?

The best way to control access to secrets in Google Cloud Secret Manager is by configuring fine-grained IAM policies. This mechanism ensures only authorized identities, like specific GKE workloads, can access sensitive credentials.

Do I need the gcloud CLI to manage secrets in Google Cloud Platform?

Yes, you need the gcloud CLI installed and the Secret Manager API enabled to perform operational tasks. These prerequisites are required to create, manage, and access secrets within your Google Cloud Platform environment.

How does secret versioning work for credential rotation in GCP?

Secret versioning in GCP works by maintaining multiple versions of a secret during credential rotation, allowing you to update sensitive values and roll back to previous versions if needed. This ensures robust credential management without losing historical data.

Can I mount GCP Secret Manager secrets directly as files in a Kubernetes pod?

Yes, you can mount GCP Secret Manager secrets directly as files in a Kubernetes pod by integrating the Secret Manager CSI driver. This mechanism requires granting the GKE workload necessary permissions via Workload Identity.