| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Create separate option discovery functions for each piece of middleware,
so an application that only uses one piece can include only those
options in its sample configuration file.
Test the results with some unit tests that simply ensure the functions
do not raise exceptions, and by adding configuration options to the
documentation for the library, using the new integration of oslo.config
with sphinx.
Change-Id: I4c777cd70c063441f430c48ab1f9c9cac2c1fc75
|
|/
|
|
| |
Change-Id: I4b9778404f5653ab439c83707f5b7978d972d05b
|
|
|
|
| |
Change-Id: I462b2e36ec561f31858bcb5da82237c29d119768
|
|
|
|
|
|
|
|
|
|
| |
Some useful comments have been done on review
https://review.openstack.org/#/c/209817 after it have
been merged.
This change fixes them.
Change-Id: I4e36c354576510665d8aa1c95d8e82696d80ce0c
|
|
|
|
|
|
|
|
|
| |
It turns out that the simple header list outlined by the CORS
specification includes additional headers that were missed
during the initial implementation. This patch adds those
headers, and includes a test to enforce it moving forward.
Change-Id: I06f28102d1fa59d7c647fd08d69ea60e277a653f
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Some application inherits from our middleware class
When we homogenize the signature and configuration handling
of all middlewares we break them.
This change fixes that.
Closes-bug: #1486735
Change-Id: I40c3d59110c6f8c5a1b3d3ccc734dc441069b025
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If verbose is true, the class definition is printed just
before being built. We don't really need to print this into
our logs, so we should drop the verbose parameter (as it
defaults to False anyway).
Closes-Bug: #1482744
Change-Id: Ic6cb7fe9c87151bb0c318d060fd88bb2e1977404
|
|/
|
|
| |
Change-Id: Ia836ea531b965f562a8afff4b5b197ec35946788
|
|
|
|
|
|
| |
This hash is private, this patch marks it as such.
Change-Id: Ia334f18b7db847c6b2cbb98a6462744530ed59ad
|
|
|
|
|
|
|
|
|
|
|
|
| |
Latent properties allow a consumer of this middleware to declare
system-required headers and methods options. For instance, if an
API exposes version-negotiation headers, these may be hard coded
when the middleware is attached.
This only works when the middleware is explicitly used. It does
not work in paste configuration.
Change-Id: Ic55b1af23603a0d83a32d20054c18e50367be8fb
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Some methods are actually static, so declare them as such.
Change-Id: Ic76fd10e2d043bdbe5bdca48d82a341454c1a7d4
|
| |
| |
| |
| |
| |
| |
| |
| | |
This change allows any middleware that use oslo.config to
be configured via paste-deploy, like the cors does.
Related-bug: #1482086
Change-Id: Ibb3e951b45b51c9bc602c9113df18a58226d92d1
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently application that doesn't use the global configuration object
have to rely on hack to setup the global oslo config object for each middleware
it want to use.
For example, gnocchi have its own middleware loader and add crap to load
keystonemiddleware:
https://github.com/openstack/gnocchi/blob/master/gnocchi/rest/app.py#L140
And it can't use oslo.middleware that relies on the global conf object.
Also aodh (use 'paste' for middleware) have to hack the global
configuration object for each middlewares it want to use by code...
https://review.openstack.org/#/c/208632/1/aodh/service.py
But middleware are optional deployer stuffs, we should not write any
code for them...
This change allows application to use paste-deploy (or any middleware
loader) without enforcing the application to use the global oslo.config object.
If the middleware want to use oslo.config it should load the
configuration file himself (and fallback to the global one if any)
The proposed paste configuration to allow this is:
[filter:cors]
paste.filter_factory = oslo.middleware:cors
oslo_config_project = aodh
So the cors middleware can find and load the aodh config and
what is it interested in.
Also, some of them use oslo.config local, some other the global object.
Some can be loaded by an middleware loader like paste, some other not.
This change make consistent the way we bootstrap all middlewares.
Closes-bug: #1482086
Change-Id: Iad197d1f3a386683d818b59718df34e14e15ca5c
|
|
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: Id61bd8bffb05c3d07b2656b4fa7364a86150239e
|
|
|
|
| |
Change-Id: Ic83bad4c1d57c087d4b316b033f53b0cf78869f9
|
|
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: If4f8bd8d182be73f332dae82322e9be8f8d22327
|
|
|
|
| |
Change-Id: Ib09f808f176ace0455365c44893b689d3651fcd4
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
This patch adds a few additional log statements, which should
make debugging this middleware easier for operators.
Change-Id: I50636a7960e5130950fe22ac69b4bfe18aa186da
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I8fbff54589b9edada072c9fa871bf8f6b41c9397
|
|/ /
| |
| |
| |
| |
| |
| | |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I506d40113d1ceddaccf6c051bbcd60ba12f70939
|
| |
| |
| |
| | |
Change-Id: I649c1aa12a3458d22ef745f5f614ec76250e3bf2
|
|/
|
|
| |
Change-Id: I6a1f892958bc08f6fab21b08925561c36ce7221e
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Iadbb43a426e0d8970c4f09b76495675ba65fb2a1
|
|/
|
|
|
|
|
|
|
|
|
| |
Call the right assertion method on the mock in
test_disablefile_unconfigured, and fix the way the mock is set up so
it works.
Combine this with the change to pin the version of mock used on python
2.6 and to raise the minimum version of mock used elsewhere.
Change-Id: I1ac9f9796227a860df75d4c72464479dbe66258c
|
|
|
|
|
|
|
| |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I3779f445e5b752dbfb04b347ca464e1a3f46ba6a
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch removes the oslo_config specific code out of the
middleware's class, and instead provides a factory method by which
this middleware may be constructed. It then also provides a similar
factory method that supports pastedeploy's filter_factory protocol.
Change-Id: I68d9c5439707a624aa24f3dbe7bbfd616b382a6d
|
| |
| |
| |
| | |
Change-Id: I7436bd0fad903c362bdc474397a43447874cd7cc
|
| |
| |
| |
| | |
Change-Id: Ib33343c79910e603dcb56357f50ec66a2c6202da
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: Id86fa35bc81d9d24211d8553ac2ef9e91949ba7a
|
|
|
|
|
|
|
|
|
| |
If this middleware detects a server response with existing CORS
headers, it deactivates itself in favor of what is already provided.
This is to support API's (such as Swift) that permit configurable
CORS rules for exposed endpoints.
Change-Id: Ia416bcf6b4cc28025b8204e2eb936a491e8538a6
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This patch modifies the CORS middleware to use the __call__ logic
from its parent class, rather than overriding it. Logic has been
moved into process_request and process_response accordingly.
Change-Id: Ia5907ec37c1103a9b9a24d549a81822b1b3ad332
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds the 'request' parameter to the base middleware's
parse_response method. It is intended to support middleware whose
logic is conditional on the request. For example, response header
decorators that respond only to the presence of certain request
headers (If-Not-Match, If-Modified-Since, Origin, etc).
The request parameter has been made optional, in order to be
backwards compatible with older middleware. Additional inspection
has been provided, as well as tests for backwards compatibility.
Change-Id: I5fa94f74765f14bcf79c48ba4c813929da449be3
|
| |
| |
| |
| | |
Change-Id: I9ceca37d91690cbb66ad8789b9a72a92cd450170
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: I7344c794b73aca1e0dcad681a4c43e3a66dd2eb3
|
| |
| |
| |
| | |
Change-Id: I0885272d44c0976ba1297a2998445b86af171bb2
|
|/
|
|
| |
Change-Id: Iaeef4aad648b17e48f3106c8fff042240721f62c
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change defines SSLMiddleware middleware which enables OpenStack
services behind SSL termination proxies to return urls with original
protocol scheme.
SSLMiddleware is based on heat SSLMiddleware class.
Change-Id: I72f8da160ced6ac80fdac743c00ea3f7ffb1f57c
Closes-Bug: #1444490
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit bcbfceb716f7259a9a81e5750b60dc6ddc8f0a63.
Related-Bug: #1463478
Change-Id: I37055c4a85ad747de9b177fb0d12f48edc2d63f5
|
|\ \ \
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Blueprint remove-namespace-packages
Depends-on: I38e7c60ec602c33f74de237b6014b4ac13ee4985
for openstack/nova
Change-Id: I3cc1bf69e5e7daccf283d9b9c7f8620d68961de7
|