Commit 1acc6e6
committed
feat: add AgentCore Policy integration with user identity propagation
Add user identity propagation from frontend JWT through M2M tokens to
AgentCore Policy Cedar policy evaluation at the Gateway. Includes Cedar
Policy Engine lifecycle management via Custom Resource Lambda, Cognito V3
Pre-Token Generation Lambda for claim injection, and department-based
Cedar policy for fine-grained access control.
All 6 agent patterns updated with two authentication approaches:
- Approach 1 (active): direct Cognito call with aws_client_metadata
- Approach 2 (commented out): @requires_access_token decorator
New documentation: docs/IDENTITY_POLICY.md
Fixed: ZIP packager (recursive reader, utils inclusion, agentcore_tools
naming, dynamic entry point), Cognito domain ordering for newer CDK,
langgraph/copilotkit version bumps.1 parent d653e7a commit 1acc6e6
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
12 | 26 | | |
13 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
14 | 39 | | |
15 | 40 | | |
16 | 41 | | |
| |||
0 commit comments