keystone/keystone/api
Colleen Murphy ab89ea7490 Check timestamp of signed EC2 token request
EC2 token requests contain a signature that signs the entire request,
including the access timestamp. While the signature is checked, the
timestamp is not, and so these signed requests remain valid
indefinitely, leaving the token API vulnerable to replay attacks. This
change introduces a configurable TTL for signed token requests and
ensures that the timestamp is actually validated against it.

The check will work for either an AWS Signature v1/v2 'Timestamp'
parameter[1] or the AWS Signature v4 'X-Aws-Date' header or
parameter[2].

Although this technically adds a new feature and the default value of
the feature changes behavior, this change is required to protect
credential holders and therefore must be backported to all supported
branches.

[1] https://docs.aws.amazon.com/general/latest/gr/signature-version-2.html
[2] https://docs.aws.amazon.com/general/latest/gr/sigv4-date-handling.html

Change-Id: Idb10267338b4204b435df233c636046a1ce5711f
Closes-bug: #1872737
2020-04-28 11:45:24 -07:00
..
_shared Check timestamp of signed EC2 token request 2020-04-28 11:45:24 -07:00
__init__.py Revert "Add API for /v3/access_rules_config" 2019-05-28 08:38:39 -07:00
auth.py NIT: Fix spelling 2020-03-06 12:52:15 +05:30
credentials.py Remove six usage 2020-01-30 06:06:51 +00:00
discovery.py Add expiring user group memberships on mapped authentication 2020-04-07 19:30:57 -04:00
domains.py Remove six usage 2020-01-30 06:06:51 +00:00
ec2tokens.py Remove six usage 2020-01-30 06:06:51 +00:00
endpoints.py Remove six usage 2020-01-30 06:06:51 +00:00
groups.py Remove six usage 2020-01-30 06:06:51 +00:00
limits.py Remove six usage 2020-01-30 06:06:51 +00:00
os_ep_filter.py Remove six usage 2020-01-30 06:06:51 +00:00
os_federation.py Expiring Group Memberships API - Allow set idp authorization_ttl 2020-04-09 01:59:58 +00:00
os_inherit.py Remove six usage 2020-01-30 06:06:51 +00:00
os_oauth1.py Remove six usage 2020-01-30 06:06:51 +00:00
os_revoke.py Move json_home "extension" rel functions 2018-08-16 20:49:01 +00:00
os_simple_cert.py Fix missing print format and missing ws between words 2019-08-06 08:29:34 +08:00
policy.py Remove six usage 2020-01-30 06:06:51 +00:00
projects.py Remove six usage 2020-01-30 06:06:51 +00:00
regions.py Remove six usage 2020-01-30 06:06:51 +00:00
registered_limits.py Remove six usage 2020-01-30 06:06:51 +00:00
role_assignments.py Fix validation of role assignment subtree list 2019-09-17 23:12:47 -07:00
role_inferences.py Update hacking for Python3 2020-04-15 07:17:58 +02:00
roles.py Remove six usage 2020-01-30 06:06:51 +00:00
s3tokens.py Remove six usage 2020-01-30 06:06:51 +00:00
services.py Remove six usage 2020-01-30 06:06:51 +00:00
system.py Remove six usage 2020-01-30 06:06:51 +00:00
trusts.py Remove six usage 2020-01-30 06:06:51 +00:00
users.py Remove six usage 2020-01-30 06:06:51 +00:00