Overview
Keystone Service is the identity service component of the OpenStack cloud computing platform. It provides a central directory for users, services, and projects (tenants), handling authentication, authorization, and service discovery across an OpenStack deployment.
Key Functions
- Authentication – Validates credentials supplied by users or services and issues token objects that represent authenticated sessions.
- Token Management – Generates, validates, and revokes tokens (both UUID‑based and Fernet tokens) that are used by other OpenStack services to verify requests.
- Service Catalog – Maintains a list of available OpenStack services (e.g., Nova, Glance, Neutron) and their endpoints, which client applications retrieve after authentication.
- Policy Enforcement – Stores and evaluates role‑based access control (RBAC) policies that determine what actions a user or service may perform.
Architecture
Keystone implements a RESTful API exposed over HTTP/HTTPS. It supports multiple back‑end storage options for identity data, including relational databases (MySQL, PostgreSQL), LDAP directories, and federated identity providers (SAML, OpenID Connect). The service can be deployed in high‑availability configurations using load balancers and can operate in both v2.0 and v3 API versions, the latter adding domain support and more granular role assignments.
Historical Context
- Introduction – Keystone was introduced as a separate OpenStack project in 2010, becoming the default identity service by the Havana release (October 2013).
- Evolution – Over successive releases, Keystone added features such as multi‑factor authentication, support for federated identity, and the Fernet token format for improved performance and security.
Integration with OpenStack
All core OpenStack services authenticate against Keystone. During a typical workflow, a client first contacts Keystone to obtain a token, then includes that token in subsequent API calls to services like Nova (compute), Glance (image), or Cinder (block storage). Keystone’s service catalog supplies the appropriate endpoint URLs for these services.
Supported Authentication Methods
- Username/password (via internal or external user stores)
- Token‑based (token exchange)
- Application credentials
- External federated protocols (SAML 2.0, OpenID Connect)
- Multi‑factor authentication plugins
Configuration and Deployment
Keystone’s configuration is managed via the keystone.conf file, where administrators define token providers, authentication back‑ends, and policy files. Deployment can be containerized (e.g., Docker, Kubernetes) or installed directly on Linux distributions using package managers.
References
- OpenStack Keystone documentation (official project documentation)
- Release notes for OpenStack Havana, Icehouse, and subsequent releases
Note: This description reflects information that is publicly documented by the OpenStack project and other reputable technical sources.