Artem Goncharov 910ebab06d Ban ec2credential tokens from Keystone API
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>
2026-07-15 13:15:36 +02:00
2025-12-13 20:28:04 +00:00
2025-05-23 17:47:03 +00:00
2021-08-04 14:25:06 -04:00
2018-05-21 16:24:51 +08:00
2019-04-19 19:30:29 +00:00
2015-11-03 16:12:01 -08:00
2017-09-22 11:07:09 -05:00
2024-11-19 20:45:53 +01:00
2017-10-06 16:10:56 +00:00
2012-02-15 17:48:33 -08:00
2025-10-04 07:06:39 +09:00
2025-04-29 22:25:44 +00:00
2024-03-13 19:27:16 +09:00
2024-10-30 19:11:22 +00:00
2024-07-26 11:42:33 +02:00
2025-12-16 15:12:44 +00:00

OpenStack Keystone

image

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:

https://docs.openstack.org/keystone/latest

The API reference and documentation are available at:

https://docs.openstack.org/api-ref/identity

The canonical client library is available at:

https://opendev.org/openstack/python-keystoneclient

Documentation for cloud administrators is available at:

https://docs.openstack.org/keystone/latest/

The source of documentation for cloud administrators is available at:

https://opendev.org/openstack/openstack-manuals

Information about our team meeting is available at:

https://wiki.openstack.org/wiki/Meetings/KeystoneMeeting

Release notes is available at:

https://docs.openstack.org/releasenotes/keystone

Bugs and feature requests are tracked on Launchpad at:

https://bugs.launchpad.net/keystone

Future design work is tracked at:

https://specs.openstack.org/openstack/keystone-specs

Contributors are encouraged to join IRC (#openstack-keystone on OFTC):

https://wiki.openstack.org/wiki/IRC

Source for the project:

https://opendev.org/openstack/keystone

For information on contributing to Keystone, see CONTRIBUTING.rst.

S
Description
OpenStack Identity (Keystone)
Readme
270 MiB
2 Watchers 0 Forks
Languages
Python 99.5%
Shell 0.5%