| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I26d4bfc97d20edb75a4c255ca0f80fe9b43ad2cd
|
|
|
|
| |
Change-Id: Iadf4ea330b79dd81e5eed98b145798fe29c64c70
|
|
|
|
| |
Change-Id: I9d2cda5f050801e0cc51eac5876b5cb707caff43
|
|
|
|
|
| |
Change-Id: I299b6da1fcb8a7a6a6524cfa5d9892a6c2643c18
Depends-On: Ia750cb049c0f53a234ea70ce1f2bbbb7a2aa9454
|
|
|
|
|
|
| |
This makes sure that if the module organization change, nothing breaks.
Change-Id: Ib4fb1e2210a9cea6b12214e0d1e3570086ac2e68
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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. If you configure via add_origin, then defaults set
in set_defaults are not honored. If you configure via multiple
configuration blocks ([cors.foo]), then the defaults are also not
honored.
Additionally, with the conversion of allowed_origin into a list_opt,
there is less direct need for multiple config-block parsing.
In order to ensure that the middleware behaves consistently with
the rest of oslo, as well as adheres to a set of basic sane assumptions
made by consumers, this patch deprecates the code path that searches
oslo's configuration for multiple [cors.*] blocks. Subsequent patches
will add additional deprecation flags to this end.
Change-Id: I49c15ccc2dce03b0dea33ec45ef6e271e58582da
|
|/
|
|
|
|
|
|
|
| |
These headers were removed from the defaults in
https://review.openstack.org/#/c/293566/ - as they are already
automatically managed in accordance to the CORS specification. This
patch removes them from the example code.
Change-Id: Ic2728d65c31dcd2f6a887ce8b112f544fd5730f3
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit bb8dbeb3a361586886b1bb060a3d98ffbf5f7e31.
Making this work will depend on having a new release of oslo.config with
the fix in the dependent patch.
Depends-On: Ia024722d05ce8adaa57c58559cb42f2913653bb9
Change-Id: I33b37c74abf63bcaa95e668ec74c9c9849cc3773
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
|
|
|
|
|
|
|
|
|
|
| |
This patch addresses a documentation build issue caused by the
oslo.config sphinx integration. In order to unblock this repo, we can
work around the issue here while fixing it in oslo.config, then revert
this change.
Change-Id: Ie4a29e8e8d44d00354ea0dd8420bac5b8812a717
Related-Bug: #1549106
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch switches the 'allowed_origin' CORS configuration option
from a single string to an array of strings. This will let you
configure multiple domains simultaneously with the same options,
without having to add additional configuration blocks.
By doing this, pastedeploy users will no longer have to configure
mulitple filters if they wish to grant access to more than one
domain.
Change-Id: Ie2e57b76717604f701daa16ebf8ffa8c06835e3c
|
|
|
|
|
|
|
|
|
|
|
|
| |
In the case where paste deployment and oslo are used in concert,
it is not possible for an application to easily ship required
configuraton properties, such as custom headers, with their
release artifact. This patch adds parameters which expose
set_latent to paste.ini users, permitting the above.
Tests and documentation have been updated.
Change-Id: Id98002f6813055efe698f0b96a3e0d408c58ed7c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
oslo_config's configfile autodiscovery permits an additional parameter
named 'prog', which will add an additional file name to the possible
files that are checked in oslo_config directories. This patch adds this
parameter to paste-ini initialization, permitting access to more
configuration files.
This feature is required by glance, as glance does not make use of
./glance/glance.conf. Instead, they use ./glance/glance-api.conf. The
appropriate middleware configuration in this case would then be:
oslo_config_project=glance
oslog_config_program=glance-api
Change-Id: Ie530e4fac8076dc46b705770d12940ef91cb4644
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I5b2a3002d91ed9b6634d8a43c80e896fd66628d3
|
|/
|
|
|
|
|
|
|
|
|
| |
As per:
http://lists.openstack.org/pipermail/openstack-dev/2015-August/073338.html
The point behind the addition of the stevedore.sphinxext extension is
"to document drivers and other types of plugins to make the available
sets built into projects easier to discover" (dhellman).
Change-Id: If24f70704dd4840c44e6e72928157078fea80b51
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
The CORS specification permits the declaration of '*' as a response
wildcard domain, which explicitly allows _all_ domains to break
the single-origin policy. While we DO NOT recommend this method,
the ability to set a global policy should be included for the
sake of completeness.
Change-Id: Ifcc65ca74fa976dbd322a7ffd4ffba5443d1df5b
|
|
|
|
|
|
|
|
|
|
| |
This aims to provide a comprehensive middleware solution
for the CORS (Cross-Origin-Resource-Sharing) specification -
http://www.w3.org/TR/cors/.
Tests and documentation have been provided.
Change-Id: I3c0ff620f10bec2cbf7b748d48fff025aab44351
|
|
|
|
|
|
|
|
| |
This change fix the factory method of the healthcheck middleware
It also adds documentation about how to configure the middleware
Change-Id: Ie549d4686e921a9d407ba2829f69f92216bfcf9a
|
|
|
|
|
|
|
|
|
|
| |
Move the public API out of oslo.middleware to oslo_middleware. Retain
the ability to import from the old namespace package for backwards
compatibility for this release cycle.
bp/drop-namespace-packages
Change-Id: If88c65c82b64f096a02f7ec62e019aea4de2f9d3
|
|
|
|
|
|
|
|
|
|
| |
Ensure each exported class has a docstring.
Add API to the sphinx docs.
Fix a few formatting issues so the rendered docs look OK.
Change-Id: Ieef7bae3783a084249169fe9b80ab17518eee15f
|
|
|
|
| |
Removed notes about the generation of the file and fixed the syntax.
|
|
|