summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Split option discovery function by middlewareDoug Hellmann2015-08-276-4/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2015-08-271-1/+1
|/ | | | Change-Id: I4b9778404f5653ab439c83707f5b7978d972d05b
* Updated from global requirementsOpenStack Proposal Bot2015-08-261-1/+1
| | | | Change-Id: I462b2e36ec561f31858bcb5da82237c29d119768
* Fix remarks missed on #2098172.7.0Mehdi Abaakouk2015-08-213-8/+17
| | | | | | | | | | 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
* Added new test for CORS Simple Headers2.6.1Michael Krotscheck2015-08-202-0/+37
| | | | | | | | | 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
* Restore backward compat of paste factoryMehdi Abaakouk2015-08-2010-29/+57
| | | | | | | | | | | | | 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
* Merge "Do not dump HealthcheckResult class source"2.6.0Jenkins2015-08-171-1/+1
|\
| * Do not dump HealthcheckResult class sourceDavanum Srinivas2015-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2015-08-131-2/+2
|/ | | | Change-Id: Ia836ea531b965f562a8afff4b5b197ec35946788
* Renamed latent_configuration to _latent_configuration.Michael Krotscheck2015-08-121-8/+8
| | | | | | This hash is private, this patch marks it as such. Change-Id: Ia334f18b7db847c6b2cbb98a6462744530ed59ad
* Added latent properties to CORS middleware.Michael Krotscheck2015-08-123-8/+173
| | | | | | | | | | | | 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
* Merge "Declare some methods static"Jenkins2015-08-072-3/+6
|\
| * Declare some methods staticJulien Danjou2015-08-072-3/+6
| | | | | | | | | | | | Some methods are actually static, so declare them as such. Change-Id: Ic76fd10e2d043bdbe5bdca48d82a341454c1a7d4
* | Allow to get option from paste-deployMehdi Abaakouk2015-08-078-37/+101
| | | | | | | | | | | | | | | | 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
* | Remove usage of oslo.config globalMehdi Abaakouk2015-08-079-75/+91
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Imported Translations from TransifexOpenStack Proposal Bot2015-08-046-12/+12
| | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: Id61bd8bffb05c3d07b2656b4fa7364a86150239e
* Updated from global requirementsOpenStack Proposal Bot2015-08-041-1/+1
| | | | Change-Id: Ic83bad4c1d57c087d4b316b033f53b0cf78869f9
* Imported Translations from Transifex2.5.0OpenStack Proposal Bot2015-07-2911-38/+38
| | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: If4f8bd8d182be73f332dae82322e9be8f8d22327
* Updated from global requirementsOpenStack Proposal Bot2015-07-291-1/+1
| | | | Change-Id: Ib09f808f176ace0455365c44893b689d3651fcd4
* Merge "Added verbose debug logging to CORS"Jenkins2015-07-281-0/+6
|\
| * Added verbose debug logging to CORSMichael Krotscheck2015-07-131-0/+6
| | | | | | | | | | | | | | This patch adds a few additional log statements, which should make debugging this middleware easier for operators. Change-Id: I50636a7960e5130950fe22ac69b4bfe18aa186da
* | Merge "Updated from global requirements"Jenkins2015-07-231-2/+1
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2015-07-221-2/+1
| | | | | | | | | | | | Change-Id: I8fbff54589b9edada072c9fa871bf8f6b41c9397
* | | Imported Translations from TransifexOpenStack Proposal Bot2015-07-236-16/+16
|/ / | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I506d40113d1ceddaccf6c051bbcd60ba12f70939
* | Updated from global requirementsOpenStack Proposal Bot2015-07-171-1/+1
| | | | | | | | Change-Id: I649c1aa12a3458d22ef745f5f614ec76250e3bf2
* | Updated from global requirementsOpenStack Proposal Bot2015-07-153-3/+3
|/ | | | Change-Id: I6a1f892958bc08f6fab21b08925561c36ce7221e
* Merge "Updated from global requirements"2.4.0Jenkins2015-07-130-0/+0
|\
| * Updated from global requirementsOpenStack Proposal Bot2015-07-121-1/+2
| | | | | | | | Change-Id: Iadbb43a426e0d8970c4f09b76495675ba65fb2a1
* | Fix mocking for 1.1.0Doug Hellmann2015-07-122-6/+10
|/ | | | | | | | | | | 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
* Imported Translations from TransifexOpenStack Proposal Bot2015-07-097-26/+32
| | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I3779f445e5b752dbfb04b347ca464e1a3f46ba6a
* Merge "Support PasteDeploy"Jenkins2015-07-013-34/+160
|\
| * Support PasteDeployMichael Krotscheck2015-06-303-34/+160
| | | | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2015-06-301-1/+1
| | | | | | | | Change-Id: I7436bd0fad903c362bdc474397a43447874cd7cc
* | Add tox target to find missing requirementsDavanum Srinivas2015-06-261-0/+8
| | | | | | | | Change-Id: Ib33343c79910e603dcb56357f50ec66a2c6202da
* | Drop use of 'oslo' namespace package2.3.0Doug Hellmann2015-06-241-1/+1
|/ | | | | | | | | | | | | | | | | | | | | 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
* CORS Middleware defers to server response.2.2.0Michael Krotscheck2015-06-222-56/+149
| | | | | | | | | 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
* Merge "Use correct oslo_middleware.base methods in CORS middleware."Jenkins2015-06-221-8/+9
|\
| * Use correct oslo_middleware.base methods in CORS middleware.Michael Krotscheck2015-06-161-8/+9
| | | | | | | | | | | | | | | | 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
* | Merge "Added request to parse_response"Jenkins2015-06-222-1/+87
|\ \ | |/
| * Added request to parse_responseMichael Krotscheck2015-06-162-1/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2015-06-223-11/+10
| | | | | | | | Change-Id: I9ceca37d91690cbb66ad8789b9a72a92cd450170
* | Drop use of 'oslo' namespace packageDoug Hellmann2015-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Updated from global requirementsOpenStack Proposal Bot2015-06-161-0/+0
| | | | | | | | Change-Id: I0885272d44c0976ba1297a2998445b86af171bb2
* | Updated from global requirementsOpenStack Proposal Bot2015-06-111-1/+1
|/ | | | Change-Id: Iaeef4aad648b17e48f3106c8fff042240721f62c
* Merge "Add middleware to support ssl termination proxies"Jenkins2015-06-114-2/+104
|\
| * Add middleware to support ssl termination proxiesCedric Brandily2015-06-094-2/+104
| | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Revert "Remove oslo namespace package""2.1.0Jenkins2015-06-0915-0/+429
|\ \
| * | Revert "Remove oslo namespace package"Doug Hellmann2015-06-0915-0/+429
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit bcbfceb716f7259a9a81e5750b60dc6ddc8f0a63. Related-Bug: #1463478 Change-Id: I37055c4a85ad747de9b177fb0d12f48edc2d63f5
* | | Merge "Remove oslo namespace package"2.0.0Jenkins2015-06-0315-429/+0
|\ \ \ | |/ /
| * | Remove oslo namespace packageDoug Hellmann2015-05-1115-429/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Blueprint remove-namespace-packages Depends-on: I38e7c60ec602c33f74de237b6014b4ac13ee4985 for openstack/nova Change-Id: I3cc1bf69e5e7daccf283d9b9c7f8620d68961de7