| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: Idb5ae55971e7f76348c224b1bea5c5e19c6278e0
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Change-Id: I9b4a1c61519986c8f9fb2eeb847735841183715a
|
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Openstack common has a wrapper for generating uuids. We should
use that function when generating uuids for consistency.
Change-Id: I50cd018b490dea341e6bcfb3034a0244194b4d99
Closes-Bug: #1082248
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This makes sure that if the module organization change, nothing breaks.
Change-Id: Ib4fb1e2210a9cea6b12214e0d1e3570086ac2e68
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Ibec1f8e1eb921dc16de7e32424e3b8a1fb404738
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Change-Id: I89394ebfe69077027322038a13e7a275c43b8a78
|
| |
| |
| |
| |
| |
| |
| | |
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure
Change-Id: I91b101bd4986278a5d03270fbf8c78020b4be1fa
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: Id67ce4576ba7ff2d9b1434fbc87f61e3dbb9f4d8
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
TrivialFix
Change-Id: I15aaf281a1f830b88b372124ffe92e4d77bd8fed
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Closes-Bug: #1629671
Change-Id: I946ee89d9f078e2a766a2b0c89141d067c483cfa
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Set the correct link for home-page.
Change-Id: I026612ee874e7d926c8b82eab5a60c6601c4e951
|
|\ \ \
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
An initial patch to add reno and create a base directory for
release notes
Change-Id: I2fa27beb5d7e2c898ce567dce2add00ccdb54afe
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I6bd7d189b1aadb9c74896fc1352e774570abfd46
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I1bd0a4c7dbb08d77f9e41b55e40420f1048ceb56
|
|\ \ \ \ |
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|/ / /
| | |
| | |
| | | |
Change-Id: Ic1ee3e75669ce54bdb329fb0d77acb2b2ea78d44
|
|\ \ \ |
|
| | | |
| | | |
| | | |
| | | | |
Change-Id: I164b192f85ee9232a92ad7a5e99a3af647813dc8
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| | |/ / /
| |/| | | |
|