AIFeed

Vercel CLI 支持 OIDC 令牌交换

AI summary

现在可以将来自可信工作负载(包括 GitHub 工作流)的 OIDC 令牌交换为短期的 Vercel CLI 访问令牌。这被称为工作负载身份联合(WIF),是比长期个人访问令牌(PAT)更安全的替代方案。团队的 OIDC 策略控制这些令牌能做什么,而不是由特定团队成员或其角色决定,每个令牌仅授予其策略允许的权限。建议将 CI/CD 工作流从 PAT 迁移到 OIDC。部分 CLI 命令仍需要用户令牌。可在 Settings → Build and Deployment → OIDC Policies 下添加 Vercel CLI 策略,或使用新的 vercel oidc-policies 命令开始使用。

Translation(model translation, not the source's own text)
题图
题图

现在,你可以将来自可信工作负载(包括 GitHub workflows)的 OIDC token 兑换为短时效的 Vercel CLI 访问 token。这被称为 Workload Identity Federation(WIF),它是长时效 Personal Access Token(PAT)的一种更安全的替代方案。

这些 token 能做什么由你团队的 OIDC 策略控制,而不是由某个具体的团队成员或其角色决定,并且每个 token 只授予其策略所允许的权限。

我们建议将 CI/CD workflows 从 PAT 迁移到 OIDC。部分 CLI 命令仍然需要用户 token。

在 Settings → Build and Deployment → OIDC Policies 下添加 Vercel CLI 策略,或使用新的 vercel oidc-policies 命令即可开始使用。

在文档中了解更多。

Contributors

Alice Hawthorne, Melkey Moksyakov, Bel Curcio

Only about 654 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗