<commit_before>
# Default pipeline
[pipeline:heat-api]
pipeline = versionnegotiation authtoken context apiv1app

# Use the following pipeline for keystone auth
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = keystone
#
[pipeline:heat-api-keystone]
pipeline = versionnegotiation authtoken context apiv1app

# Use the following pipeline for custom cloud backends
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = custombackend
#
[pipeline:heat-api-custombackend]
pipeline = versionnegotiation context custombackendauth apiv1app

# Use the following pipeline to enable transparent caching of image files
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = caching
#
[pipeline:heat-api-caching]
pipeline = versionnegotiation authtoken context cache apiv1app

# Use the following pipeline for keystone auth with caching
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = keystone+caching
#
[pipeline:heat-api-keystone+caching]
pipeline = versionnegotiation authtoken context cache apiv1app

# Use the following pipeline to enable the Image Cache Management API
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = cachemanagement
#
[pipeline:heat-api-cachemanagement]
pipeline = versionnegotiation authtoken context cache cachemanage apiv1app

# Use the following pipeline for keystone auth with cache management
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = keystone+cachemanagement
#
[pipeline:heat-api-keystone+cachemanagement]
pipeline = versionnegotiation auth-context cache cachemanage apiv1app

[app:apiv1app]
paste.app_factory = heat.common.wsgi:app_factory
heat.app_factory = heat.api.openstack.v1:API

[filter:versionnegotiation]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.api.openstack:version_negotiation_filter

[filter:cache]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.api.middleware.cache:CacheFilter

[filter:cachemanage]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.api.middleware.cache_manage:CacheManageFilter

[filter:context]
paste.filter_factory = heat.common.context:ContextMiddleware_filter_factory

[filter:authtoken]
paste.filter_factory = heat.common.auth_token:filter_factory
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
auth_uri = http://127.0.0.1:5000/v2.0

# These must be set to your local values in order for the token
# authentication to work.
admin_tenant_name = service
admin_user = heat
admin_password = <PASSWORD>

[filter:auth-context]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = keystone.middleware.heat_auth_token:KeystoneContextMiddleware

[filter:custombackendauth]
paste.filter_factory = heat.common.custom_backend_auth:filter_factory<commit_msg>heat api paste.ini auth_uri should use auth_port<commit_after>
# Default pipeline
[pipeline:heat-api]
pipeline = versionnegotiation authtoken context apiv1app

# Use the following pipeline for keystone auth
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = keystone
#
[pipeline:heat-api-keystone]
pipeline = versionnegotiation authtoken context apiv1app

# Use the following pipeline for custom cloud backends
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = custombackend
#
[pipeline:heat-api-custombackend]
pipeline = versionnegotiation context custombackendauth apiv1app

# Use the following pipeline to enable transparent caching of image files
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = caching
#
[pipeline:heat-api-caching]
pipeline = versionnegotiation authtoken context cache apiv1app

# Use the following pipeline for keystone auth with caching
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = keystone+caching
#
[pipeline:heat-api-keystone+caching]
pipeline = versionnegotiation authtoken context cache apiv1app

# Use the following pipeline to enable the Image Cache Management API
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = cachemanagement
#
[pipeline:heat-api-cachemanagement]
pipeline = versionnegotiation authtoken context cache cachemanage apiv1app

# Use the following pipeline for keystone auth with cache management
# i.e. in heat-api.conf:
#   [paste_deploy]
#   flavor = keystone+cachemanagement
#
[pipeline:heat-api-keystone+cachemanagement]
pipeline = versionnegotiation auth-context cache cachemanage apiv1app

[app:apiv1app]
paste.app_factory = heat.common.wsgi:app_factory
heat.app_factory = heat.api.openstack.v1:API

[filter:versionnegotiation]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.api.openstack:version_negotiation_filter

[filter:cache]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.api.middleware.cache:CacheFilter

[filter:cachemanage]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.api.middleware.cache_manage:CacheManageFilter

[filter:context]
paste.filter_factory = heat.common.context:ContextMiddleware_filter_factory

[filter:authtoken]
paste.filter_factory = heat.common.auth_token:filter_factory
service_protocol = http
service_host = 127.0.0.1
service_port = 5000
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
auth_uri = http://127.0.0.1:35357/v2.0

# These must be set to your local values in order for the token
# authentication to work.
admin_tenant_name = service
admin_user = heat
admin_password = <PASSWORD>

[filter:auth-context]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = keystone.middleware.heat_auth_token:KeystoneContextMiddleware

[filter:custombackendauth]
paste.filter_factory = heat.common.custom_backend_auth:filter_factory
{'fraction_non_alphanumeric': 0.08738707435719249, 'fraction_numerical': 0.014767199444058373, 'mean_word_length': 5.886363636363637, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7559586', 'n_tokens_mistral': 1955, 'n_tokens_neox': 1831, 'n_words': 429}