Skip to content

Give Cursor Cloud Agents keyless GCP, AWS and tailnet access - #157

Merged
AHarmlessPyro merged 2 commits into
mainfrom
claude/cloud-agent-access
Nov 19, 2026
Merged

AHarmlessPyro merged 2 commits into
mainfrom
claude/cloud-agent-access

Conversation

@AHarmlessPyro

@AHarmlessPyro AHarmlessPyro commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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.json runs agent-access install (installs gcloud, aws, tailscale and jq when missing) and agent-access start (keyless gcloud configuration and AWS profile coding-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_CONF Cursor 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

High Risk
Introduces authentication and cloud credential flows for agent VMs (GCP WIF, AWS web identity, Tailscale); misconfiguration could widen access, though design avoids committing secrets and uses short-lived tokens.

Overview
This PR wires Cursor Cloud Agent VMs into GCP, AWS, and the company Tailscale tailnet using short-lived platform OIDC tokens—no long-lived secrets in the repo or image.

It adds the synced .agents/ access kit (agent-access install/start, token helpers, tailnet join/watch) and .cursor/environment.json so the environment runs agent-access install on snapshot build and agent-access start on boot. Resource names come from the AGENT_ENV_CONF team secret via load-env.sh. AGENTS.md documents the coding-agents gcloud config and AWS profile plus tailnet proxy usage.

Reviewed by Cursor Bugbot for commit d6f624c. Bugbot is set up for automated code reviews on this repo. Configure here.

@AHarmlessPyro

AHarmlessPyro commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread .agents/bin/agent-cloud-login Resolved
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
AHarmlessPyro force-pushed the claude/cloud-agent-access branch from d0907f4 to 2842aa8 Compare November 19, 2026 19:49

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2842aa8. Configure here.

Comment thread .agents/bin/agent-access Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AHarmlessPyro
AHarmlessPyro added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit b43ce8b Nov 19, 2026
12 of 13 checks passed
@AHarmlessPyro
AHarmlessPyro deleted the claude/cloud-agent-access branch November 19, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants