Forward-deployed / AI Knowledge Graph
Access controla quality and safety module

Access control for the technical PM

Who may do what, and where that is decided: authentication vs authorization, OAuth and tokens, RBAC, ABAC, relationship-based access, Keycloak, and access control for AI agents.

Core insight

Every access decision has four inputs: who, what, which object and under what conditions. Most failures are a missing check, not a clever attack.

8 lessons+ recapKeycloak testeddiagrams included

Covers RBAC, ABAC, relationship-based access, and Keycloak.

Every product answers one question thousands of times a day: may this person do this to that, right now? Get it wrong in one direction and users cannot work. Get it wrong in the other and one user reads another's data. The login can be perfect while the check is missing.

This module teaches the models for answering that question, and a real identity server, Keycloak, that puts them into practice. It is written for technical product managers and for engineers who work with them. Each lesson has a plain-language body for decisions, and an "Under the hood" section for the mechanism.

A note on scope. Nothing else in this curriculum teaches these models. Neighbouring lessons cover pieces of the topic for specific settings. Tool permissions, blast radius & the trust boundary covers what an AI tool may do. Memory: session, user & organizational covers boundaries for memory. Multi-tenant isolation covers keeping tenants apart. This module supplies the models underneath them. It stays at the decision level and shows the mechanism where it helps.

The Keycloak lessons were checked by running Keycloak 26.7.5 locally. Where a claim comes from that run, the lesson says so. The Cedar and Rego examples were run too. Standards and some vendor pages could not be opened from the build environment, and the lessons label those claims.

Where the depth lives

If you want the full depth on Read
What an AI tool may do, and tiers of risk Tool permissions, blast radius & the trust boundary
Prompt injection and defences Safety, security & governance
Keeping tenants apart Multi-tenant isolation
Run limits, approval gates and the kill switch Running an agent in production
Memory boundaries and deletion Memory & context
The wider security instincts Security & privacy sense
HTTP and API basics under tokens The request-response contract

The knowledge graph

Access control

Eight lessons · the question, how it travels, a real system, a new caller

Every access decision has the same four inputs: who, what, on which object, under what conditions.

1 · The question and its modelAuthentication vs authorization · enforcement, decision, information, administration points · deny by default
↓ identity and permissions have to cross systems
2 · OAuth 2.0, OIDC and tokensID, access and refresh tokens · PKCE · what an API must validate
↓ three ways to decide
3 · RBACRoles are jobs. Breaks on objects, grows without limit.
4 · ABACAttributes of user, object, action, context.
5 · ReBAC and policy enginesSharing as a graph. Policy as code.
↓ put it into a real identity server
6 · Keycloak coreRealms, clients, roles, groups, tokens. Tested on 26.7.5.
7 · Authorization ServicesResources, scopes, policies, permissions, strategy.
↓ now a model is one of the callers
8 · Access control for AI agentsThe agent carries the user's authority, and no more.

Read it in four passes. The models: how to decide, and which model fits. How it travels: how identity and permissions cross systems as tokens. A real system: how Keycloak implements both. The new caller: why an AI agent needs the same rules, with less trust.

The lessons

Each lesson has a 🎯 For the technical PM briefing, a labelled worked example, an "Under the hood" section for engineers, and a Sources list.

📌 Close out the module: Recap & real-world examples, which ends with a self-test.

The lessons

01

Authentication, authorization and the access-control model

Read lesson →
02

OAuth 2.0, OpenID Connect and tokens

Read lesson →
03

RBAC: roles, groups and where it breaks

Read lesson →
04

ABAC: deciding with attributes and context

Read lesson →
05

ReBAC and policy engines

Read lesson →
06

Keycloak: realms, clients, roles, groups and tokens

Read lesson →
07

Keycloak Authorization Services

Read lesson →
08

Access control for AI agents

Read lesson →
📌

Recap & real-world examples

Read recap →