Files
nova/nova
melanie witt 41c64b94b0 Enable use of service user token with admin context
When the [service_user] section is configured in nova.conf, nova will
have the ability to send a service user token alongside the user's
token. The service user token is sent when nova calls other services'
REST APIs to authenticate as a service, and service calls can sometimes
have elevated privileges.

Currently, nova does not however have the ability to send a service user
token with an admin context. This means that when nova makes REST API
calls to other services with an anonymous admin RequestContext (such as
in nova-manage or periodic tasks), it will not be authenticated as a
service.

This adds a keyword argument to service_auth.get_auth_plugin() to
enable callers to provide a user_auth object instead of attempting to
extract the user_auth from the RequestContext.

The cinder and neutron client modules are also adjusted to make use of
the new user_auth keyword argument so that nova calls made with
anonymous admin request contexts can authenticate as a service when
configured.

Related-Bug: #2004555

Change-Id: I14df2d55f4b2f0be58f1a6ad3f19e48f7a6bfcb4
2023-05-10 14:52:59 +00:00
..
2023-04-20 18:33:55 +00:00
2022-05-30 17:40:00 +05:30
2023-02-01 17:00:03 +00:00
2022-08-10 03:57:11 +00:00
2023-03-08 14:39:50 +01:00
2023-03-27 10:43:58 -04:00
2023-04-20 18:33:55 +00:00
2021-02-25 16:01:43 -05:00
2021-11-08 12:37:27 +00:00
2022-03-08 16:16:11 +00:00
2022-08-04 17:36:23 +05:30