Merge "Fix authentication bypass by empty URL-Signature"

This commit is contained in:
Zuul authored and Gerrit Code Review committed 2026-09-24 17:53:28 +00:00
commit c3fa8232f2
2 files changed
+6 -1

No files matched your search

@@ -0,0 +1,5 @@
---
security:
- |
`Bug 2164987 <https://bugs.launchpad.net/zaqar/+bug/2164987>`_ : Fixed
authentication bypass caused by an empty URL-Signature header.
+1 -1
View File
@@ -38,7 +38,7 @@ def verify_pre_signed_url(key, req, resp, params):
paths = headers.get('URL-PATHS', '').split(',')
signature = headers.get('URL-SIGNATURE')
if not signature:
if signature is None:
return
if req.method not in methods: