Browse Source

Add oslo request id middleware to keystone paste pipeline

This commit adds the oslo middleware request id middleware into
keystones paste pipeline to add request id's to the response headers

Change-Id: I475d60460df6b1b88942bd8347b6bc443dbf4c8a
Matthew Treinish 4 years ago
parent
commit
d333eac4ef
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      etc/keystone-paste.ini

+ 6
- 3
etc/keystone-paste.ini View File

@@ -3,6 +3,9 @@
3 3
 [filter:debug]
4 4
 paste.filter_factory = keystone.common.wsgi:Debug.factory
5 5
 
6
+[filter:request_id]
7
+paste.filter_factory = oslo_middleware:RequestId.factory
8
+
6 9
 [filter:build_auth_context]
7 10
 paste.filter_factory = keystone.middleware:AuthContextMiddleware.factory
8 11
 
@@ -66,17 +69,17 @@ paste.app_factory = keystone.service:admin_app_factory
66 69
 [pipeline:public_api]
67 70
 # The last item in this pipeline must be public_service or an equivalent
68 71
 # application. It cannot be a filter.
69
-pipeline = sizelimit url_normalize build_auth_context token_auth admin_token_auth json_body ec2_extension user_crud_extension public_service
72
+pipeline = sizelimit url_normalize request_id build_auth_context token_auth admin_token_auth json_body ec2_extension user_crud_extension public_service
70 73
 
71 74
 [pipeline:admin_api]
72 75
 # The last item in this pipeline must be admin_service or an equivalent
73 76
 # application. It cannot be a filter.
74
-pipeline = sizelimit url_normalize build_auth_context token_auth admin_token_auth json_body ec2_extension s3_extension crud_extension admin_service
77
+pipeline = sizelimit url_normalize request_id build_auth_context token_auth admin_token_auth json_body ec2_extension s3_extension crud_extension admin_service
75 78
 
76 79
 [pipeline:api_v3]
77 80
 # The last item in this pipeline must be service_v3 or an equivalent
78 81
 # application. It cannot be a filter.
79
-pipeline = sizelimit url_normalize build_auth_context token_auth admin_token_auth json_body ec2_extension_v3 s3_extension simple_cert_extension revoke_extension federation_extension service_v3
82
+pipeline = sizelimit url_normalize request_id build_auth_context token_auth admin_token_auth json_body ec2_extension_v3 s3_extension simple_cert_extension revoke_extension federation_extension service_v3
80 83
 
81 84
 [app:public_version_service]
82 85
 paste.app_factory = keystone.service:public_version_app_factory

Loading…
Cancel
Save