Skip to content

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

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

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 via sync-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.json runs agent-access install (optional gcloud/aws/tailscale/jq, helper symlinks, shell env) and agent-access start (persists AGENT_ENV_CONF, configures coding-agents profiles, 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_CONF team secret via load-env.sh.

Docs: AGENTS.md gains a synced section on how agents use coding-agents and tailnet proxies.

Reviewed by Cursor Bugbot for commit c086bfd. 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
Comment thread .agents/bin/agent-cloud-login Resolved

@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 1e0e11e to fd2524f 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 fd2524f. 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 675ba26 Nov 19, 2026
3 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