Repository navigation
Give Cursor Cloud Agents keyless GCP, AWS and tailnet access - #145
Merged
Merged
Conversation
Contributor
Author
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
NikhilShahi
approved these changes
Nov 19, 2026
Adds the cloud agent access kit (.agents/) and runs it from the Cursor environment's install and start steps, so agents here get short-lived gcloud, aws and tailscale access through the platform's OIDC token. The resource names come from the AGENT_ENV_CONF Cursor team secret; nothing is committed beyond the scripts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AHarmlessPyro
force-pushed
the
claude/cloud-agent-access
branch
from
November 19, 2026 19:49
1e0e11e to
fd2524f
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fd2524f. Configure here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Why
Cursor Cloud Agents for this repository ran on an empty environment, so they had no GCP, AWS or tailnet access.
What
.agents/: the cloud agent access kit, copied in with.agents/sync-kit. Re-sync it from the kit rather than editing it here..cursor/environment.jsonrunsagent-access install(installs gcloud, aws, tailscale and jq when missing) andagent-access start(keyless gcloud configuration and AWS profilecoding-agents, tailnet watcher).AGENTS.md: a short section telling agents what they can use.No identifiers are committed. The helpers read the resource names from the
AGENT_ENV_CONFCursor team secret, and credentials are short-lived tokens exchanged from Cursor's OIDC token, so nothing long-lived lands on the VM.Testing
Ran the kit's install and start steps in a clean Ubuntu 24.04 container. The real token exchange gets checked on Cursor once this environment builds.
🤖 Generated with Claude Code
Note
Medium Risk
Introduces VM credential and tailnet join flows (OIDC, IAM roles, Tailscale) for dev agents only; misconfiguration of team secrets or roles could widen cloud access, but app runtime code is unchanged.
Overview
Adds the cloud agent access kit under
.agents/(synced viasync-kit), so Cursor Cloud Agent VMs can get keyless GCP, AWS, and Tailscale access using short-lived platform OIDC tokens—no long-lived secrets in the repo.Cursor wiring: new
.cursor/environment.jsonrunsagent-access install(optionalgcloud/aws/tailscale/jq, helper symlinks, shell env) andagent-access start(persistsAGENT_ENV_CONF, configurescoding-agentsprofiles, background GCP login retries, tailnet watcher).Helpers exchange OIDC for WIF/credential_process and ephemeral tailnet join (userspace proxies on Cursor). Resource names come from the
AGENT_ENV_CONFteam secret viaload-env.sh.Docs:
AGENTS.mdgains a synced section on how agents usecoding-agentsand tailnet proxies.Reviewed by Cursor Bugbot for commit c086bfd. Bugbot is set up for automated code reviews on this repo. Configure here.