Skip to content
Nitmonk
Production AI Stack (2026)

10 · Identity, Policy & Security

Fine-grained, context-aware authorization with Cedar.

10 · Identity, Policy & Security — infographic explaining Fine-grained, context-aware authorization with Cedar.
10 · Identity, Policy & Security — visual explainer by Nitmonk.

This covers securing access to your agents, tools and data. AgentCore uses Cedar policies for fine-grained, context-aware authorization, plus guardrails against prompt injection and data leaks.

In simple terms

Authenticate users, authorize every action with fine-grained policies, and guard inputs and outputs.

How it works

  1. 1Authentication: verify users via Cognito/OIDC/SSO, API keys or JWT.
  2. 2Authorization: fine-grained, context-aware access using Cedar policies.
  3. 3Guardrails: input guardrails detect sensitive data and jailbreaks; output guardrails filter harmful or non-compliant content.
  4. 4Tool permissions and data access controls limit what agents can reach.

Key points

  • Security principles: least privilege, zero trust, defense in depth, audit everything.
  • Cedar policies are human-readable, fine-grained and auditable.
  • Never hardcode secrets; rotate keys, enable MFA and monitor for anomalies.
  • A secure agent is a trusted agent — security is a foundation, not a feature.

Why it matters

Agents can take real actions, so weak security is dangerous. Fine-grained authorization and guardrails keep agents safe, compliant and production-ready.

Frequently asked questions

What are Cedar policies?
A human-readable, auditable policy language for fine-grained, context-aware authorization in AgentCore.
How do guardrails help?
They filter malicious inputs (prompt injection) and unsafe or non-compliant outputs.