Add attenu-guard authorization sample for Strands on AgentCore Runtime - #2014
Open
rafaelasor wants to merge 1 commit into
Open
Add attenu-guard authorization sample for Strands on AgentCore Runtime#2014rafaelasor wants to merge 1 commit into
rafaelasor wants to merge 1 commit into
Conversation
Shows a Strands orchestrator delegating to a sub-agent through the agents-as-tools pattern, with per-agent authority enforced in-process by attenu-guard (Apache-2.0). The sub-agent's permissions are computed as the meet of its request and its parent's authority, so a hand-off can only ever narrow; an out-of-authority tool call is cancelled before the tool body runs, and the run's decisions are recorded in a hash-chained, offline-verifiable audit log. Runs fully offline against a scripted model (no AWS account, no model access) with a matching pytest suite; the AgentCore deploy commands are documented but not executed. Sample author maintains attenu-guard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
03-integrations/agentic-frameworks/strands-agents/authorization/, aStrands + AgentCore Runtime sample showing:
are computed as the meet of its request and the parent's authority, so a
hand-off can only ever narrow
Strands'
BeforeToolCallEventhook (no monkeypatching)Enforcement comes from
attenu-guard(Apache-2.0, not part of the AWS SDKs).How to run:
uv venv && uv pip install -r requirements-dev.txt, thenpython local_run.py(offline, scripted model, no AWS account) andpython -m pytest. The AgentCore deploy commands (agentcore configure/launch/invoke) are documented in the README but not executed as partof this PR.
What the reader sees: the sub-agent reads logs (permitted), then tries to
export findings to an external destination (not permitted) — the call is
denied before the tool body runs, and the offline run prints the denial plus
a verified evidence bundle.
Refs #2013 (opened first per CONTRIBUTING).
Disclosure: I maintain attenu-guard.