| •1 |
--- |
| 2 |
security: |
| 3 |
- | |
| 4 |
[`bug 2153453 <https://launchpad.net/bugs/2153453>`_] |
| 5 |
EC2-derived tokens (``methods: ['ec2credential']``) could still create, |
| 6 |
list, read, or delete trusts (``/v3/OS-TRUST/trusts``), create, list, |
| 7 |
read, or delete application credentials |
| 8 |
(``/v3/users/{user_id}/application_credentials``), and authorize OAuth1 |
| 9 |
request tokens (``PUT |
| 10 |
/v3/OS-OAUTH1/authorize/{request_token_id}``), because none of the |
| 11 |
delegation guards on those endpoints recognized ``ec2credential`` as a |
| 12 |
delegated method. OAuth1 access-token-scoped tokens had the same gap |
| 13 |
for trust management. A stolen EC2 access/secret key pair or OAuth1 |
| 14 |
access token could therefore bootstrap a trust, application credential, |
| 15 |
or OAuth1 access token delegation that outlives revocation of the |
| 16 |
original credential. |
| 17 |
|
| 18 |
These endpoints now use the same primary-auth-method allowlist already |
| 19 |
used by ``/v3/credentials`` and the ``OS-EC2`` compat endpoints: any |
| 20 |
token whose methods aren't entirely primary (interactive) auth methods, |
| 21 |
or that carries a ``trust_id``, is rejected. Application credential |
| 22 |
tokens keep their existing, documented behavior on each endpoint |
| 23 |
(the opt-in trust-escalation escape hatch, and the |
| 24 |
unrestricted/restricted distinction for creating further application |
| 25 |
credentials); OAuth1 and EC2 credentials have no such use case and are |
| 26 |
blocked unconditionally. |
| 27 |
|
| 28 |
upgrade: |
| 29 |
- | |
| 30 |
`bug 2153453 <https://launchpad.net/bugs/2153453>`_: A token issued via |
| 31 |
a custom, third-party auth plugin (for example a site-specific SSO |
| 32 |
integration) is now treated as a delegated credential by default and |
| 33 |
rejected from managing trusts, application credentials, and OAuth1 |
| 34 |
access tokens, unless its method name is listed in the new |
| 35 |
``[auth] additional_primary_auth_methods`` option. Deployments that |
| 36 |
run a custom auth plugin beyond keystone's own built-in methods |
| 37 |
(``password``, ``totp``, ``mapped``, ``saml2``, ``openid``, |
| 38 |
``external``, ``kerberos``, ``x509``, ``token``) must add its method |
| 39 |
name to this option to avoid regressing self-service workflows for |
| 40 |
users authenticated through it, such as switching active project. |