
Amazon Bedrock AgentCore Identityで「Private Key JWT」認証を使う方法Authenticate with Private Key JWT using Amazon Bedrock AgentCore Identity
匿名の公開いいねです。記事の保存・お気に入りではなく、Featured、Top 3、重要度、掲載順位には影響しません。仕組みとプライバシーAnonymous public likes are reactions, not saved articles or bookmarks. They do not affect Featured, Top 3, importance, or listing order.How it works and privacy
- AgentCore IdentityがPrivate Key JWT認証に対応し、AWS KMSで署名鍵を生成してIdPに公開鍵を登録する手順を解説。
- エージェントの安全な外部サービス認証とCloudTrailによる監査を実現できる。
AgentCore Identity supports Private Key JWT client authentication, enabling agents to use AWS KMS-backed signing keys registered with an identity provider for secure OAuth grant flows, with CloudTrail logging every access event.
本ページの本文と要約は AI による自動生成です。日本語版と英語版は言語ごとに独立して生成されるため、表現や詳しさが異なる場合があります。正確性は元記事 (aws.amazon.com) をご確認ください。The body and summaries are AI-generated independently for each language, so wording and detail may differ. Verify accuracy at the original source (aws.amazon.com).
要約と収集メタデータに基づく AI 解説。元記事全文の転載・翻訳ではありません。AI explainer based on the summaries and collected metadata, not a copy or translation of the full source article.
Amazon Web Services(AWS)は公式ブログで、AIエージェント向けの認証基盤である「Amazon Bedrock AgentCore Identity」において、「Private Key JWT」方式のクライアント認証を利用する手順を解説した。共有シークレットに頼らない認証方式を採り入れることで、エージェントとIDプロバイダー(IdP)間の連携をより堅牢にする狙いがあると見られる。
Private Key JWTは、OAuth 2.0のクライアント認証で用いられる方式の一つだ。従来広く使われてきたクライアントシークレットのように共有秘密情報をやり取りする代わりに、クライアントが秘密鍵で署名したJWT(JSON Web Token)を提示し、IdP側は事前に登録された公開鍵で署名を検証する。秘密情報そのものをネットワーク越しに送受信しないため、漏えいリスクを抑えられる点が特徴とされる。
今回のブログでは、この仕組みの解説に加え、AgentCore Identityが対応するグラントフローを整理している。そのうえで実践的な手順として、AWS Key Management Service(KMS)で署名用の鍵を作成し、その公開鍵をIdPに登録し、AgentCore側で認証情報プロバイダー(credential provider)を構成するまでの流れを順を追って示している。KMSを署名鍵の保管に用いることで、秘密鍵をアプリケーション側で直接保持せずに運用できると考えられる。
AgentCore Identityは、Amazon Bedrock AgentCoreを構成する要素の一つで、エージェントが外部サービスやAPIへアクセスする際の認証・認可を担う。生成AIエージェントが自律的に外部リソースを呼び出す用途が広がるなか、エージェントの本人性を安全に証明する仕組みへの関心は高まっている。OAuthやOpenID Connectを軸とした標準準拠の認証方式は、複数のIdPやサービスと連携する際の相互運用性の面でも利点があるとみられる。
Private Key JWTのようにシークレットレスに近い認証手法は、企業システムでの採用が進む領域でもある。今回のガイドは、AgentCore Identityを用いてエージェントの認証を実装する開発者にとって、具体的な設定手順を把握するための手がかりとなりそうだ。
Amazon Web Services has published guidance on using Private Key JWT client authentication with Amazon Bedrock AgentCore Identity, giving developers a more security-conscious way to connect AI agents to external identity providers. The topic matters because agents increasingly need to obtain OAuth tokens to call downstream APIs and tools, and the method used to authenticate the agent as a client directly shapes how those credentials are created, stored, and exposed.
Private Key JWT is an OAuth 2.0 client authentication method, standardized in the context of RFC 7523 and OpenID Connect, in which the client proves its identity by presenting a signed JSON Web Token (a JWT assertion) rather than sending a shared client secret. The client signs the assertion with a private key, and the identity provider validates it using the corresponding public key. Because no shared secret travels over the network or sits in configuration where it could leak, this pattern is generally regarded as stronger than secret-based methods such as client_secret_post or client_secret_basic. The trade-off is added setup: you must manage a key pair and register the public half with the identity provider.
The AWS post explains how this authentication flow works inside AgentCore Identity and reviews the grant flows it supports. AgentCore Identity is the component of Amazon Bedrock AgentCore responsible for handling authentication and authorization so that agents can securely acquire and use tokens. In practice, OAuth deployments distinguish between machine-to-machine access, where an agent acts on its own behalf, and delegated access, where an agent acts for a signed-in user. Private Key JWT can serve as the client authentication layer underneath these flows, replacing a static secret with a cryptographic assertion regardless of which grant is used to obtain the token.
A central element of the walkthrough is the use of AWS Key Management Service (KMS) to generate the signing key. Rather than creating a private key file that lives on disk or in an application, the guide describes creating an asymmetric KMS signing key, where the private key is generated inside KMS and never leaves the service. Signing operations are performed through KMS API calls, so the agent requests a signature for the JWT assertion without ever handling the raw private key material directly. This design reduces the risk of key exfiltration and centralizes access control and auditing through AWS Identity and Access Management and CloudTrail, which is a common motivation for using KMS in credential workflows.
The post then covers registering the KMS public key with your identity provider. Because the identity provider needs the public half of the key pair to verify incoming assertions, the public key is extracted from KMS and configured on the IdP side, typically as part of the client or application registration. After that, the guide walks through configuring a credential provider on the AgentCore side so the agent knows how to construct, sign, and present the Private Key JWT when requesting tokens. Together, these steps connect the KMS-held signing key, the identity provider's verification configuration, and the agent runtime into a single working authentication path.
For readers new to this area, some background helps. Amazon Bedrock AgentCore is AWS's set of services for building, deploying, and operating AI agents, and identity is one of several concerns it addresses alongside runtime execution, memory, and tool access. Private Key JWT is not unique to AWS; it appears across enterprise identity platforms and is frequently required by providers that enforce stronger client authentication, including in regulated environments and certain financial-grade API profiles. Developers who have used JWT bearer assertions, mutual TLS client authentication, or the OAuth client credentials grant will recognize the underlying concepts.
The overall value of the guidance is likely to be practical rather than conceptual: it documents a concrete sequence for teams that want to avoid embedding long-lived secrets in agent configurations. As agent frameworks mature, tying client authentication to a managed key service such as KMS appears consistent with broader industry moves toward secretless and short-lived credential patterns. Organizations evaluating the approach should still confirm that their chosen identity provider supports Private Key JWT and the specific grant flows their agents require before adopting it.
ポコとTECHガイドPoko & TECH Guide
ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.
- ポコPokoPrivate Key JWT認証って何? AgentCore Identityが対応すると、どう変わるの?What is Private Key JWT authentication? What changes now that AgentCore Identity supports it?
- TECHガイドTECH Guide簡単に言うと、署名したJWTで相手に認証してもらう方式じゃな。記事によれば、AWS KMSの署名鍵とIdPに登録した公開鍵を使うんじゃよ。Simply put, it authenticates using a signed JWT. According to the article, it uses an AWS KMS signing key and a public key registered with the identity provider.
- ポコPokoそれって何が嬉しいの? エージェントが外部サービスを使うときに役立つのかな。What’s the benefit? Does it help when an agent needs to access an external service?
- TECHガイドTECH Guideその通りじゃ。記事では、安全なOAuthの認可フローに使え、さらにCloudTrailがアクセスイベントを記録すると説明しておる。Exactly. The article says it supports secure OAuth grant flows, while CloudTrail records each access event for auditing.
- ポコPokoなるほど! KMSの鍵でエージェントを認証して、CloudTrailでアクセスも確認できるってことだね。Got it! The agent authenticates with a KMS-backed key, and its access can also be checked through CloudTrail.
- TECHガイドTECH Guideそうじゃな。記事では鍵の作成、公開鍵の登録、認証情報プロバイダーの設定、CloudTrailイベントの確認までが見どころじゃよ。That’s right. The article walks through key creation, public-key registration, credential-provider configuration, and reviewing CloudTrail events.