Subject Claim とは?
subject claim は、identity token のうち、token が対象とする principal を識別する部分であり、たとえば特定の repository と branch 上の特定の workflow を示します。アクセス policy は subject と照合して、呼び出し元が認可されているかを判断します。token が提供する、least-privilege ルールのための最も具体的なハンドルです。
なぜ重要か
精密な subject claim にアクセスを基づけることで、policy は任意の信頼された呼び出し元ではなく、1 つの repository の 1 つの branch に権限を付与できます。その具体性こそが、federated アクセスを安全にします。
関連ガイド
What Is Claim Mapping?Claim mapping is the rule set translating fields inside an identity token into attributes a system uses for a…
What Is an Audience Restriction?An audience restriction checks that a token was issued for the intended recipient, so a token minted for one…
What Is Conditional Access?Conditional access grants permissions only when defined conditions hold, such as a specific branch, environme…