summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zuul.yaml2
-rw-r--r--oslo_middleware/opts.py27
-rw-r--r--releasenotes/source/index.rst1
-rw-r--r--releasenotes/source/xena.rst6
-rw-r--r--setup.cfg1
5 files changed, 36 insertions, 1 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 84bb45c..4066fb4 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -2,7 +2,7 @@
templates:
- check-requirements
- lib-forward-testing-python3
- - openstack-python3-xena-jobs
+ - openstack-python3-yoga-jobs
- periodic-stable-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
diff --git a/oslo_middleware/opts.py b/oslo_middleware/opts.py
index 734c21f..eb03db0 100644
--- a/oslo_middleware/opts.py
+++ b/oslo_middleware/opts.py
@@ -15,6 +15,7 @@
import copy
import itertools
+from oslo_middleware import basic_auth
from oslo_middleware import cors
from oslo_middleware.healthcheck import opts as healthcheck_opts
from oslo_middleware import http_proxy_to_wsgi
@@ -28,6 +29,7 @@ __all__ = [
'list_opts_cors',
'list_opts_http_proxy_to_wsgi',
'list_opts_healthcheck',
+ 'list_opts_basic_auth',
]
@@ -57,6 +59,7 @@ def list_opts():
list_opts_cors(),
list_opts_http_proxy_to_wsgi(),
list_opts_healthcheck(),
+ list_opts_basic_auth(),
)
)
@@ -183,3 +186,27 @@ def list_opts_healthcheck():
healthcheck_opts.DISABLE_BY_FILE_OPTS +
healthcheck_opts.DISABLE_BY_FILES_OPTS))
]
+
+
+def list_opts_basic_auth():
+ """Return a list of oslo.config options for basic auth middleware.
+
+ The returned list includes all oslo.config options which may be registered
+ at runtime by the library.
+
+ Each element of the list is a tuple. The first element is the name of the
+ group under which the list of elements in the second element will be
+ registered. A group name of None corresponds to the [DEFAULT] group in
+ config files.
+
+ This function is also discoverable via the 'oslo.middleware' entry point
+ under the 'oslo.config.opts' namespace.
+
+ The purpose of this is to allow tools like the Oslo sample config file
+ generator to discover the options exposed to users by this library.
+
+ :returns: a list of (group_name, opts) tuples
+ """
+ return [
+ ('oslo_middleware', copy.deepcopy(basic_auth.OPTS)),
+ ]
diff --git a/releasenotes/source/index.rst b/releasenotes/source/index.rst
index 59a6c18..dc442c8 100644
--- a/releasenotes/source/index.rst
+++ b/releasenotes/source/index.rst
@@ -6,6 +6,7 @@ oslo.middleware Release Notes
:maxdepth: 1
unreleased
+ xena
wallaby
victoria
ussuri
diff --git a/releasenotes/source/xena.rst b/releasenotes/source/xena.rst
new file mode 100644
index 0000000..1be85be
--- /dev/null
+++ b/releasenotes/source/xena.rst
@@ -0,0 +1,6 @@
+=========================
+Xena Series Release Notes
+=========================
+
+.. release-notes::
+ :branch: stable/xena
diff --git a/setup.cfg b/setup.cfg
index 68d3515..6e89419 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -33,6 +33,7 @@ oslo.config.opts =
oslo.middleware.ssl = oslo_middleware.opts:list_opts_ssl
oslo.middleware.http_proxy_to_wsgi = oslo_middleware.opts:list_opts_http_proxy_to_wsgi
oslo.middleware.healthcheck = oslo_middleware.opts:list_opts_healthcheck
+ oslo.middleware.basic_auth = oslo_middleware.opts:list_opts_basic_auth
oslo.middleware.healthcheck =
disable_by_file = oslo_middleware.healthcheck.disable_by_file:DisableByFileHealthcheck