singtreb/sword-riding/configuring-identity-aware-proxy-with-google-iap
Claude Code and agent skill by singtreb/sword-riding
- community
Checking that the SKILL.md file is still in the repository.
'Configuring Google Cloud Identity-Aware Proxy (IAP) to enforce per-request identity verification for Compute
Install
npx vskill@latest install singtreb/sword-riding/configuring-identity-aware-proxy-with-google-iapSKILL.md
The same SKILL.md was published earlier as xalgord/xalgorix/configuring-identity-aware-proxy-with-google-iap.
Configuring Identity-Aware Proxy with Google IAP
When to Use
- When protecting Google Cloud applications (App Engine, Cloud Run, GKE, Compute Engine) with identity-based access
- When implementing context-aware access requiring device posture and location verification
- When providing secure access to internal tools without VPN or public IP exposure
- When needing per-request authentication and authorization for web applications and TCP services
- When configuring programmatic access to IAP-protected resources using service accounts
Do not use for non-HTTP applications that cannot be placed behind an HTTPS load balancer, for public-facing applications that need unauthenticated access, or when applications handle their own authentication and IAP would conflict with existing auth flows.
Common Misconfigurations & Verification
- Backend reachable bypassing IAP: IAP only protects traffic arriving through the HTTPS load balancer. If the GCE/GKE instance has a public IP, or its VPC firewall allows the app port from
0.0.0.0/0, anyone hits the origin directly. Restrict ingress firewall rules to the IAP source range35.235.240.0/20ONLY and remove public IPs. - `allUsers`/`allAuthenticatedUsers` on the backend: a stray
roles/run.invokerorroles/iap.httpsResourceAccessorbinding toallUsersneuters every policy. Audit IAM bindings on each backend/Cloud Run service. - Access level attached but not enforced: granting
iap.httpsResourceAccessorWITHOUT the--conditionaccess-level expression authenticates identity but skips device posture/IP checks. Confirm finance/admin bindings carryrequest.auth.access_levels.exists(...). - App ignores the IAP JWT: if the app doesn't validate the
x-goog-iap-jwt-assertionheader, anyone reaching the origin directly is treated as authenticated.
Verify: from off-VPN run curl http://<instance-ip>:<port>/ against both public and private IPs; both must be unreachable (only 35.235.240.0/20 permitted). Sign in from a device that fails the access level and confirm protoPayload.status.code=16 / a denied entry via the iap-denied-access log metric. Confirm no IAM binding resolves to allUsers.
Prerequisites
- Google Cloud project with billing enabled
- IAP API enabled (
gcloud services enable iap.googleapis.com) - Application deployed behind HTTPS Load Balancer, App Engine, or Cloud Run
- Cloud Identity or Google Workspace for user management
- Access Context Manager API enabled for access levels
- OAuth consent screen configured for the project
Workflow
Step 1: Enable IAP on Backend Services
Configure IAP for different GCP compute platforms.
Step 2: Configure IAM Bindings for Access Control
Grant access to specific users and groups with optional access level conditions.
Step 3: Create Access Levels with Access Context Manager
Define context-based access requirements using device attributes and network conditions.
Step 4: Configure Session Settings and Re-authentication
Set session duration and re-authentication policies per application.
Step 5: Configure Programmatic Access for Service Accounts
Enable service-to-service communication through IAP-protected endpoints.
Step 6: Set Up Audit Logging and Monitoring
Configure logging for all IAP access decisions.
Key Concepts
| Term | Definition | |
|---|---|---|
| Identity-Aware Proxy | GCP service that intercepts web requests and TCP connections, authenticating users and evaluating access policies before proxying to backend services | |
| Backend Service | GCP load balancer component that IAP protects; can serve Compute Engine instances, GKE pods, Cloud Run services, or App Engine | |
| IAP Tunnel | Secure TCP tunnel through IAP allowing SSH, RDP, and other TCP access to VMs without public IPs or VPN | |
| OAuth Consent Screen | GCP configuration specifying the application name and support email shown to users during IAP authentication | |
| Access Level | Named condition in Access Context Manager evaluated during IAP authorization (device posture, IP, geography) | |
| Re-authentication | IAP feature requiring users to prove their identity again after a configurable session duration |
Tools & Systems
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/tools/skills/data/zero-trust-architecture/configuring-identity-aware-proxy-with-google-iap/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/singtreb/sword-riding/configuring-identity-aware-proxy-with-google-iap)