Urgent.News

What's breaking now, across thousands of outlets.

Tech

Easily setup Vault for Cursor cloud agents

One of the easiest and most helpful features of Cursor is Cloud Agents. With often 1 click you can have an agent in an ephemeral environment that you control. However, these agents often need access to external systems. There is an embedded secrets tab but that is the same-old foothold problem all over again: a long-lived Vault token sitting in an agent environment until you remember to rotate…

Cursor Cloud Agents offer a simple and efficient way to set up agents in ephemeral environments with just one click. However, these agents often require access to external systems, leading to the recurring issue of long-lived Vault tokens within agent environments. To address this, Cloud Agents can generate a short OIDC JWT from a local Unix socket.

By integrating this JWT with Vault, agents can authenticate, read secrets from Vault, and ensure no static credentials are left behind. This guide assumes a personal Cursor account and a network route to Vault. The process begins by setting the VAULT_ADDR (and optionally VAULT_NAMESPACE) as environment variables. The agent's custom startup script generates a JWT, exchanges it for a Vault token for subsequent usage.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Tuesday 25 August →