1
0

Compare commits

50 Commits

Author SHA256 Message Date
2b003d55b5 Accepting request 1328049 from Cloud:OpenStack:Factory
- add
  0001-Fix-privilege-escalation-via-spoofed-identity-header.patch:
  (bsc#1256800, CVE-2026-22797)

OBS-URL: https://build.opensuse.org/request/show/1328049
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=21
2026-01-19 17:38:34 +00:00
70caa19773 - add
0001-Fix-privilege-escalation-via-spoofed-identity-header.patch:
  (bsc#1256800, CVE-2026-22797)

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=61
2026-01-19 09:22:22 +00:00
9e6228b85f Accepting request 1316920 from Cloud:OpenStack:Factory
- add conflicts/obsoletes

- update to 10.12.0:
  * Remove Python 3.9 support
  * Revert "Switch from python-memcache to pymemcache"
  * Revert "Strip inet(6) prefix"
  * Add TLS support to MemcacheClientPool
  * add pyproject.toml to support pip 23.1
  * Strip inet(6) prefix
  * Apply upper constraints to build documentation
  * Update master for stable/2025.1
  * Switch from python-memcache to pymemcache
  * Imported Translations from Zanata
- switch to singlespec

- update to 10.9.0:
  * Fix memcached dependencies's doc bug
  * Imported Translations from Zanata
  * Remove Python 3.8 support
  * Use oslo.utils to escape IPv6 address
  * Get rid of pkg\_resources
  * Replace deprecated constant\_time\_compare
  * Bump hacking (slightly)
  * Update master for stable/2024.2
  * s3token: Fix usage of removed Identity v2 API
  * Imported Translations from Zanata

- Initial package

OBS-URL: https://build.opensuse.org/request/show/1316920
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=20
2025-11-10 18:18:26 +00:00
7be10705ec - add conflicts/obsoletes
OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=59
2025-11-10 13:14:05 +00:00
57c1fb1dcb - update to 10.12.0:
* Remove Python 3.9 support
  * Revert "Switch from python-memcache to pymemcache"
  * Revert "Strip inet(6) prefix"
  * Add TLS support to MemcacheClientPool
  * add pyproject.toml to support pip 23.1
  * Strip inet(6) prefix
  * Apply upper constraints to build documentation
  * Update master for stable/2025.1
  * Switch from python-memcache to pymemcache
  * Imported Translations from Zanata
- switch to singlespec

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=58
2025-11-09 18:31:15 +00:00
a4571cb916 - update to 10.9.0:
* Fix memcached dependencies's doc bug
  * Imported Translations from Zanata
  * Remove Python 3.8 support
  * Use oslo.utils to escape IPv6 address
  * Get rid of pkg\_resources
  * Replace deprecated constant\_time\_compare
  * Bump hacking (slightly)
  * Update master for stable/2024.2
  * s3token: Fix usage of removed Identity v2 API
  * Imported Translations from Zanata
- Initial package

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=57
2025-07-01 22:49:17 +00:00
ac2ebc7947 Accepting request 1198495 from Cloud:OpenStack:Factory
- update to version 10.7.1
  - reno: Update master for unmaintained/zed
  - Remove old excludes

- update to version 10.7.0
  - Imported Translations from Zanata
  - reno: Update master for unmaintained/xena
  - reno: Update master for unmaintained/wallaby
  - Update master for stable/2024.1
  - Remove six again
  - reno: Update master for unmaintained/victoria

- update to version 10.6.0
  - Update master for stable/zed
  - reno: Update master for unmaintained/yoga
  - Update master for stable/2023.2
  - Update python classifier in setup.cfg
  - Python 3.12: do not use utcnow()

OBS-URL: https://build.opensuse.org/request/show/1198495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=19
2024-09-04 11:23:30 +00:00
5258d49a6f Accepting request 1171417 from Cloud:OpenStack:Factory
- update to version 10.5.0
  - auth_token: fix issue when data in cache gets corrupted
  - External OAuth2.0 Authorization Server Support

OBS-URL: https://build.opensuse.org/request/show/1171417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=18
2024-05-02 21:48:41 +00:00
a6c69cabc2 - update to version 10.5.0
- auth_token: fix issue when data in cache gets corrupted
  - External OAuth2.0 Authorization Server Support

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=51
2024-05-02 16:23:43 +00:00
ab18a0ca3a Accepting request 1138716 from Cloud:OpenStack:Factory
- update to version 10.4.1
  - Imported Translations from Zanata
  - Switch to 2023.1 Python3 unit tests and generic template name

OBS-URL: https://build.opensuse.org/request/show/1138716
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=17
2024-01-15 21:18:08 +00:00
2ee2d97858 - update to version 10.4.1
- Imported Translations from Zanata
  - Switch to 2023.1 Python3 unit tests and generic template name

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=49
2023-12-01 16:18:18 +00:00
5ff60647ed Accepting request 1100749 from Cloud:OpenStack:Factory
- update to version 10.4.0
  - Update master for stable/2023.1
  - tox: Trivial formatting changes
  - Make tox.ini tox 4.0.0 compatible/fix gate
  - Remove six
  - Bump hacking to 6.0.x

- update to version 10.3.0
  - OAuth 2.0 Mutual-TLS Support
  - Add missing doc requirements
  - Add timeout for requests

OBS-URL: https://build.opensuse.org/request/show/1100749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=16
2023-07-27 14:50:46 +00:00
ec5bd65676 - update to version 10.4.0
- Update master for stable/2023.1
  - tox: Trivial formatting changes
  - Make tox.ini tox 4.0.0 compatible/fix gate
  - Remove six
  - Bump hacking to 6.0.x

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=47
2023-07-26 06:54:13 +00:00
53a1c78fdd - update to version 10.3.0
- OAuth 2.0 Mutual-TLS Support
  - Add missing doc requirements
  - Add timeout for requests

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=46
2023-06-15 20:48:41 +00:00
decf8e1da9 Accepting request 1073020 from Cloud:OpenStack:Factory
- update to version 10.2.0
  - Update python testing as per zed cycle teting runtime
  - Bump tox minversion to 3.18.0
  - Fix logging notifier unit test
  - setup.cfg: Replace dashes by underscores
  - Remove translation sections from setup.cfg
  - Update Python 3 job template
  - Remove cache invalidation when using expired token
  - OAuth2.0 Client Credentials Grant Flow Support
  - Fix pep8 gate
  - Remove references to 'sys.version_info'
  - Imported Translations from Zanata

OBS-URL: https://build.opensuse.org/request/show/1073020
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=15
2023-03-21 16:40:53 +00:00
b37fa22a85 - update to version 10.2.0
- Update python testing as per zed cycle teting runtime
  - Bump tox minversion to 3.18.0
  - Fix logging notifier unit test
  - setup.cfg: Replace dashes by underscores
  - Remove translation sections from setup.cfg
  - Update Python 3 job template
  - Remove cache invalidation when using expired token
  - OAuth2.0 Client Credentials Grant Flow Support
  - Fix pep8 gate
  - Remove references to 'sys.version_info'
  - Imported Translations from Zanata

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=44
2023-03-06 15:56:46 +00:00
6529f113b9 Accepting request 994404 from Cloud:OpenStack:Factory
- update to version 9.5.0
  - Update master for stable/xena
  - Update master for stable/yoga
  - Drop lower-constraints.txt and its testing
  - Update master for stable/wallaby
  - Add oslo.config.opts entrypoint for audit middleware options
  - Update master for stable/victoria
  - Add Python 3 only classifier

- update to version 9.3.0
  - Switch to eventlet-safe oslo.cache's MemcacheClientPool
  - Updating lower-constraints job as non voting
  - Imported Translations from Zanata

OBS-URL: https://build.opensuse.org/request/show/994404
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=14
2022-08-11 16:31:50 +00:00
4c369f1450 OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=42 2022-08-10 22:44:38 +00:00
8e336d8ec1 - update to version 9.5.0
- Update master for stable/xena
  - Update master for stable/yoga
  - Drop lower-constraints.txt and its testing
  - Update master for stable/wallaby
  - Add oslo.config.opts entrypoint for audit middleware options
  - Update master for stable/victoria
  - Add Python 3 only classifier

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=41
2022-06-07 09:22:12 +00:00
5cc523fe35 - update to version 9.3.0
- Switch to eventlet-safe oslo.cache's MemcacheClientPool
  - Updating lower-constraints job as non voting
  - Imported Translations from Zanata

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=40
2021-10-26 21:45:53 +00:00
3f79a02e14 Accepting request 889972 from Cloud:OpenStack:Factory
OBS-URL: https://build.opensuse.org/request/show/889972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=13
2021-05-10 13:37:26 +00:00
61f65dd337 - update to version 9.2.0
- Use unittest.mock instead of third party mock
  - [goal] Migrate testing to ubuntu focal

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=38
2021-05-02 17:18:18 +00:00
ba1628a5a0 Accepting request 841185 from Cloud:OpenStack:Factory
switch to victoria

OBS-URL: https://build.opensuse.org/request/show/841185
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=12
2020-10-26 15:15:30 +00:00
a5dfd45be3 update to stable/victoria
OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=36
2020-10-09 19:14:27 +00:00
af2f346c55 Accepting request 803568 from Cloud:OpenStack:Factory
Ussuri Update

OBS-URL: https://build.opensuse.org/request/show/803568
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=11
2020-06-05 18:10:41 +00:00
82b39bc10c - update to version 9.0.0
- Update master for stable/train
  - Rename _v3_to_v2_catalog to _normalize_catalog
  - Make tests pass in 2022
  - Change ec2 URLs to v3
  - Switch to Ussuri jobs
  - Have middlewarearchitecture doc reference auth_type option
  - Update invalid link for README
  - Remove v2.0 functionality
  - Update hacking for Python3
  - [ussuri][goal] Drop python 2.7 support and testing
  - Fix DeprecationWarning: invalid escape sequence issues
  - Imported Translations from Zanata
  - Remove universal wheel configuration
  - Remove keystoneclient exception usage in tests
  - Fix misspell word
  - Update the constraints url
  - Generate pdf documentation

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=34
2020-05-12 09:58:58 +00:00
a16d2a980e Accepting request 784577 from Cloud:OpenStack:Factory
- switch to python 3.x only build

OBS-URL: https://build.opensuse.org/request/show/784577
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=10
2020-03-24 21:32:19 +00:00
5a3ff10b45 - switch to python 3.x only build
OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=32
2020-03-13 07:58:39 +00:00
285fbb00e5 Accepting request 774904 from Cloud:OpenStack:Factory
- update to version 7.0.1
  - OpenDev Migration Patch
  - Remove PKI/PKIZ support
  - Run lower-constraints on Bionic and update python-keystoneclient
  - Add a new option to choose the Identity endpoint
  - Comment html_static_path entry in docs conf.py
  - Update master for stable/stein
  - Fix debug tox environment
  - Add Python 3 Train unit tests
  - Remove Diablo compatibility tests
  - print auth version for request strategy in debug
  - Update the min version of tox
  - Drop py35 jobs
  - Blacklist bandit 1.6.0 & cap sphinx for 2.7
  - Blacklist sphinx 2.1.0 (autodoc bug)
  - Run lower-constraints job on Xenial
  - Add validation of app cred access rules
  - Fix bandit warning
  - Bump memcached minimum version
  - Bump the openstackdocstheme extension to 1.20
  - Fix string format error

OBS-URL: https://build.opensuse.org/request/show/774904
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=9
2020-02-18 09:40:07 +00:00
21a94f5e42 - update to version 7.0.1
- OpenDev Migration Patch
  - Remove PKI/PKIZ support
  - Run lower-constraints on Bionic and update python-keystoneclient
  - Add a new option to choose the Identity endpoint
  - Comment html_static_path entry in docs conf.py
  - Update master for stable/stein
  - Fix debug tox environment
  - Add Python 3 Train unit tests
  - Remove Diablo compatibility tests
  - print auth version for request strategy in debug
  - Update the min version of tox
  - Drop py35 jobs
  - Blacklist bandit 1.6.0 & cap sphinx for 2.7
  - Blacklist sphinx 2.1.0 (autodoc bug)
  - Run lower-constraints job on Xenial
  - Add validation of app cred access rules
  - Fix bandit warning
  - Bump memcached minimum version
  - Bump the openstackdocstheme extension to 1.20
  - Fix string format error

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=30
2019-10-17 08:27:02 +00:00
59a954877c Accepting request 692833 from Cloud:OpenStack:Factory
- update to version 6.0.0
  - Remove tox_install.sh
  - Respect delay_auth_decision when Keystone is unavailable
  - Add auth invalidation in auth_token for identity endpoint update
  - Stop supporting revocation list
  - Update reno for stable/rocky
  - Skip the services with no endpoints when parsing service catalog
  - import zuul job settings from project-config
  - Make sure audit middleware use own context
  - Add py36 tox environment
  - Change openstack-dev to openstack-discuss
  - Handle DiscoveryFailure errors
  - Fix audit target service selection
  - add python 3.6 unit test job
  - add lib-forward-testing-python3 test job
  - add releasenotes to readme.rst
  - No need to compare CONF content
  - Replace port 35357 with 5000
  - Documentation Fix - auth_url Port Number
  - Remove testr.conf as it's been replaced by stestr
  - Trivial: Update pypi url to new url
  - trivial: fix convention in release note
  - Document endpoint interface and region behavior
  - switch documentation job to new PTI
  - Expect paste.deploy and gnocchi/panko options
  - Use templates for cover and lower-constraints
  - Fix service_token_role_required option
  - add python 3.7 unit test job
  - Added request_id and global_request_id to CADF notifications

OBS-URL: https://build.opensuse.org/request/show/692833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=8
2019-05-03 20:41:03 +00:00
d175c0d2a3 - update to version 6.0.0
- Remove tox_install.sh
  - Respect delay_auth_decision when Keystone is unavailable
  - Add auth invalidation in auth_token for identity endpoint update
  - Stop supporting revocation list
  - Update reno for stable/rocky
  - Skip the services with no endpoints when parsing service catalog
  - import zuul job settings from project-config
  - Make sure audit middleware use own context
  - Add py36 tox environment
  - Change openstack-dev to openstack-discuss
  - Handle DiscoveryFailure errors
  - Fix audit target service selection
  - add python 3.6 unit test job
  - add lib-forward-testing-python3 test job
  - add releasenotes to readme.rst
  - No need to compare CONF content
  - Replace port 35357 with 5000
  - Documentation Fix - auth_url Port Number
  - Remove testr.conf as it's been replaced by stestr
  - Trivial: Update pypi url to new url
  - trivial: fix convention in release note
  - Document endpoint interface and region behavior
  - switch documentation job to new PTI
  - Expect paste.deploy and gnocchi/panko options
  - Use templates for cover and lower-constraints
  - Fix service_token_role_required option
  - add python 3.7 unit test job
  - Added request_id and global_request_id to CADF notifications

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=28
2019-04-08 13:54:21 +00:00
a75266e6cb OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=27 2019-04-08 13:52:58 +00:00
ebd79c3dba osc copypac from project:Cloud:OpenStack:Stein:Staging package:python-keystonemiddleware revision:53, using keep-link, using expand
OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=26
2019-04-08 13:52:46 +00:00
f786ffbaff Accepting request 633076 from Cloud:OpenStack:Factory
Initial Rocky clients submission. please combine all in one staging project otherwise this will never build

OBS-URL: https://build.opensuse.org/request/show/633076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=7
2018-09-07 13:37:41 +00:00
293fa1f4b5 - update to version 5.2.0
- Only include response body if there's a response
  - Fix the AttributeError: __exit__ error
  - Update reno for stable/queens
  - Imported Translations from Zanata
  - Remove empty files
  - Identify the keystone service when raising 503
  - Fix KeystoneMiddleware memcachepool abstraction
  - Double quote www_authenticate_uri
  - Introduce new header for system-scoped tokens
  - Properly zero out max_retries in test_http_error_not_cached_token
  - Update links in README
  - Don't rely on pbr ChangeLog for docs
  - Update home-page url
  - Follow the new PTI for document build
  - Remove kwargs_to_fetch_token
  - Add arguments for MemcacheClientPool init
  - fix tox python3 overrides
  - Switch coverage tox env to stestr
  - Fix the doc CI failure
  - Add option to disable using oslo_message notifier
  - Fix the title in index.rst
  - Updated from global requirements
  - add lower-constraints job

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=24
2018-09-03 17:18:03 +00:00
e1a2414e55 Accepting request 583305 from Cloud:OpenStack:Factory
- Switch to stable/queens spec template

OBS-URL: https://build.opensuse.org/request/show/583305
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=6
2018-03-19 22:34:48 +00:00
2af2915e69 OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=22 2018-02-23 13:08:00 +00:00
e7410f0f5c Accepting request 567263 from Cloud:OpenStack:Factory
- update to version 4.21.0
  - Update config docs to reflect non-deprecated methods
  - Imported Translations from Zanata
  - rel-note and doc for lazy loading of oslo_cache
  - Update comment about fetch token kwargs
  - Correct docs usage of keystoneauth1 session
  - lazy loading of oslo_cache
  - Updates for stestr
  - Add doc8 rule and check doc/source files
  - Use oslo_cache in auth_token middleware
  - Remove notice about system time
  - Fix py3 byte/string error
  - Remove use of positional decorator
  - Rename auth_uri to www_authenticate_uri
  - Enable sphinx todo extension
  - Fix gate error caused by mocked URLs
  - Update reno for stable/pike
  - Log TokenNotFound at INFO level instead of WARNING
  - Remove setting of version/release from releasenotes
  - Issue a deprecation warning for validating PKI tokens
  - Fix docs builds
  - cfg.CONF must not be used directly
  - strip whitespace from token
  - Updated from global requirements

OBS-URL: https://build.opensuse.org/request/show/567263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=5
2018-01-24 14:26:57 +00:00
91572965cf - update to version 4.21.0
- Update config docs to reflect non-deprecated methods
  - Imported Translations from Zanata
  - rel-note and doc for lazy loading of oslo_cache
  - Update comment about fetch token kwargs
  - Correct docs usage of keystoneauth1 session
  - lazy loading of oslo_cache
  - Updates for stestr
  - Add doc8 rule and check doc/source files
  - Use oslo_cache in auth_token middleware
  - Remove notice about system time
  - Fix py3 byte/string error
  - Remove use of positional decorator
  - Rename auth_uri to www_authenticate_uri
  - Enable sphinx todo extension
  - Fix gate error caused by mocked URLs
  - Update reno for stable/pike
  - Log TokenNotFound at INFO level instead of WARNING
  - Remove setting of version/release from releasenotes
  - Issue a deprecation warning for validating PKI tokens
  - Fix docs builds
  - cfg.CONF must not be used directly
  - strip whitespace from token
  - Updated from global requirements

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=20
2018-01-15 11:42:38 +00:00
8a11cf9c9a Accepting request 514948 from Cloud:OpenStack:Factory
- update to version 4.17.0
  - Fix oslo.messaging deprecation of get_transport
  - Use https for *.openstack.org references
  - Added "warning-is-error" sphinx check for docs
  - Imported Translations from Zanata
  - Update reno for stable/ocata
  - Fix html_last_updated_fmt for Python3
  - Pass located tests directory in oslo debug
  - add a log when the option in conf can't be identitied
  - Remove deprecated oslo.messaging aliases parameter
  - Replace six.iteritems() with .items()
  - Switch from oslosphinx to openstackdocstheme
  - Using assertFalse(A) instead of assertEqual(False, A)
  - Replace pycrypto with cryptography
  - Remove old comment referencing fixed bug
  - Fixed man_pages no value warning when making docs
  - Update URLs in documentation
  - Remove unused logging import
  - Change locations of docs for intersphinx
  - Bump the token deferral message from info to debug
  - Remove log translations
  - Removing double spaces
  - Redundant adminURL in test_gives_v2_catalog
  - Update driver config parameter from string to list
  - Updated from global requirements

OBS-URL: https://build.opensuse.org/request/show/514948
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=4
2017-08-28 13:30:59 +00:00
f2bcba5054 - update to version 4.17.0
- Fix oslo.messaging deprecation of get_transport
  - Use https for *.openstack.org references
  - Added "warning-is-error" sphinx check for docs
  - Imported Translations from Zanata
  - Update reno for stable/ocata
  - Fix html_last_updated_fmt for Python3
  - Pass located tests directory in oslo debug
  - add a log when the option in conf can't be identitied
  - Remove deprecated oslo.messaging aliases parameter
  - Replace six.iteritems() with .items()
  - Switch from oslosphinx to openstackdocstheme
  - Using assertFalse(A) instead of assertEqual(False, A)
  - Replace pycrypto with cryptography
  - Remove old comment referencing fixed bug
  - Fixed man_pages no value warning when making docs
  - Update URLs in documentation
  - Remove unused logging import
  - Change locations of docs for intersphinx
  - Bump the token deferral message from info to debug
  - Remove log translations
  - Removing double spaces
  - Redundant adminURL in test_gives_v2_catalog
  - Update driver config parameter from string to list
  - Updated from global requirements

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=18
2017-08-07 11:16:49 +00:00
7f87dfe7a0 Accepting request 456074 from Cloud:OpenStack:Factory
- update to version 4.14.0:
  - Add docutils contraint on 0.13.1 to fix building
  - auth_token: set correct charset when replying with 401
  - Return and use an app wherever possible
  - standardize release note page ordering
  - Use oslo_messaging conf fixture
  - Enable release notes translation
  - clean up a few doc building warnings
  - Update reno for stable/newton
  - Remove references to Python 3.4
  - Raise NotImplementedError instead of NotImplemented
  - Add Constraints support
  - Show team and repo badges on README
  - Mock log only after app creation
  - Add service token to user token plugin
  - Deprecate PKI token format options
  - Use method constant_time_compare from oslo.utils
  - Specify that unknown arguments can be passed to fetch_token
  - Refactor audit tests to use create_middleware
  - Pass ?allow_expired
  - Globalize authentication failure error
  - Auth token, set the correct charset
  - Extract oslo_messaging specific audit tests
  - Removes unnecessary utf-8 coding
  - Limit deprecated token message to single warning
  - Update .coveragerc after the removal of respective directory
  - use oslo.log instead of logging
  - Drop MANIFEST.in - it's not needed by pbr
  - fix broken links
  - Changed the home-page link

OBS-URL: https://build.opensuse.org/request/show/456074
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=3
2017-02-21 12:40:40 +00:00
2f7a568cb9 - update to version 4.14.0:
- Add docutils contraint on 0.13.1 to fix building
  - auth_token: set correct charset when replying with 401
  - Return and use an app wherever possible
  - standardize release note page ordering
  - Use oslo_messaging conf fixture
  - Enable release notes translation
  - clean up a few doc building warnings
  - Update reno for stable/newton
  - Remove references to Python 3.4
  - Raise NotImplementedError instead of NotImplemented
  - Add Constraints support
  - Show team and repo badges on README
  - Mock log only after app creation
  - Add service token to user token plugin
  - Deprecate PKI token format options
  - Use method constant_time_compare from oslo.utils
  - Specify that unknown arguments can be passed to fetch_token
  - Refactor audit tests to use create_middleware
  - Pass ?allow_expired
  - Globalize authentication failure error
  - Auth token, set the correct charset
  - Extract oslo_messaging specific audit tests
  - Removes unnecessary utf-8 coding
  - Limit deprecated token message to single warning
  - Update .coveragerc after the removal of respective directory
  - use oslo.log instead of logging
  - Drop MANIFEST.in - it's not needed by pbr
  - fix broken links
  - Changed the home-page link

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=16
2017-02-10 16:24:57 +00:00
6468cf9708 +1;4600;0c- Update BuildRequires
OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=15
2016-10-14 14:29:06 +00:00
b1f140461c Accepting request 433112 from Cloud:OpenStack:Factory
- global requirements sync
- switch to stable/newton

update to version 4.9.0
  * PEP257: add flake8-docstring testing
  * PEP257: Ignore D203 because it was deprecated
  * Use oslo.config fixture in audit tests
  * Add a fixture method to add your own token data
  * Remove bandit.yaml in favor of defaults
  * Fix typo 'olso' to 'oslo'
  * Fix D105: Missing docstring in magic method (PEP257)
  * remove old options from documentation
  * Extract a common notifier pattern
  * Refactor audit api tests into their own file
  * Return default value for pkg_version if missing
  * Fix an issue with oslo_config_project paste config
  * Use extras for oslo.messaging dependency
  * Move auth token opts calculation into auth_token
  * Fix D204 PEP257 violation and enable D301 and D209
  * Fix doc build if git is absent
  * Fix D401 PEP257 violation and enable H403
  * Add Python 3.5 classifier
  * Refactor create_event onto the api object.
  * Use AccessInfo in UserAuthPlugin instead of custom
  * Pop oslo_config_config before doing paste convert
  * Remove oslo-incubator
  * Create signing_dir upon first usage
  * Fix D202: No blank lines allowed after function docstring (PEP257)
  * Use jsonutils instead of ast for loading the service catalog
  * Make sure audit can handle API requests which does not require a token

OBS-URL: https://build.opensuse.org/request/show/433112
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=2
2016-10-13 09:29:15 +00:00
2b29269946 - global requirements sync
- switch to stable/newton

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=13
2016-10-04 11:14:34 +00:00
c2f6779b60 update to version 4.9.0
* PEP257: add flake8-docstring testing
  * PEP257: Ignore D203 because it was deprecated
  * Use oslo.config fixture in audit tests
  * Add a fixture method to add your own token data
  * Remove bandit.yaml in favor of defaults
  * Fix typo 'olso' to 'oslo'
  * Fix D105: Missing docstring in magic method (PEP257)
  * remove old options from documentation
  * Extract a common notifier pattern
  * Refactor audit api tests into their own file
  * Return default value for pkg_version if missing
  * Fix an issue with oslo_config_project paste config
  * Use extras for oslo.messaging dependency
  * Move auth token opts calculation into auth_token
  * Fix D204 PEP257 violation and enable D301 and D209
  * Fix doc build if git is absent
  * Fix D401 PEP257 violation and enable H403
  * Add Python 3.5 classifier
  * Refactor create_event onto the api object.
  * Use AccessInfo in UserAuthPlugin instead of custom
  * Pop oslo_config_config before doing paste convert
  * Remove oslo-incubator
  * Create signing_dir upon first usage
  * Fix D202: No blank lines allowed after function docstring (PEP257)
  * Use jsonutils instead of ast for loading the service catalog
  * Make sure audit can handle API requests which does not require a token
  * Fix D200: One-line docstring should fit on one line with quotes (PEP257)
  * s3token config with auth URI
  * Return JSON for Unauthorized message

OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=12
2016-09-01 18:51:30 +00:00
6ea61311e1 Accepting request 375072 from Cloud:OpenStack:Factory
OBS-URL: https://build.opensuse.org/request/show/375072
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-keystonemiddleware?expand=0&rev=1
2016-05-04 06:19:02 +00:00
OBS User buildservice-autocommit
b8da896088 Accepting request 375072 from Cloud:OpenStack:Factory
baserev update by copy to link target

OBS-URL: https://build.opensuse.org/request/show/375072
OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-keystonemiddleware?expand=0&rev=10
2016-05-04 06:19:02 +00:00
7 changed files with 251 additions and 78 deletions

View File

@@ -0,0 +1,147 @@
From e15e33fe9bbd4faa361ab7eb1950fb75ca93c7de Mon Sep 17 00:00:00 2001
From: Grzegorz Grasza <xek@redhat.com>
Date: Thu, 8 Jan 2026 14:46:19 +0100
Subject: [PATCH] Fix privilege escalation via spoofed identity headers
The external_oauth2_token middleware did not sanitize incoming
authentication headers before processing OAuth 2.0 tokens. This
allowed an attacker to send forged identity headers (e.g.,
X-Is-Admin-Project, X-Roles, X-User-Id) that would not be cleared
by the middleware, potentially enabling privilege escalation.
This fix adds a call to remove_auth_headers() at the start of
request processing to sanitize all incoming identity headers,
matching the secure behavior of the main auth_token middleware.
Closes-Bug: #2129018
Change-Id: Idd4fe1d17a25b3064b31f454d9830242f345e018
Signed-off-by: Jeremy Stanley <fungi@yuggoth.org>
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
---
keystonemiddleware/external_oauth2_token.py | 7 +-
.../test_external_oauth2_token_middleware.py | 76 +++++++++++++++++++
2 files changed, 81 insertions(+), 2 deletions(-)
diff --git a/keystonemiddleware/external_oauth2_token.py b/keystonemiddleware/external_oauth2_token.py
index c02cace..32fd4e4 100644
--- a/keystonemiddleware/external_oauth2_token.py
+++ b/keystonemiddleware/external_oauth2_token.py
@@ -33,6 +33,7 @@ from keystoneauth1.loading import session as session_loading
from keystonemiddleware._common import config
from keystonemiddleware.auth_token import _cache
+from keystonemiddleware.auth_token import _request
from keystonemiddleware.exceptions import ConfigurationError
from keystonemiddleware.exceptions import KeystoneMiddlewareException
from keystonemiddleware.i18n import _
@@ -534,7 +535,7 @@ class ExternalAuth2Protocol(object):
**cache_kwargs)
return _cache.TokenCache(self._log, **cache_kwargs)
- @webob.dec.wsgify()
+ @webob.dec.wsgify(RequestClass=_request._AuthTokenRequest)
def __call__(self, req):
"""Handle incoming request."""
self.process_request(req)
@@ -545,8 +546,10 @@ class ExternalAuth2Protocol(object):
"""Process request.
:param request: Incoming request
- :type request: _request.AuthTokenRequest
+ :type request: _request._AuthTokenRequest
"""
+ request.remove_auth_headers()
+
access_token = None
if (request.authorization and
request.authorization.authtype == 'Bearer'):
diff --git a/keystonemiddleware/tests/unit/test_external_oauth2_token_middleware.py b/keystonemiddleware/tests/unit/test_external_oauth2_token_middleware.py
index d23fedb..3d69a47 100644
--- a/keystonemiddleware/tests/unit/test_external_oauth2_token_middleware.py
+++ b/keystonemiddleware/tests/unit/test_external_oauth2_token_middleware.py
@@ -1823,6 +1823,82 @@ class ExternalOauth2TokenMiddlewareClientSecretBasicTest(
self.assertEqual(resp.headers.get('WWW-Authenticate'),
'Authorization OAuth 2.0 uri="%s"' % self._audience)
+ def test_spoofed_headers_are_sanitized(self):
+ """Test that spoofed identity headers are removed and replaced.
+
+ This test verifies the fix for a privilege escalation vulnerability
+ where an attacker could send spoofed identity headers that would not
+ be cleared by the middleware, allowing unauthorized access.
+ """
+ conf = copy.deepcopy(self._test_conf)
+ self.set_middleware(conf=conf)
+
+ # Use non-admin roles in the token metadata
+ non_admin_roles = 'member,reader'
+ non_admin_metadata = copy.deepcopy(self._default_metadata)
+ non_admin_metadata['roles'] = non_admin_roles
+
+ def mock_resp(request, context):
+ return self._introspect_response(
+ request, context,
+ auth_method=self._auth_method,
+ introspect_client_id=self._test_client_id,
+ introspect_client_secret=self._test_client_secret,
+ access_token=self._token,
+ active=True,
+ metadata=non_admin_metadata
+ )
+
+ self.requests_mock.post(self._introspect_endpoint,
+ json=mock_resp)
+ self.requests_mock.get(self._auth_url,
+ json=VERSION_LIST_v3,
+ status_code=300)
+
+ # Attempt to spoof multiple identity headers
+ spoofed_headers = get_authorization_header(self._token)
+ spoofed_headers.update({
+ 'X-Identity-Status': 'Confirmed',
+ 'X-Is-Admin-Project': 'true',
+ 'X-User-Id': 'spoofed_admin_user_id',
+ 'X-User-Name': 'spoofed_admin',
+ 'X-Roles': 'admin,superuser',
+ 'X-Project-Id': 'spoofed_project_id',
+ 'X-User-Domain-Id': 'spoofed_domain_id',
+ 'X-User-Domain-Name': 'spoofed_domain',
+ })
+
+ resp = self.call_middleware(
+ headers=spoofed_headers,
+ expected_status=200,
+ method='GET', path='/vnfpkgm/v1/vnf_packages',
+ environ={'wsgi.input': FakeWsgiInput(FakeSocket(None))}
+ )
+ self.assertEqual(FakeApp.SUCCESS, resp.body)
+
+ # Verify spoofed headers were replaced with actual token values
+ env = resp.request.environ
+
+ # X-Is-Admin-Project should not be present (not the spoofed 'true')
+ # because the token has non-admin roles and the middleware only sets
+ # this header when is_admin is true
+ self.assertNotIn('HTTP_X_IS_ADMIN_PROJECT', env)
+
+ # User info should match the token, not the spoofed values
+ self.assertEqual(self._user_id, env['HTTP_X_USER_ID'])
+ self.assertEqual(self._user_name, env['HTTP_X_USER_NAME'])
+ self.assertEqual(self._user_domain_id, env['HTTP_X_USER_DOMAIN_ID'])
+ self.assertEqual(
+ self._user_domain_name,
+ env['HTTP_X_USER_DOMAIN_NAME']
+ )
+
+ # Roles should be from the token, not spoofed
+ self.assertEqual(non_admin_roles, env['HTTP_X_ROLES'])
+
+ # Project info should match the token
+ self.assertEqual(self._project_id, env['HTTP_X_PROJECT_ID'])
+
class ExternalAuth2ProtocolTest(BaseExternalOauth2TokenMiddlewareTest):
--
2.52.0

View File

@@ -1,12 +0,0 @@
<services>
<service mode="manual" name="renderspec">
<param name="input-template">https://opendev.org/openstack/rpm-packaging/raw/master/openstack/keystonemiddleware/keystonemiddleware.spec.j2</param>
<param name="output-name">python-keystonemiddleware.spec</param>
<param name="requirements">https://opendev.org/openstack/keystonemiddleware/raw/master/requirements.txt</param>
<param name="changelog-email">cloud-devel@suse.de</param>
<param name="changelog-provider">gh,openstack,keystonemiddleware</param>
</service>
<service mode="manual" name="download_files">
</service>
<service name="format_spec_file" mode="manual"/>
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0da92b4af5178410e15a1b99f56d9cdeb2546eed088c69bc39e666fe09f869bf
size 215566

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5bb479f81b2b2a8b3d367e4a6b76383ffaf58a80184a0c612dc847308de1a74
size 211964

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d14c9a6eb48a0c5e81f0661cbeea974a209b20579e6daaf917d88b792f6cf38
size 212213

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Mon Jan 19 09:21:51 UTC 2026 - Dirk Müller <dmueller@suse.com>
- add
0001-Fix-privilege-escalation-via-spoofed-identity-header.patch:
(bsc#1256800, CVE-2026-22797)
-------------------------------------------------------------------
Mon Nov 10 13:13:55 UTC 2025 - Dirk Müller <dmueller@suse.com>
- add conflicts/obsoletes
-------------------------------------------------------------------
Sun Nov 9 18:30:58 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 10.12.0:
* Remove Python 3.9 support
* Revert "Switch from python-memcache to pymemcache"
* Revert "Strip inet(6) prefix"
* Add TLS support to MemcacheClientPool
* add pyproject.toml to support pip 23.1
* Strip inet(6) prefix
* Apply upper constraints to build documentation
* Update master for stable/2025.1
* Switch from python-memcache to pymemcache
* Imported Translations from Zanata
- switch to singlespec
-------------------------------------------------------------------
Tue Jul 1 22:35:56 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 10.9.0:
* Fix memcached dependencies's doc bug
* Imported Translations from Zanata
* Remove Python 3.8 support
* Use oslo.utils to escape IPv6 address
* Get rid of pkg\_resources
* Replace deprecated constant\_time\_compare
* Bump hacking (slightly)
* Update master for stable/2024.2
* s3token: Fix usage of removed Identity v2 API
* Imported Translations from Zanata
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 3 13:06:47 UTC 2024 - cloud-devel@suse.de Tue Sep 3 13:06:47 UTC 2024 - cloud-devel@suse.de
@@ -737,5 +780,5 @@ Wed Sep 10 11:55:45 UTC 2014 - dmueller@suse.com
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 21 07:36:58 UTC 2014 - dmueller@suse.com Mon Jul 21 07:36:58 UTC 2014 - dmueller@suse.com
- Initial package - Initial package

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-keystonemiddleware # spec file for package python-keystonemiddleware
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2026 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,37 +17,61 @@
Name: python-keystonemiddleware Name: python-keystonemiddleware
Version: 10.7.1 Version: 10.12.0
Release: 0 Release: 0
Summary: Middleware for OpenStack Identity Summary: Middleware for OpenStack Identity
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://docs.openstack.org/keystonemiddleware URL: https://docs.openstack.org/keystonemiddleware
Source0: https://files.pythonhosted.org/packages/source/k/keystonemiddleware/keystonemiddleware-10.7.1.tar.gz Source0: https://files.pythonhosted.org/packages/source/k/keystonemiddleware/keystonemiddleware-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch1: 0001-Fix-privilege-escalation-via-spoofed-identity-header.patch
BuildRequires: %{python_module WebOb >= 1.7.1}
BuildRequires: %{python_module WebTest}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module fixtures}
BuildRequires: %{python_module keystoneauth1 >= 3.12.0}
BuildRequires: %{python_module keystoneclient >= 3.20.0}
BuildRequires: %{python_module oslo.cache >= 1.26.0}
BuildRequires: %{python_module oslo.config >= 5.2.0}
BuildRequires: %{python_module oslo.context >= 2.19.2}
BuildRequires: %{python_module oslo.i18n >= 3.15.3}
BuildRequires: %{python_module oslo.messaging}
BuildRequires: %{python_module oslo.serialization >= 2.18.0}
BuildRequires: %{python_module oslo.utils >= 3.33.0}
BuildRequires: %{python_module oslotest}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pycadf >= 1.1.0}
BuildRequires: %{python_module python-memcached}
BuildRequires: %{python_module requests >= 2.14.2}
BuildRequires: %{python_module requests-mock}
BuildRequires: %{python_module stestr}
BuildRequires: %{python_module stevedore}
BuildRequires: %{python_module testresources}
BuildRequires: %{python_module testtools}
BuildRequires: %{python_module wheel}
BuildRequires: openstack-macros BuildRequires: openstack-macros
BuildRequires: python3-WebOb >= 1.7.1 Requires: python-WebOb >= 1.7.1
BuildRequires: python3-WebTest Requires: python-keystoneauth1 >= 3.12.0
BuildRequires: python3-cryptography Requires: python-keystoneclient >= 3.20.0
BuildRequires: python3-fixtures Requires: python-oslo.cache >= 1.26.0
BuildRequires: python3-keystoneauth1 >= 3.12.0 Requires: python-oslo.config >= 5.2.0
BuildRequires: python3-keystoneclient >= 3.20.0 Requires: python-oslo.context >= 2.19.2
BuildRequires: python3-oslo.cache >= 1.26.0 Requires: python-oslo.i18n >= 3.15.3
BuildRequires: python3-oslo.config >= 5.2.0 Requires: python-oslo.log >= 3.36.0
BuildRequires: python3-oslo.context >= 2.19.2 Requires: python-oslo.messaging
BuildRequires: python3-oslo.i18n >= 3.15.3 Requires: python-oslo.serialization >= 2.18.0
BuildRequires: python3-oslo.messaging Requires: python-oslo.utils >= 3.33.0
BuildRequires: python3-oslo.serialization >= 2.18.0 Requires: python-pycadf >= 1.1.0
BuildRequires: python3-oslo.utils >= 3.33.0 Requires: python-python-memcached
BuildRequires: python3-oslotest Requires: python-requests >= 2.14.2
BuildRequires: python3-pycadf >= 1.1.0
BuildRequires: python3-python-memcached
BuildRequires: python3-requests >= 2.14.2
BuildRequires: python3-requests-mock
BuildRequires: python3-stestr
BuildRequires: python3-stevedore
BuildRequires: python3-testresources
BuildRequires: python3-testtools
BuildArch: noarch BuildArch: noarch
%if "python%{python_nodots_ver}" == "%{primary_python}"
Obsoletes: python3-keystonemiddleware < %{version}
%else
Conflicts: python3-keystonemiddleware < %{version}
%endif
%python_subpackages
%description %description
This package contains middleware modules designed to provide authentication This package contains middleware modules designed to provide authentication
@@ -55,31 +79,6 @@ and authorization features to web services other than Keystone
The most prominent module is keystonemiddleware.auth_token. This package The most prominent module is keystonemiddleware.auth_token. This package
does not expose any CLI or Python API features. does not expose any CLI or Python API features.
%package -n python3-keystonemiddleware
Summary: Middleware for OpenStack Identity
Requires: python3-WebOb >= 1.7.1
Requires: python3-keystoneauth1 >= 3.12.0
Requires: python3-keystoneclient >= 3.20.0
Requires: python3-oslo.cache >= 1.26.0
Requires: python3-oslo.config >= 5.2.0
Requires: python3-oslo.context >= 2.19.2
Requires: python3-oslo.i18n >= 3.15.3
Requires: python3-oslo.log >= 3.36.0
Requires: python3-oslo.messaging
Requires: python3-oslo.serialization >= 2.18.0
Requires: python3-oslo.utils >= 3.33.0
Requires: python3-pycadf >= 1.1.0
Requires: python3-python-memcached
Requires: python3-requests >= 2.14.2
%description -n python3-keystonemiddleware
This package contains middleware modules designed to provide authentication
and authorization features to web services other than Keystone
The most prominent module is keystonemiddleware.auth_token. This package
does not expose any CLI or Python API features.
This package contains the Python 3.x module
%package -n python-keystonemiddleware-doc %package -n python-keystonemiddleware-doc
Summary: Documentation for Middleware for OpenStack Identity Summary: Documentation for Middleware for OpenStack Identity
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
@@ -91,18 +90,17 @@ BuildRequires: python3-sphinxcontrib-svg2pdfconverter
Documentation for Middleware for OpenStack Identity. Documentation for Middleware for OpenStack Identity.
%prep %prep
%autosetup -p1 -n keystonemiddleware-10.7.1 %autosetup -p1 -n keystonemiddleware-%{version}
%py_req_cleanup
%build %build
%{py3_build} %pyproject_wheel
%install %install
%{py3_install} %pyproject_install
# generate html docs # generate html docs
export PYTHONPATH=. export PYTHONPATH=.
PBR_VERSION=%{version} %sphinx_build -b html doc/source doc/build/html sphinx-build -b html doc/source doc/build/html
# remove the sphinx-build leftovers # remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo} rm -rf doc/build/html/.{doctrees,buildinfo}
@@ -110,11 +108,11 @@ rm -rf doc/build/html/.{doctrees,buildinfo}
rm -v keystonemiddleware/tests/unit/audit/test_logging_notifier.py rm -v keystonemiddleware/tests/unit/audit/test_logging_notifier.py
%{openstack_stestr_run} %{openstack_stestr_run}
%files -n python3-keystonemiddleware %files %{python_files}
%license LICENSE %license LICENSE
%doc ChangeLog README.rst %doc README.rst
%{python3_sitelib}/keystonemiddleware %{python_sitelib}/keystonemiddleware
%{python3_sitelib}/*.egg-info %{python_sitelib}/keystonemiddleware-%{version}.dist-info
%files -n python-keystonemiddleware-doc %files -n python-keystonemiddleware-doc
%doc doc/build/html %doc doc/build/html