본문으로 건너뛰기
cccskills
무료GitHub에 공개

gcp

GCP best practices: IAM, secrets, networking, security, compute, IaC, ops. Use when building, reviewing, or modifying GCP resources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

GCP

Org and project structure

  • Org > Folder > Project hierarchy. Folders per environment (dev, staging, prod) or team
  • Separate projects per environment. Never share prod project with other envs
  • Dedicated logging/security project. Ship Audit Logs, SCC findings, and VPC Flow Logs there
  • Organization Policy constraints: restrict public IPs, enforce uniform bucket access, restrict allowed regions, deny SA key creation
  • Billing account per team or BU. Budget alerts per project

IAM

  • Least privilege. Predefined roles before custom. Never primitive roles (Owner, Editor) in production
  • Separate SA per workload and environment. No shared SAs across services
  • No SA keys unless unavoidable. Use Workload Identity Federation for external systems, metadata server for GCP resources
  • GKE: Workload Identity per pod. Never use default compute SA (PROJECT_NUMBER-compute@developer.gserviceaccount.com) — has broad Editor permissions
  • Grant roles at resource level. Project-level only when scope is genuinely project-wide
  • IAM Recommender enabled. Act on unused permission findings
  • If keys exist: rotate regularly, audit usage, delete when unused. Never commit to git

Secrets

  • Store in Secret Manager. Never in env vars, container images, Terraform state, or deployment manifests
  • GKE: access via Secret Manager API or mounted volumes (Workload Identity + CSI driver)
  • Auto-rotation enabled where supported
  • Reference by resource name in Cloud Run and GKE specs. Never inline values

Networking

  • VPC per environment. Shared VPC for multi-project setups
  • Private Google Access on all subnets. No public IPs needed to reach GCP APIs
  • Firewall rules: deny-all default, explicit allow only. No 0.0.0.0/0 except load balancer health checks
  • Cloud NAT for outbound internet from private instances
  • VPC Flow Logs on all subnets
  • Private Service Connect for managed services (Cloud SQL, Memorystore, etc.)
  • Cloud Armor on all internet-facing load balancers. WAF rules + DDoS protection enabled

Security

  • Security Command Center Standard or Premium enabled. Route findings to security project
  • Cloud Audit Logs enabled for all services: Admin Activity and Data Access
  • Binary Authorization on GKE — signed images from trusted registries only
  • Artifact Registry: vulnerability scanning on push. Block deploy on critical/high CVEs
  • Enable Access Transparency for visibility into Google admin actions
  • Shielded VMs on all GCE instances. Confidential VMs for sensitive workloads
  • GCS: uniform bucket-level access enforced. No legacy ACLs

Compute

  • Cloud Run for stateless workloads. GKE Autopilot for orchestrated. Raw GCE requires justification
  • Cloud Run: set --min-instances to avoid cold starts on latency-sensitive services. Set --concurrency and --cpu explicitly. --cpu-boost on startup where needed
  • GKE: separate node pools per workload profile (e.g. spot, high-memory, GPU)
  • GKE: Pod Security Standards enforced. Workload Identity per pod. No default compute SA
  • Cloud SQL: private IP only, IAM auth, automated backups, deletion protection on

IaC

  • All infrastructure as code (Terraform, Pulumi, or Deployment Manager). No manual console changes in production
  • IaC in version control. Changes via PR, not direct apply
  • Secrets never in IaC source. Use Secret Manager references at deploy time
  • Separate Terraform state per environment. Remote state in GCS with versioning and locking

Ops

  • Label all resources: env, team, service, owner. Enforce with org policies
  • Cloud Logging: set retention explicitly on all log buckets. Default retention incurs cost at scale
  • Cloud Monitoring + Cloud Logging for all workloads. Alerting policies on error rates, latency, saturation
  • Enable Error Reporting, Cloud Trace, and Cloud Profiler for full observability
  • Multi-region or regional HA for all stateful services. Zonal = not production
  • Committed Use Discounts for predictable baseline compute (GCE, Cloud SQL, GKE)

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

aws

무료

AWS best practices: IAM, secrets, networking, security, compute, IaC, ops. Use when building, reviewing, or modifying AWS resources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

docker

무료

Docker best practices: image security, build efficiency, runtime hardening, Compose, local tooling (Colima, OrbStack). Use when writing or reviewing Dockerfiles and Compose files.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

go

무료

Idiomatic Go 1.25 practices: errors, interfaces, concurrency, generics, testing, security, tooling. Use when writing or reviewing Go code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

java

무료

Modern Java practices: design, errors, concurrency, security, testing, tooling. Targets Java 21 LTS baseline; Java 25 LTS features called out explicitly. Use when writing or reviewing Java code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid overcomplication, make surgical changes, surface assumptions, and define verifiable success criteria.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

Kubernetes best practices: security, workloads, networking, config, operations, GitOps. Use when writing or reviewing K8s manifests and configurations.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SumonMSelim/agentguard542026년 10월 12일 업데이트

SumonMSelim의 스킬 모두 보기

이 스킬의 문제 신고