Identity, scope and policy

Authentication establishes identity. Authorization decides whether that identity may perform an action in the requested scope. Keystone supplies identities, role assignments, tokens and a service catalog. The target service applies its policy when deciding the action.

A domain groups administrative objects such as users, groups and projects. A project scopes resources and role assignments. A group lets a role assignment apply to a collection of users. A role is a named grant interpreted by service policy. A service catalog maps services to endpoints, which are API URLs. A catalog region is a deployment label that can be geographical.

Trace Alice’s request

Alice belongs to domain emea. Assume her compute-user role in project acme permits creating servers there. She authenticates and obtains an appropriately scoped token. Her client locates the Nova endpoint in the catalog and sends the request with that token. Nova checks the token context and evaluates its policy. Alice may have an admin role in engineering without having that role in acme.

Keystone can integrate with external identity backends. Horizon can obtain a token or reuse one and translate a form submission into an API request. Tokens and endpoints solve separate problems. The token establishes request context, while the endpoint tells the client where to send it.

Retrieval

Alice can authenticate and finds the Nova endpoint, but has no role allowing server creation in acme. What happens? Endpoint discovery can succeed while the service denies the action based on its policy.

Source: Lecture 09 - OpenStack, printed slides 56–65.