restricted.googleapis.com = VIP that enforces VPC-SC for API calls from VMs
Bridge perimeter = two perimeters that need to share data (e.g., dev reads from prod)
1---2name: vpc-service-controls3description: VPC Service Controls4---56# VPC Service Controls78## When to Use9- Preventing data exfiltration from BigQuery, GCS, or other GCP services10- Designing security perimeters for sensitive data11- Configuring access levels for context-aware access12- Preparing for GCP Professional Cloud Security Engineer exam1314## Core Jobs1516### 1. VPC-SC Concepts17- **Service Perimeter** — defines a trusted boundary around GCP resources18- Resources INSIDE the perimeter can communicate freely19- Access from OUTSIDE requires an **access level** or **ingress/egress rules**20- Applies to: BigQuery, Cloud Storage, Pub/Sub, Bigtable, Spanner, and more2122### 2. Service Perimeter Design23- One perimeter per security boundary (e.g., production data)24- Projects assigned to a perimeter25- Services restricted within the perimeter (list of restricted services)26- **Bridge perimeters** — allow communication between two perimeters2728### 3. Access Levels (Context-Aware Access)29- Define conditions for EXTERNAL access to perimeter30- Conditions: IP range, device compliance, user identity, geographic region31- Example: allow access from corporate VPN IP range only3233### 4. Ingress / Egress Rules34- **Ingress rules** — allow specific external principals/services INTO the perimeter35- **Egress rules** — allow specific data flows OUT of the perimeter36- Use for: allowing Cloud Build to access perimeter, allowing specific service accounts3738### 5. Dry Run Mode39- Apply perimeter in "dry run" (report-only) mode first40- Violations logged to Cloud Audit Logs but NOT blocked41- Use to validate perimeter design before enforcing42- Switch to enforced mode once violations are understood4344## Key Concepts45- **Data exfiltration** — unauthorized copying of data to external destinations46- **VPC-SC bridge** — allows two separate perimeters to communicate47- **Restricted VIP** — API endpoint (`199.36.153.8/30`) that enforces VPC-SC48- **Perimeter types** — regular (enforced) vs bridge4950## Checklist51- [ ] Dry run mode enabled before enforcing perimeter?52- [ ] Access levels defined for legitimate external access?53- [ ] Ingress/egress rules configured for CI/CD and admin access?54- [ ] Restricted VIP (`restricted.googleapis.com`) configured for API access?55- [ ] Audit logs reviewed for violations before enforcement?56- [ ] Bridge perimeter set up if two perimeters need to communicate?5758## Output Format59- 🔴 **Critical** — perimeter enforced without dry run testing (breaks production access)60- 🟡 **Warning** — no access levels for legitimate external principals, missing ingress rules for CI/CD61- 🟢 **Suggestion** — dry run first, then incremental enforcement per service6263## Exam Tips64- VPC-SC = **data exfiltration prevention** (NOT network-level security like firewall rules)65- Always test with **dry run mode** before enforcing — avoids breaking legitimate access66- VPC-SC works at the API level (controls who calls BigQuery/GCS APIs)67- Access levels = context-aware conditions for external access (IP, device, identity)68- `restricted.googleapis.com` = VIP that enforces VPC-SC for API calls from VMs69- Bridge perimeter = two perimeters that need to share data (e.g., dev reads from prod)
Run npx skillmds@latest add kienbui1995/vpc-service-controls in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
VPC Service Controls It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
kienbui1995 (@kienbui1995) published this skill. Their other Agent Skills are listed on their SkillMD profile.