diff options
author | Eric Fried <openstack@fried.cc> | 2019-10-08 13:02:29 -0500 |
---|---|---|
committer | Eric Fried <openstack@fried.cc> | 2019-10-09 15:16:07 -0500 |
commit | 18de63deaab792a490e987663d96b6025309b862 (patch) | |
tree | 836861e279cb4e604a85186050773ed48784a300 /etc/nova | |
parent | aebf8d36b8cfc62cc7102c9365215f5c7ba67a18 (diff) | |
download | nova-18de63deaab792a490e987663d96b6025309b862.tar.gz |
Deprecate [api]auth_strategy and noauth2
[api]auth_strategy defaults to `keystone`. The only other choice is
`noauth2`, which activates noauth paste pipelines, which go through
NoAuthMiddleware, which is crusty and bogus. It is used in our
functional tests to avoid having to fixture out keystone, but should not
be used in real deployments, ever. Deprecate the option for removal, and
add a deprecation warning in the paste pipeline if it is used.
When we remove the option, we could just hardcode to `keystone`. At that
time, we also need to move the middleware under the nova.tests package
-- or find a way to get rid of it entirely by instead stubbing out
keystone in tests if that's relatively easy.
Change-Id: I9e2be5423cc0821a628db7a68ad52bbd91264acd
Diffstat (limited to 'etc/nova')
-rw-r--r-- | etc/nova/api-paste.ini | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/nova/api-paste.ini b/etc/nova/api-paste.ini index 8bde418be4..2aaa7bf808 100644 --- a/etc/nova/api-paste.ini +++ b/etc/nova/api-paste.ini @@ -28,13 +28,17 @@ use = call:nova.api.openstack.urlmap:urlmap_factory [composite:openstack_compute_api_v21] use = call:nova.api.auth:pipeline_factory_v21 -noauth2 = cors http_proxy_to_wsgi compute_req_id faultwrap request_log sizelimit osprofiler noauth2 osapi_compute_app_v21 keystone = cors http_proxy_to_wsgi compute_req_id faultwrap request_log sizelimit osprofiler authtoken keystonecontext osapi_compute_app_v21 +# DEPRECATED: The [api]auth_strategy conf option is deprecated and will be +# removed in a subsequent release, whereupon this pipeline will be unreachable. +noauth2 = cors http_proxy_to_wsgi compute_req_id faultwrap request_log sizelimit osprofiler noauth2 osapi_compute_app_v21 [composite:openstack_compute_api_v21_legacy_v2_compatible] use = call:nova.api.auth:pipeline_factory_v21 -noauth2 = cors http_proxy_to_wsgi compute_req_id faultwrap request_log sizelimit osprofiler noauth2 legacy_v2_compatible osapi_compute_app_v21 keystone = cors http_proxy_to_wsgi compute_req_id faultwrap request_log sizelimit osprofiler authtoken keystonecontext legacy_v2_compatible osapi_compute_app_v21 +# DEPRECATED: The [api]auth_strategy conf option is deprecated and will be +# removed in a subsequent release, whereupon this pipeline will be unreachable. +noauth2 = cors http_proxy_to_wsgi compute_req_id faultwrap request_log sizelimit osprofiler noauth2 legacy_v2_compatible osapi_compute_app_v21 [filter:request_log] paste.filter_factory = nova.api.openstack.requestlog:RequestLog.factory @@ -45,6 +49,8 @@ paste.filter_factory = nova.api.compute_req_id:ComputeReqIdMiddleware.factory [filter:faultwrap] paste.filter_factory = nova.api.openstack:FaultWrapper.factory +# DEPRECATED: NoAuthMiddleware will be removed in a subsequent release, +# whereupon this filter will cease to function. [filter:noauth2] paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory |