gcp-secret-manager

Store and manage secrets securely in Google Cloud Platform.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gcp-secret-manager" with this command: npx skills add bagelhole/devops-security-agent-skills/bagelhole-devops-security-agent-skills-gcp-secret-manager

GCP Secret Manager

Store and manage secrets securely in Google Cloud Platform.

When to Use This Skill

Use this skill when:

  • Managing secrets in GCP

  • Integrating with GKE workloads

  • Storing API keys and credentials

  • Implementing secret rotation

Prerequisites

  • GCP project

  • gcloud CLI configured

  • Secret Manager API enabled

Basic Operations

Create secret

echo -n "secret123" | gcloud secrets create db-password --data-file=-

Access secret

gcloud secrets versions access latest --secret=db-password

Add new version

echo -n "newsecret" | gcloud secrets versions add db-password --data-file=-

List secrets

gcloud secrets list

Application Integration

from google.cloud import secretmanager

client = secretmanager.SecretManagerServiceClient() name = f"projects/my-project/secrets/db-password/versions/latest" response = client.access_secret_version(request={"name": name}) secret = response.payload.data.decode("UTF-8")

GKE Integration

apiVersion: secrets-store.csi.x-k8s.io/v1 kind: SecretProviderClass metadata: name: gcp-secrets spec: provider: gcp parameters: secrets: | - resourceName: "projects/my-project/secrets/db-password/versions/latest" path: "db-password"

Best Practices

  • Use Workload Identity for GKE

  • Implement IAM least-privilege

  • Enable audit logging

  • Use secret versions for rollback

  • Integrate with Cloud KMS for encryption

Related Skills

  • hashicorp-vault - Multi-cloud secrets

  • gcp-gke - GKE integration

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

linux-administration

No summary provided by upstream source.

Repository SourceNeeds Review
Security

sops-encryption

No summary provided by upstream source.

Repository SourceNeeds Review
Security

linux-hardening

No summary provided by upstream source.

Repository SourceNeeds Review
Security

vpn-setup

No summary provided by upstream source.

Repository SourceNeeds Review