デプロイ保護のための信頼できるソース機能
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Vercel Blog
Vercel は、保護されたデプロイメントが OIDC トークンを受け入れる「Trusted Sources」機能を導入し、自動化シークレットの共有不要化を実現した。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Trusted Sources を使用すると、保護されたデプロイメントは、Vercel プロジェクトやあなたが許可した外部サービスから発行される短期有効なアイデンティティトークン(OIDC)を受け付けることができます。これにより、自動化用の長期有効な Protection Bypass シークレットを共有する必要がなくなります。Trusted Sources は推奨されるアプローチですが、Protection Bypass for Automation も引き続き機能します。
呼び出し元は、x-vercel-trusted-oidc-idp-token ヘッダーに OIDC トークンを添付します。その後、Vercel が署名を検証し、あなたが設定したクレームを確認し、環境がルールと一致していることを確認します。
Vercel プロジェクトの承認
デフォルトでは、プロジェクトの Vercel OIDC トークンは、そのプロジェクト自身のデプロイメントを呼び出すことができます。同じチーム内の別のプロジェクトを許可するには、それを Trusted Sources に追加してください。
自己アクセスおよびクロスプロジェクトルールは、どちらも from/to 環境ペアでカスタマイズ可能です。プロジェクトからのリクエストを認証するには、その Vercel OIDC トークンを転送します。
外部サービスの承認
GitHub Actions や別のチームの Vercel プロジェクトなど、任意のカスタム OIDC プロバイダーを信頼できる外部サービスとして承認できます。
詳細についてはドキュメントをお読みください。
さらに読む
原文を表示
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.
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:
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.
Read the documentation to learn more.
Read more
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み