Skip to content

Commit 6aef757

Browse files
committed
Update glance pipelines to use context middleware
* Glance no longer depends on keystone.middleware.glance_auth_token Change-Id: Ie634a007f710792eda810e479fae463c158ebc5f
1 parent 09407d9 commit 6aef757

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

files/glance-api-paste.ini

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pipeline:glance-api]
22
#pipeline = versionnegotiation context apiv1app
33
# NOTE: use the following pipeline for keystone
4-
pipeline = versionnegotiation authtoken auth-context apiv1app
4+
pipeline = versionnegotiation authtoken context apiv1app
55

66
# To enable Image Cache Management API replace pipeline with below:
77
# pipeline = versionnegotiation context imagecache apiv1app
@@ -38,12 +38,6 @@ auth_host = %KEYSTONE_AUTH_HOST%
3838
auth_port = %KEYSTONE_AUTH_PORT%
3939
auth_protocol = %KEYSTONE_AUTH_PROTOCOL%
4040
auth_uri = %KEYSTONE_SERVICE_PROTOCOL%://%KEYSTONE_SERVICE_HOST%:%KEYSTONE_SERVICE_PORT%/
41-
# FIXME(dtroyer): remove admin_token after auth_token is updated
42-
admin_token = %SERVICE_TOKEN%
4341
admin_tenant_name = %SERVICE_TENANT_NAME%
4442
admin_user = %SERVICE_USERNAME%
4543
admin_password = %SERVICE_PASSWORD%
46-
47-
[filter:auth-context]
48-
paste.filter_factory = glance.common.wsgi:filter_factory
49-
glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware

files/glance-registry-paste.ini

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pipeline:glance-registry]
22
#pipeline = context registryapp
33
# NOTE: use the following pipeline for keystone
4-
pipeline = authtoken auth-context context registryapp
4+
pipeline = authtoken context registryapp
55

66
[app:registryapp]
77
paste.app_factory = glance.common.wsgi:app_factory
@@ -22,13 +22,6 @@ auth_host = %KEYSTONE_AUTH_HOST%
2222
auth_port = %KEYSTONE_AUTH_PORT%
2323
auth_protocol = %KEYSTONE_AUTH_PROTOCOL%
2424
auth_uri = %KEYSTONE_SERVICE_PROTOCOL%://%KEYSTONE_SERVICE_HOST%:%KEYSTONE_SERVICE_PORT%/
25-
# FIXME(dtroyer): remove admin_token after auth_token is updated
26-
admin_token = %SERVICE_TOKEN%
2725
admin_tenant_name = %SERVICE_TENANT_NAME%
2826
admin_user = %SERVICE_USERNAME%
2927
admin_password = %SERVICE_PASSWORD%
30-
31-
[filter:auth-context]
32-
context_class = glance.registry.context.RequestContext
33-
paste.filter_factory = glance.common.wsgi:filter_factory
34-
glance.filter_factory = keystone.middleware.glance_auth_token:KeystoneContextMiddleware

0 commit comments

Comments
 (0)