EC2 credentials are supported by Keystone only to allow Swift to implement S3 protocol while using Keystone identities. There are no real reasons for ec2credential fernet tokens (after authenticating) being accepted by the Keystone itself. There are many barriers where Keystone explicitly checks and bans such credentials to prevent rescoping or accessing resources belonging to other projects. There have been multiple security issues due to missing guards. Instead of those individual barriers, simply bar such tokens from any Keystone operation except validating the token (which Swift needs to do) and re-authenticating (renewing the token). The latter is questionable on its own, but is kept for now. Solve the problem by simply rejecting the ec2credential issued token in the auth middleware which runs before any authenticated request. The /auth/tokens are unauthenticated and as such are not affected. Change-Id: I4dd5817d20394369cfadd20ccf476a0660760c52 Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
OpenStack Keystone
OpenStack Keystone provides authentication, authorization and service discovery mechanisms via HTTP primarily for use by projects in the OpenStack family. It is most commonly deployed as an HTTP interface to existing identity systems, such as LDAP.
Developer documentation, the source of which is in
doc/source/, is published at:
The API reference and documentation are available at:
The canonical client library is available at:
Documentation for cloud administrators is available at:
The source of documentation for cloud administrators is available at:
Information about our team meeting is available at:
Release notes is available at:
Bugs and feature requests are tracked on Launchpad at:
Future design work is tracked at:
Contributors are encouraged to join IRC
(#openstack-keystone on OFTC):
Source for the project:
For information on contributing to Keystone, see
CONTRIBUTING.rst.