liveBook · Manning

Chapter 12: Authorization context

What you will learn in chapter 12 of Authorization in Action

The introduction explains why authorization policies need trustworthy context and how signal choice, delivery, and freshness vary with each use case.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The introduction explains why authorization policies need trustworthy context and how signal choice, delivery, and freshness vary with each use case.

Key terms: trust signals, authorization context, three-dimensional choice space, signals, freshness, Policy Information Point (PIP), access token, APIs, event streams

12.1 Policy Information Points

This section explains how Policy Information Points assemble authorization context from diverse sources and present it to the PDP for policy evaluation.

Key terms: Policy Information Point (PIP), PDP, signals, attributes and relationships, PIPs, token, API, event bus, cached

12.2 Entities: Principals and resources

This section explains how PDPs turn raw signals into structured principal and resource entities, and why inconsistent entity construction can produce inconsistent authorization decisions.

Key terms: entities, principal, resource, attributes, relationships, PDP, preprocessing layer, policy evaluation engine, structured request, context construction

12.3 Signals and their delivery

This section introduces trust signals as the data that populates entity attributes and shapes authorization context at runtime.

Key terms: trust signals, entity attributes, authorization context, freshness levels

12.3.1 What the signals are

This subsection identifies common authorization signals and explains that the signals needed for a decision depend on its risk and sensitivity.

Key terms: principals, resources, signals, device posture, entitlements, risk, sensitivity, role, ownership, device trust

12.3.2 How signals are delivered

This subsection compares token-based and query-based delivery of authorization signals and explains why systems often combine them.

Key terms: token-based signals, signed claims, PDP, query-based signals, staleness, latency, hybrid models, identity and authentication context, dynamic queries, risk scores

12.3.3 ACME’s delivery choices

This section compares how ACME delivers authorization signals across its platforms and distinguishes getting context to the PDP from keeping that context current.

Key terms: token-based signals, PDP, PIP, hybrid approach, PagerDuty, signals, signal delivery, freshness, caching, revocation

12.4 Freshness, caching, and revocation

This section explains why the freshness of authorization signals matters and why organizations must balance it against system constraints.

Key terms: freshness, signal, authorization decisions, stale, latency, load, assurance, performance, availability

12.4.1 The freshness spectrum

This section compares how embedded, cached, and live authorization signals trade freshness for decision-time performance and upstream dependence.

Key terms: signal freshness, embedded signals, cached signals, live signals, runtime latency, staleness

12.4.2 Caching strategies

This section compares where authorization context can be cached and how per-signal cache lifetimes balance freshness against performance.

Key terms: PDP, PIP, edge or client, invalidation logic, time-to-live (TTL), freshness, on-call status, employment status

12.4.3 Revocation and signal updates

Explains how revocation and proactive signal updates keep authorization decisions responsive to changing information.

Key terms: revocation mechanisms, exposure window, revocation lists, introspection endpoints, dynamic signals, PDP

12.4.4 ACME’s approach to freshness

ACME illustrates how authorization signals need different freshness guarantees depending on their rate of change and the risk and performance needs of each system.

Key terms: freshness, OAuth tokens, device posture, on-call status, cache, cached entity, dependencies, signal, TTL, validation method

12.5 Transmission and integrity of signals

The section explains why trust signals must remain trustworthy as they travel through the authorization system.

Key terms: trust signals, authorization context, PIP, PDP, PEP, authenticity

12.5.1 How signals move

This subsection explains how authorization signals reach a PDP and the tradeoffs among delivery methods.

Key terms: PDP, signed tokens, trusted issuer, APIs, TLS, mutual TLS, tokens, API calls, streams, agents

12.5.2 Protecting signals in transit

The section explains how authenticated connections and signed tokens give the PDP trustworthy provenance for authorization signals.

Key terms: signal, provenance, authenticity, integrity, confidentiality, PDP, TLS, mutual TLS, SPIFFE ID, SVID

12.5.3 Limiting signal scope

This section explains why authorization signals should be limited to what each system needs and how secure, signed event delivery supports trustworthy decisions across organizations.

Key terms: signals, attributes, PDP, enterprise PIP, trust model, policy, secure transmission, context, Shared Signals Framework, SSF

12.6 Authorization context normalization

ACME’s inconsistent authorization context caused equivalent policies to behave differently, motivating a shared normalization layer for its PDPs.

Key terms: authorization context, enterprise PIP, signal normalization layer, common schema, normalized entities, PDP

12.6.1 The normalization layer

The section explains how ACME’s normalization layer turns signals from different sources into consistent, trusted context for policy evaluation.

Key terms: normalization layer, signals, consistent schema, entity data, PDP, Cedar request, shared context layer, shared PIP, normalization, policy vocabulary

12.6.2 Benefits of normalization

This section explains how ACME’s normalized authorization context makes policies reusable, limits data exposure, standardizes signal handling, and speeds adoption of fine-grained authorization.

Key terms: entity structure, time-to-live values, audit logs, enterprise PIP, PDP, signal scope, confidentiality, encryption, signing, verification

12.6.3 Extending SSF inside the organization

ACME applies SSF’s event-driven model inside the organization to share authorization context through consistent, verifiable updates.

Key terms: SSF, event-driven approach, event bus, PDPs, SSF-like semantics, single library, provenance, integrity, enterprise PIP

12.6.4 The broader lesson

ACME’s experience shows how centralized context normalization makes authorization policies consistent and scalable by giving decision engines trustworthy inputs.

Key terms: normalization, authorization data, context, decision engine, shared enterprise service

12.7 Putting it all together

This section brings together the signal and freshness choices that make authorization context trustworthy, showing why ACME configures context differently for different risks.

Key terms: dynamic authorization, context, signals, policy evaluation, token claims, internal context, enterprise PIP, normalization layer, PDPs

12.8 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 11: Authorization for APIs Chapter 13: Using policy engines with existing systems →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.