Skip to content

Commit 1acc6e6

Browse files
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

File tree

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- User identity propagation from frontend JWT through M2M tokens to Cedar policy evaluation at AgentCore Gateway
13+
- Cedar Policy Engine and Cedar Policy lifecycle management via Custom Resource Lambda (`infra-cdk/lambdas/cedar-policy/`)
14+
- Cognito V3 Pre-Token Generation Lambda for injecting user identity claims into M2M tokens (`infra-cdk/lambdas/pretoken-v3/`)
15+
- Cedar policy file with department-based access control — two versions for allow/deny testing (`gateway/policies/policy.cedar`)
16+
- Cognito ESSENTIALS tier for V3 Pre-Token Lambda trigger support
17+
- Direct Cognito `/oauth2/token` call with `aws_client_metadata` for user identity propagation (Approach 1) across all 6 agent patterns
18+
- Alternative `@requires_access_token` decorator approach (Approach 2) documented and commented out in each pattern's `tools/gateway.py`
19+
- Identity propagation and Cedar policy documentation (`docs/IDENTITY_POLICY.md`)
20+
1021
### Changed
1122

23+
- Updated all 6 agent patterns to pass `user_id` to Gateway client for identity-aware M2M tokens
24+
- Updated NAT Gateway documentation in `docs/DEPLOYMENT.md` for VPC mode with identity propagation
25+
- Updated root `README.md` architecture flow and project structure
1226
- Updated architecture diagram with latest logos (`docs/architecture-diagram/FAST-architecture-20260403.png`)
1327

28+
### Fixed
29+
30+
- ZIP packager: recursive pattern directory reader to include `tools/` subdirectory
31+
- ZIP packager: added `patterns/utils/` to deployment package
32+
- ZIP packager: renamed repo-root `tools/` to `agentcore_tools/` to avoid conflict with pattern's `tools/` directory
33+
- ZIP packager: dynamic entry point detection instead of hardcoded `basic_agent.py`
34+
- Cognito domain creation ordering to resolve "Internal error from downstream service" with newer CDK versions
35+
- `langgraph>=1.1.5` version bump to fix `ServerInfo` import error
36+
- `copilotkit>=0.1.84` version bump to fix compatibility with newer langgraph
37+
- Added placeholder graph in `ActorAwareLangGraphAgent.__init__` for newer copilotkit validation
38+
1439
## [0.4.1] - 2026-03-25
1540

1641
### Added

0 commit comments

Comments
 (0)