summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Filter token data out of catch_errors middleware3.23.1Jamie Lennox2017-01-262-3/+30
| | | | | | | | | If an exception is caught by the catch_errors middleware the entire request is dumped into the log including sensitive information like tokens. Filter that information before outputting the failed request. Closes-Bug: #1628031 Change-Id: I2563403993513c37751576223275350cac2e0937
* Merge "remove superfluous random stuff"3.23.0Jenkins2017-01-171-27/+12
|\
| * remove superfluous random stuffDoug Hellmann2017-01-161-27/+12
| | | | | | | | | | Change-Id: Idb5ae55971e7f76348c224b1bea5c5e19c6278e0 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
* | Merge "Add new middleware to send API data to statsd"Jenkins2017-01-173-0/+289
|\ \ | |/
| * Add new middleware to send API data to statsdJulian Edwards2017-01-043-0/+289
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new StatsMiddleware is a Paste filter that examines the URL path and request method, and sends a stat count and a timer to a statsd host whose name is based on the path/method. If your statsd is configured to send stats to Graphite, you'll end up with stat names of the form: timer.<appname>.<METHOD>.<path>.<from>.<url> Because a dot has special meaning in Graphite, dots in API versions that appear in the path will be replaced with _, so for example v2.1 becomes v2_1, and v1.0 becomes v1_0. Change-Id: Ieaffeded1bf81c0782d88f49b6f5209f11744899
* | Updated from global requirementsOpenStack Proposal Bot2017-01-121-1/+1
| | | | | | | | Change-Id: I9b4a1c61519986c8f9fb2eeb847735841183715a
* | Remove references to Python 3.4Eric Brown2017-01-091-1/+0
| | | | | | | | | | | | | | Now that there exists only a gate job for Python 3.5 and not 3.4, we should remove those references to the 3.4 that is untested. Change-Id: I6264d7d2e1d97291b58b4358f3c397c1fbc320ac
* | Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()"Jenkins2017-01-051-2/+2
|\ \
| * | Replaces uuid.uuid4 with uuidutils.generate_uuid()zhangguoqing2016-12-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Openstack common has a wrapper for generating uuids. We should use that function when generating uuids for consistency. Change-Id: I50cd018b490dea341e6bcfb3034a0244194b4d99 Closes-Bug: #1082248
* | | Merge "Replace six.iteritems() with .items()"Jenkins2016-12-301-2/+1
|\ \ \
| * | | Replace six.iteritems() with .items()gengchc22016-12-091-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.As mentioned in [1], we should avoid using six.iteritems to achieve iterators. We can use dict.items instead, as it will return iterators in PY3 as well. And dict.items/keys will more readable. 2.In py2, the performance about list should be negligible, see the link [2]. [1] https://wiki.openstack.org/wiki/Python3 [2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html Change-Id: Ieb7b8a62ef5b8fae79fa41861ad3910ecad988c8
* | | | Add Constraints supportTony Breeds2016-12-202-1/+36
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding constraints support to libraries is slightly more complex than services as the libraries themselves are listed in upper-constraints.txt which leads to errors that you can't install a specific version and a constrained version. This change adds constraints support by also adding a helper script to edit the constraints to remove oslo.middleware. Change-Id: I069e64daf9558147fdab947341411b58770d3506
* | | Merge "Filter X-Auth-Token in catch_errors"Jenkins2016-12-072-0/+5
|\ \ \ | |/ / |/| |
| * | Filter X-Auth-Token in catch_errorsJiaJunsu2016-11-302-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | If X-Auth-Token is logged in files, it may be caught by attackers. This patch tries to replace token-id by * in log files. Change-Id: Icf0cd9d4da37575d79a0da94ade979793ad0d3fa Closes-Bug:#1646254
* | | Transform healthcheck from filter to an application3.22.0Julien Danjou2016-12-013-17/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The healthcheck middleware has actually wrongly been designed as a filter, whereas it is its own application. This patch fixes that by exporting the healthcheck middleware as an application, while keeping the old behaviour for compatibility with existing deployment. Change-Id: I1ff43c71449f1955267faf6a85f4d70f705db097
* | | Merge "Suggest to use egg based filter_factory rather than fragile full path"Jenkins2016-12-013-7/+7
|\ \ \ | |/ / |/| |
| * | Suggest to use egg based filter_factory rather than fragile full pathJulien Danjou2016-11-293-7/+7
| | | | | | | | | | | | | | | | | | This makes sure that if the module organization change, nothing breaks. Change-Id: Ib4fb1e2210a9cea6b12214e0d1e3570086ac2e68
* | | Merge "Document how to use detailed mode in healthcheck"3.21.0Jenkins2016-11-291-0/+4
|\ \ \ | |/ / |/| |
| * | Document how to use detailed mode in healthcheckMatt Fischer2016-11-281-0/+4
| | | | | | | | | | | | | | | | | | | | | The detailed mode is referenced in the documenation but it is never explained how to enable it. This exposes it in the docs. Change-Id: I136669a7dd0e6e0d293a9b9ea1b685de82404e2b
* | | Remove self-referential link in docsMatt Fischer2016-11-281-3/+0
|/ / | | | | | | | | | | | | | | The link in this file points to the same page that hosts the content. You can see this here: http://docs.openstack.org/developer/oslo.middleware/healthcheck_plugins.html Change-Id: I9645917f8f6d1a586d66ad1a6dddda20f949aeb6
* | Add Python 3.5 classifier and venvmelissaml2016-11-222-1/+2
| | | | | | | | | | | | | | | | Now that there is a passing gate job, we can claim support for Python 3.5 in the classifier. This patch also adds the convenience py35 venv. Change-Id: I73178227e44caee792e6f7e4f4ddf4cfb07e096d
* | Merge "Updated from global requirements"Jenkins2016-11-211-2/+2
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2016-11-091-2/+2
| | | | | | | | | | | | Change-Id: Ibec1f8e1eb921dc16de7e32424e3b8a1fb404738
* | | Enable release notes translationChangBo Guo(gcb)2016-11-161-0/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | Releasenote translation publishing is being prepared. 'locale_dirs' needs to be defined in conf.py to generate translated version of the release notes. Note that this repository might not get translated release notes - or no translations at all - but we add the entry here nevertheless to prepare for it. Change-Id: I399cfbc691637ef6e40ecb1e2c18a9227f84e243
* | Updated from global requirementsOpenStack Proposal Bot2016-11-021-1/+1
| | | | | | | | Change-Id: I89394ebfe69077027322038a13e7a275c43b8a78
* | Imported Translations from ZanataOpenStack Proposal Bot2016-11-021-0/+27
| | | | | | | | | | | | | | For more information about this automatic import see: https://wiki.openstack.org/wiki/Translations/Infrastructure Change-Id: I91b101bd4986278a5d03270fbf8c78020b4be1fa
* | Merge "Updated from global requirements"Jenkins2016-11-022-3/+3
|\ \
| * | Updated from global requirementsOpenStack Proposal Bot2016-11-012-3/+3
| | | | | | | | | | | | Change-Id: Id67ce4576ba7ff2d9b1434fbc87f61e3dbb9f4d8
* | | Allow healthcheck to be configured by oslo.configJamie Lennox2016-11-027-26/+128
|/ / | | | | | | | | | | | | | | | | | | | | | | | | It is standard practice in oslo.middleware to allow configuration via both the paste file and the oslo.config file. Projects such as keystone don't allow shipping default configuration in the paste.ini files. Use the configuration methods provided by the existing base middleware to allow configuing via oslo.config and register the sample options available for the middleware. Closes-Bug: #1634329 Change-Id: I33b7b1f9d945280265eb3b712cb85a2d66616c17
* | Merge "Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'"Jenkins2016-11-011-3/+3
|\ \
| * | Replace 'assertEqual(None, ...)' with 'assertIsNone(...)'howardlee2016-11-011-3/+3
| | | | | | | | | | | | | | | | | | TrivialFix Change-Id: I15aaf281a1f830b88b372124ffe92e4d77bd8fed
* | | TrivialFix: Remove default=None when set value in Configmelissaml2016-10-191-1/+0
|/ / | | | | | | | | | | | | | | | | By default oslo.cfg sets the default values as None [1], There is no need to explicitly do this. [1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829 Change-Id: Ia91d058a2ba434755ff77fc3162c046fbf0776fd
* | Merge "Limit ssl deprecation warning to external importers"3.20.0Jenkins2016-10-171-4/+1
|\ \
| * | Limit ssl deprecation warning to external importersHenry Gessau2016-10-171-4/+1
| | | | | | | | | | | | | | | | | | Closes-Bug: #1629671 Change-Id: I946ee89d9f078e2a766a2b0c89141d067c483cfa
* | | Merge "Changed the home-page link"Jenkins2016-10-171-1/+1
|\ \ \
| * | | Changed the home-page linkmelissaml2016-10-161-1/+1
| |/ / | | | | | | | | | | | | | | | Set the correct link for home-page. Change-Id: I026612ee874e7d926c8b82eab5a60c6601c4e951
* | | Merge "Deprecated set_latent"Jenkins2016-10-172-18/+4
|\ \ \ | |/ / |/| |
| * | Deprecated set_latentMichael Krotscheck2016-05-052-18/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of set_defaults, as well as new documentation features for default values in oslo_config, the CORS middleware has been placed in the odd position where its configuration behaves inconsistently. A user may use set_defaults to set persisted default values that may be overridden, or they may use set_latent to add values that will be applied to every request. As both of these serve essentially the same function, and the latter is only necessary if it is feasible to configure multiple allowed_origins with different CORS properties. With the depecation of multiple configuration blocks, it is no longer necessary to maintain this feature. Therefore, this patch adds the necessary deprecation flags, and removes it from the documentation. Change-Id: Icd44684b3d05ff6a07665348c08adff8245f2523
* | | Merge "Add reno for release notes management"Jenkins2016-10-1310-0/+314
|\ \ \
| * | | Add reno for release notes managementKirill Bespalov2016-06-3010-0/+314
| | | | | | | | | | | | | | | | | | | | | | | | | | | | An initial patch to add reno and create a base directory for release notes Change-Id: I2fa27beb5d7e2c898ce567dce2add00ccdb54afe
* | | | Updated from global requirementsOpenStack Proposal Bot2016-10-121-1/+1
| | | | | | | | | | | | | | | | Change-Id: I6bd7d189b1aadb9c74896fc1352e774570abfd46
* | | | Updated from global requirementsOpenStack Proposal Bot2016-10-071-1/+1
| | | | | | | | | | | | | | | | Change-Id: I1bd0a4c7dbb08d77f9e41b55e40420f1048ceb56
* | | | Merge "make sure we handle the forwarded for headers"Jenkins2016-10-062-0/+31
|\ \ \ \
| * | | | make sure we handle the forwarded for headersGuang Yee2016-09-082-0/+31
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The X-Forwarded-For header or the "for=" component in the Forwarded header (per RFC 7239) is essential for applications to keep track of the originating peer IP. CADF auditing, for example, is relying on REMOTE_ADDR to accurating keeping track of the real client address. If either headers are present, the REMOTE_ADDR WSGI request environment variable will be replaced by the forwarded for address. The Forwarded header have precedence over the X-Forwarded-For header. Change-Id: Ib690e3274cd00d8cfa8a15d341ac433555495ce6
* | | | Updated from global requirementsOpenStack Proposal Bot2016-09-281-2/+2
|/ / / | | | | | | | | | Change-Id: Ic1ee3e75669ce54bdb329fb0d77acb2b2ea78d44
* | | Merge "Show more healthcheck examples"Jenkins2016-08-291-25/+178
|\ \ \
| * | | Show more healthcheck examplesJoshua Harlow2016-08-231-25/+178
| | | | | | | | | | | | | | | | Change-Id: I164b192f85ee9232a92ad7a5e99a3af647813dc8
* | | | Merge "Remove pot files"3.19.0Jenkins2016-08-242-50/+0
|\ \ \ \
| * | | | Remove pot filesAndreas Jaeger2016-08-242-50/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not store pot files anymore in repositories, instead they are published at http://tarballs.openstack.org/translation-source/oslo.middleware/master/ after each commit and thus always accurate. Remove these outdated and obsoleted files. Change-Id: I3af3a1f4d73fac1505c32de82bffc48a376eeecd
* | | | | Merge "Fix inline docstring to use default path (not /status)"Jenkins2016-08-241-2/+2
|\ \ \ \ \ | | |/ / / | |/| | |