Trusted Sources for Deployment Protection

TL;DR · AI 摘要
Vercel 推出 Trusted Sources for Deployment Protection,通过可信源机制提升部署安全性。
核心要点
- Vercel 引入可信源机制,增强部署保护。
- 可信源机制允许开发者指定可信的代码来源,防止恶意代码注入。
- 该功能已在 Vercel 平台上线,支持多种编程语言和框架。
结构提纲
按章节快速跳转。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- Trusted Sources for Deployment Protection
金句 / Highlights
值得收藏与分享的关键句。
可信源机制允许开发者指定可信的代码来源,防止恶意代码注入。
该功能已在 Vercel 平台上线,支持多种编程语言和框架。
Vercel 表示将继续扩展该功能,提供更多安全特性。
Trusted Sources for Deployment Protection - Vercel
[](https://vercel.com/home)
- Products
- ##### AI Cloud
- AI Gateway One endpoint, all your models
- Sandbox Isolated, safe code execution
- Vercel Agent An agent that knows your stack
- AI SDK The AI Toolkit for TypeScript
- v0 Build applications with AI
- ##### Core Platform
- CI/CD Helping teams ship 6× faster
- Content Delivery Fast, scalable, and reliable
- Fluid Compute Servers, in serverless form
- Workflow Long-running workflows at scale
- Observability Trace every step
- ##### Security
- Bot Management Scalable bot protection
- BotID Invisible CAPTCHA
- Platform Security DDoS Protection, Firewall
- Web Application Firewall Granular, custom protection
- Resources
- ##### Company
- Customers Trusted by the best teams
- Blog The latest posts and changes
- Changelog See what shipped
- Press Read the latest news
- Events Join us at an event
- ##### Learn
- Docs Vercel documentation
- Academy Linear courses to level up
- Knowledge Base Find help quickly
- Community Join the conversation
- ##### Open Source
- Next.js The native Next.js platform
- Nuxt The progressive web framework
- Svelte The web’s efficient UI framework
- Turborepo Speed with Enterprise scale
- Solutions
- ##### Use Cases
- AI Apps Deploy at the speed of AI
- Composable Commerce Power storefronts that convert
- Marketing Sites Launch campaigns fast
- Multi-tenant Platforms Scale apps with one codebase
- Web Apps Ship features, not infrastructure
- ##### Tools
- Marketplace Extend and automate workflows
- Templates Jumpstart app development
- Partner Finder Get help from solution partners
- ##### Users
Ask AI
Ask AILog In
Trusted Sources for Deployment Protection
Authors



1 min read
Copy URL
May 13, 2026


Trusted Sources lets protected deployments accept short-lived identity tokens (OIDC) from Vercel projects and external services you authorize, so you no longer have to share a long-lived Protection Bypass for Automation secret. Trusted Sources is the recommended approach, but Protection Bypass for Automation continues to work
Callers attach an OIDC token in the x-vercel-trusted-oidc-idp-token header. Vercel then verifies the signature, checks the claims you configured, and confirms the environment matches the rule.
[Link to heading](https://vercel.com/changelog/trusted-sources-for-deployment-protection#authorize-vercel-projects)Authorize Vercel projects
By default, the Vercel OIDC token for a project can call its own deployments. To authorize another project in the same team, add it to Trusted Sources.
Self-access and cross-project rules are both customizable with from/to environment pairs. To authenticate a request from a project, forward its Vercel OIDC token:
function.ts
1import { getVercelOidcToken } from '@vercel/oidc';2await fetch('https://protected-project.vercel.app/api/data', { 3 headers: { 'x-vercel-trusted-oidc-idp-token': await getVercelOidcToken() },4});
Vercel Function example
[Link to heading](https://vercel.com/changelog/trusted-sources-for-deployment-protection#authorize-external-services)Authorize external services
Any custom OIDC provider can be authorized as a trusted external service, such as GitHub Actions, or a Vercel project in another team.
workflow.yaml
1- uses: actions/github-script@v72 id: token3 with:4 script: |5 const token = await core.getIDToken();6 core.setSecret(token);7 core.setOutput('token', token);8- run: |9 curl -sSf https://protected-project.vercel.app/api/data \10 -H "x-vercel-trusted-oidc-idp-token: ${{ steps.token.outputs.token }}"
GitHub Action example
Read the documentation to learn more.
Ready to deploy?Start building with a free account. Speak to an expert for your _Pro_ or Enterprise needs.
Start DeployingTalk to an Expert
Explore Vercel Enterprise with an interactive product tour, trial, or a personalized demo.
Get Started
Build
Scale
Secure
Resources
Learn
Frameworks
SDKs
Use Cases
Company
Community
[](https://vercel.com/home)
Loading status…Select a display theme:system light dark