f880351fd8
Change-Id: I7cdfa81fdf29a26f510bce6804678a343c1fe428 Closes-Bug: #1544964
61 lines
2.2 KiB
INI
61 lines
2.2 KiB
INI
# Use this pipeline for no auth - DEFAULT
|
|
[pipeline:glare-api]
|
|
pipeline = cors healthcheck versionnegotiation osprofiler unauthenticated-context rootapp
|
|
|
|
# Use this pipeline for keystone auth
|
|
[pipeline:glare-api-keystone]
|
|
pipeline = cors healthcheck versionnegotiation osprofiler authtoken context rootapp
|
|
|
|
[composite:rootapp]
|
|
paste.composite_factory = glance.api:root_app_factory
|
|
/: apiversions
|
|
/v0.1: glareapi
|
|
|
|
[app:apiversions]
|
|
paste.app_factory = glance.api.glare.versions:create_resource
|
|
|
|
[app:glareapi]
|
|
paste.app_factory = glance.api.glare.v0_1.router:API.factory
|
|
|
|
[filter:healthcheck]
|
|
paste.filter_factory = oslo_middleware:Healthcheck.factory
|
|
backends = disable_by_file
|
|
disable_by_file_path = /etc/glance/healthcheck_disable
|
|
|
|
[filter:versionnegotiation]
|
|
paste.filter_factory = glance.api.middleware.version_negotiation:GlareVersionNegotiationFilter.factory
|
|
|
|
[filter:context]
|
|
paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory
|
|
|
|
[filter:unauthenticated-context]
|
|
paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory
|
|
|
|
[filter:authtoken]
|
|
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
|
|
delay_auth_decision = true
|
|
|
|
[filter:osprofiler]
|
|
paste.filter_factory = osprofiler.web:WsgiMiddleware.factory
|
|
|
|
[filter:cors]
|
|
paste.filter_factory = oslo_middleware.cors:filter_factory
|
|
oslo_config_project = glance
|
|
oslo_config_program = glance-glare
|
|
# Basic Headers (Automatic)
|
|
# Accept = Origin, Accept, Accept-Language, Content-Type, Cache-Control, Content-Language, Expires, Last-Modified, Pragma
|
|
# Expose = Origin, Accept, Accept-Language, Content-Type, Cache-Control, Content-Language, Expires, Last-Modified, Pragma
|
|
|
|
# Glance Headers
|
|
# Accept = Content-MD5, Accept-Encoding
|
|
|
|
# Keystone Headers
|
|
# Accept = X-Auth-Token, X-Identity-Status, X-Roles, X-Service-Catalog, X-User-Id, X-Tenant-Id
|
|
# Expose = X-Auth-Token, X-Subject-Token, X-Service-Token
|
|
|
|
# Request ID Middleware Headers
|
|
# Accept = X-OpenStack-Request-ID
|
|
# Expose = X-OpenStack-Request-ID
|
|
latent_allow_headers = Content-MD5, Accept-Encoding, X-Auth-Token, X-Identity-Status, X-Roles, X-Service-Catalog, X-User-Id, X-Tenant-Id, X-OpenStack-Request-ID
|
|
latent_expose_headers = X-Auth-Token, X-Subject-Token, X-Service-Token, X-OpenStack-Request-ID
|