From fbb3e773f017e90286f7e988c4167c3758edba45 Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Tue, 3 Mar 2015 15:08:28 +0100 Subject: [PATCH] Remove the kesytone admin token from swift The keystone admin token supposed to be used only for setting up keystone and it should not be used in any other service config. Change-Id: Iaa9be1878e89a6bc3a84a0c57fc6f5cecc371d2f --- lib/swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/swift b/lib/swift index 8a96615d01..4a63500b54 100644 --- a/lib/swift +++ b/lib/swift @@ -441,16 +441,15 @@ function configure_swift { if is_service_enabled swift3; then cat <>${SWIFT_CONFIG_PROXY_SERVER} -# NOTE(chmou): s3token middleware is not updated yet to use only -# username and password. [filter:s3token] paste.filter_factory = keystoneclient.middleware.s3_token:filter_factory auth_port = ${KEYSTONE_AUTH_PORT} auth_host = ${KEYSTONE_AUTH_HOST} auth_protocol = ${KEYSTONE_AUTH_PROTOCOL} cafile = ${SSL_BUNDLE_FILE} -auth_token = ${SERVICE_TOKEN} -admin_token = ${SERVICE_TOKEN} +admin_user = swift +admin_tenant_name = ${SERVICE_TENANT_NAME} +admin_password = ${SERVICE_PASSWORD} [filter:swift3] use = egg:swift3#swift3