跳到正文
Vercel Blog(vercel.com)· Dima Voytenko·· 3 小時前精選AI 評分73

Vercel Connect 新增受管理 Stripe API 金鑰

Vercel Connect adds managed Stripe API keys

AI 導讀

Vercel Connect 現已支援為每個代理或任務產生受限制的 Stripe API 金鑰。

  • 受限金鑰:每個代理可選擇所需許可權,避免使用全權 Stripe secret key。
推薦理由

Vercel Connect 允許為每個代理或任務產生受限的 Stripe API 金鑰,提升安全性並簡化金鑰管理,對需多租戶或多功能應用的開發者尤為實用。

正文 · 原文

Vercel Connect can now create a separate restricted Stripe API key for each agent or task. When you create a Stripe connector, you can now choose Managed API Key as the connection method.

Vercel creates the key in your Stripe account, limited to the permissions you pick. The existing MCP and bring-your-own API key methods are unchanged.

type: embedded-entry-inline id: 3rOuKp0F4Nk80dMYJ5QX6U

Most apps and agents run on Stripe’s default secret key, which has full access to the account. With per-agent keys, each agent gets only the access its job needs. For example, a daily revenue report agent can be limited to read-only access to charges, and an onboarding agent can be limited to write access to customers.

Vercel creates and stores the key, so there is no secret key to paste. You can rotate it from the connector's settings without redeploying, and the old key stays valid for up to 24 hours while you switch.

Add the Stripe connector

Create a Stripe connector from the connectors directory, choose Managed API Key, pick its permissions, and attach it to your project. You can also start from the CLI, which opens the browser to finish setup:

type: embedded-entry-inline id: 1I7ChkvBWny4SCOzp2xI3E

type: embedded-entry-inline id: 66OV4WkA85AVl8hbRgk4PU

To get started, add the Stripe connector or read the documentation.

Read more

來源: Vercel Blog (vercel.com)
開啟原文