Current Series Release Notes¶
29.0.0-45¶
New Features¶
The JWS token signing algorithm is now configurable via two new options in
[jwt_tokens]:jws_algorithmselects the algorithm used when signing new tokens (defaultES256, preserving backward compatibility). Supported values areES256,ES384,ES512, andEdDSA.jws_accepted_algorithmslists the algorithms accepted during token validation. This allows operators to accept tokens signed with a previous algorithm during a migration window.
Changing the signing algorithm requires regenerating the JWS key pair via
keystone-manage create_jws_keypair, since each algorithm uses a different key type.
Upgrade Notes¶
[bug 2148398] The
identity:create_trustpolicy rule now uses%(target.trust.trustor_user_id)sinstead of%(trust.trustor_user_id)s. The trust data from the request body is now passed explicitly viatarget_attrrather than relying on the JSON body merge. This alignscreate_trustwith all other trust policy rules which already use thetarget.trust.*prefix. Deployments that override theidentity:create_trustpolicy and reference%(trust.trustor_user_id)smust update to%(target.trust.trustor_user_id)s.
[bug 2150089] Two new
[security_compliance]options control opt-in insecure behaviour for operators with workflows that break after this upgrade:allow_insecure_admin_trust_cross_project_credentials_access(defaultFalse): set toTrueif admin-role trusts or application credentials need to access credentials across multiple projects (e.g. Mistral cron triggers syncing EC2 credentials system-wide).allow_insecure_application_credential_trust_escalation(defaultFalse): set toTrueif application credentials must create or manage trusts (e.g. Heat stacks authenticated via application credentials). Use OIDC federation flows (v3oidcclientcredentials,v3oidcdeviceauthz) as the proper long-term alternative.Both options are intentionally named to signal that enabling them is insecure. Migrate affected workflows away from these options.
[bug 2152573] The default behaviour of
DELETE /v3/auth/tokenshas changed: revoking a token now also revokes all tokens derived from it. To revoke only the specific token without affecting derived sessions, add?cascade=falseto the request.
bug 2153453: A token issued via a custom, third-party auth plugin (for example a site-specific SSO integration) is now treated as a delegated credential by default and rejected from managing trusts, application credentials, and OAuth1 access tokens, unless its method name is listed in the new
[auth] additional_primary_auth_methodsoption. Deployments that run a custom auth plugin beyond keystone’s own built-in methods (password,totp,mapped,saml2,openid,external,kerberos,x509,token) must add its method name to this option to avoid regressing self-service workflows for users authenticated through it, such as switching active project.
LP#2154645: If you have overridden
identity:list_role_assignmentsoridentity:list_role_assignments_for_treeinpolicy.yaml, addnot None:%(target.domain_id)sto any branch that containsdomain_id:%(target.domain_id)s, for example:identity:list_role_assignments_for_tree: >- (rule:admin_required) or (role:reader and system_scope:all) or (role:reader and domain_id:%(target.domain_id)s and not None:%(target.domain_id)s)
Deployments using the default policies are protected automatically.
LP#2158538: Authenticating with the token method using an application credential or EC2 credential token is now rejected with HTTP 403 (Forbidden). Previously, application credential tokens without an explicit scope would fall through to the user’s default project, and EC2 credential tokens could be re-scoped to any project. Callers that relied on exchanging an application credential token via the token method must authenticate with the application credential directly instead.
Two new configuration options have been added to the
[jwt_tokens]section:jws_algorithmandjws_accepted_algorithms. The defaults (ES256and['ES256']) preserve the previous behavior, so no action is required for existing deployments.To migrate to a new algorithm, operators should:
Add the new algorithm to
jws_accepted_algorithmsalongside the current one.Generate a new key pair with
keystone-manage create_jws_keypair.Set
jws_algorithmto the new algorithm.After all tokens signed with the old algorithm have expired, remove the old algorithm from
jws_accepted_algorithms.
Critical Issues¶
[bug 2148398] The RBAC enforcer unconditionally merged the raw JSON request body into the policy enforcement dictionary after trusted target data had been set from the database. An attacker could include a
targetkey in the JSON body to overwrite database-sourced RBAC target attributes, causing all%(target.*)spolicy substitutions to evaluate against attacker-controlled values. This affected 88 endpoint/method combinations across all Keystone API resource areas. Any authenticated user could exploit this to read every credential secret in the deployment, create EC2 credentials for arbitrary users, or revoke other users’ tokens. A domain administrator could escalate to full cloud admin by creating inherited role grants on other domains. The vulnerability has been present since the Rocky release (14.0.0).
Security Issues¶
[bug 2148398] The RBAC policy enforcer now namespaces JSON request body data under a
request_bodykey in the policy dictionary instead of merging it at the top level. This prevents user-controlled input from overwriting security-critical keys such astarget(populated from the database bybuild_targetortarget_attr) and URL path parameters likeuser_id. All upstream policy rules are unaffected by this change. Deployments with custom policy rules that reference JSON body fields directly via%(field_name)ssubstitutions (not undertarget.) will need to update those references to%(request_body.field_name)s.
[bug 2150089] Delegated tokens (trusts, application credentials, OAuth1 access tokens) are now restricted to credentials whose
project_idmatches the token’s project scope. This closes a cross-project lateral movement vector where a delegated token could read, modify, or delete credentials belonging to a different project, including EC2 keys and TOTP/MFA seed bindings.Application credential tokens are now blocked from all trust operations (create, delete, list, get). Allowing an application credential to bootstrap a trust creates a new delegation context whose token can access authentication material outside the delegation chain, breaking the audit trail. The
unrestrictedflag governs credential management, not trust management.
[bug 2152573]
DELETE /v3/auth/tokensnow revokes the entire token chain (all tokens derived via rescoping) in addition to the specific token. This closes an attack where an attacker who obtained a project-scoped token could maintain access indefinitely by rescoping before expiry, even after the victim revoked the parent token. Pass?cascade=falseto revert to the previous single-token revocation behaviour.
[bug 2152573] A new endpoint
DELETE /v3/users/{user_id}/tokensrevokes all tokens for a user. Users may call it for their own account; administrators may call it for any user. This provides a self-service session-invalidation path for LDAP, federated, and OIDC users who cannot change their Keystone password.
[bug 2152573] When token validation detects that a user has been disabled in an external read-only backend (e.g. LDAP), Keystone now persists a durable revocation event. Previously, re-enabling the account in the external directory would silently revive all tokens that were valid before the account was disabled, including tokens held by an attacker.
[bug 2152932] Fixed a database connection leak that could affect deployments using a MySQL backend for federation service provider or identity mapping data. Under sustained token validation or federation-related API activity, keystone workers could retain database connections longer than intended and eventually exhaust their local connection pools. Operators may have observed intermittent API failures, request timeouts, or MySQL connection exhaustion until affected worker processes were restarted.
[bug 2153453] EC2-derived tokens (
methods: ['ec2credential']) could still create, list, read, or delete trusts (/v3/OS-TRUST/trusts), create, list, read, or delete application credentials (/v3/users/{user_id}/application_credentials), and authorize OAuth1 request tokens (PUT /v3/OS-OAUTH1/authorize/{request_token_id}), because none of the delegation guards on those endpoints recognizedec2credentialas a delegated method. OAuth1 access-token-scoped tokens had the same gap for trust management. A stolen EC2 access/secret key pair or OAuth1 access token could therefore bootstrap a trust, application credential, or OAuth1 access token delegation that outlives revocation of the original credential.These endpoints now use the same primary-auth-method allowlist already used by
/v3/credentialsand theOS-EC2compat endpoints: any token whose methods aren’t entirely primary (interactive) auth methods, or that carries atrust_id, is rejected. Application credential tokens keep their existing, documented behavior on each endpoint (the opt-in trust-escalation escape hatch, and the unrestricted/restricted distinction for creating further application credentials); OAuth1 and EC2 credentials have no such use case and are blocked unconditionally.
LP#2154645: Any user holding
role:readeron any project could list all role assignments under any domain by passing a domain ID asscope.project.idtoGET /v3/role_assignments?include_subtree. Domain projects storedomain_id=null, which matched thenulldomain_idof any project-scoped token in the oslo.policy string comparison, bypassing the domain-reader restriction. An explicitnot None:%(target.domain_id)sguard has been added to the affected policy rules.
LP#2158538: Tokens issued via delegated credentials (application credentials and EC2 credentials) could be exchanged for a broader-scoped token using the token authentication method.
An application credential token could omit the
scopeparameter during token-method reauthentication, causing the new token to fall through to the user’s default project, escaping the application credential’s project binding. EC2 credential tokens had no such guard and could be re-scoped to any project the underlying user has a role on, not just the project the EC2 credential was bound to.
Bug Fixes¶
[bug 2134925] Fixed a crash (HTTP 500) when listing sub-resource endpoints with a
limitquery parameter (e.g.GET /v3/users/{user_id}/projects?limit=1). Thewrap_collectionmethod now includes URL path parameters fromflask.request.view_argswhen building thenextpagination link, so thatflask.url_for()can correctly resolve sub-resource routes.
[bug 2161103] LDAP-backed domains do not support marker-based (keyset) pagination. LDAP has no native keyset pagination, and the session cookie required for native LDAP paging cannot survive across stateless HTTP requests in a multi-node deployment. Attempting client-side emulation (fetching all entries to find the marker position) would incur a full directory scan on every page request, which is unacceptable for large directories.
The
list_limitsetting continues to cap the number of entries returned per request. Callers should not rely onnextlink markers for LDAP-backed domains.
Fixed token validation to correctly handle mixed key types in the public key repository. Previously,
jwt.decode()could raiseInvalidKeyErrororInvalidAlgorithmErrorwhen encountering public keys of a different type than expected, causing token validation to fail instead of trying the next available key. These exceptions are now handled gracefully during the key iteration loop.
Fixed
jwt.decode()call in_decode_token_from_idto passalgorithmsas a list instead of a string. While PyJWT accepted the string form, it was inconsistent with the documented API.