Hello community,
here is the log from the commit of package python-barbicanclient for
openSUSE:Factory checked in at 2019-02-26 22:18:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-barbicanclient (Old)
and /work/SRC/openSUSE:Factory/.python-barbicanclient.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-barbicanclient"
Tue Feb 26 22:18:47 2019 rev:10 rq:672177 version:4.7.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-barbicanclient/python-barbicanclient.changes
2018-12-06 12:19:17.601392540 +0100
+++
/work/SRC/openSUSE:Factory/.python-barbicanclient.new.28833/python-barbicanclient.changes
2019-02-26 22:18:51.310140955 +0100
@@ -1,0 +2,6 @@
+Wed Feb 6 14:59:36 UTC 2019 - [email protected]
+
+- update to version 4.7.2
+ - Secret payload should also be fetched by UUID
+
+-------------------------------------------------------------------
Old:
----
python-barbicanclient-4.7.1.tar.gz
New:
----
python-barbicanclient-4.7.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-barbicanclient.spec ++++++
--- /var/tmp/diff_new_pack.VKm9x4/_old 2019-02-26 22:18:52.022140713 +0100
+++ /var/tmp/diff_new_pack.VKm9x4/_new 2019-02-26 22:18:52.026140711 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-barbicanclient
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: python-barbicanclient
-Version: 4.7.1
+Version: 4.7.2
Release: 0
Summary: Client for the Barbican Key Management API
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/python-barbicanclient
-Source0:
https://files.pythonhosted.org/packages/source/p/python-barbicanclient/python-barbicanclient-4.7.1.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/p/python-barbicanclient/python-barbicanclient-4.7.2.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-cliff >= 2.8.0
++++++ python-barbicanclient-4.7.1.tar.gz -> python-barbicanclient-4.7.2.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-barbicanclient-4.7.1/ChangeLog
new/python-barbicanclient-4.7.2/ChangeLog
--- old/python-barbicanclient-4.7.1/ChangeLog 2018-11-19 21:56:17.000000000
+0100
+++ new/python-barbicanclient-4.7.2/ChangeLog 2019-01-24 00:15:10.000000000
+0100
@@ -1,6 +1,11 @@
CHANGES
=======
+4.7.2
+-----
+
+* Secret payload should also be fetched by UUID
+
4.7.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-barbicanclient-4.7.1/PKG-INFO
new/python-barbicanclient-4.7.2/PKG-INFO
--- old/python-barbicanclient-4.7.1/PKG-INFO 2018-11-19 21:56:17.000000000
+0100
+++ new/python-barbicanclient-4.7.2/PKG-INFO 2019-01-24 00:15:10.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-barbicanclient
-Version: 4.7.1
+Version: 4.7.2
Summary: Client Library for OpenStack Barbican Key Management API
Home-page: https://docs.openstack.org/python-barbicanclient/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-barbicanclient-4.7.1/barbicanclient/tests/v1/test_secrets.py
new/python-barbicanclient-4.7.2/barbicanclient/tests/v1/test_secrets.py
--- old/python-barbicanclient-4.7.1/barbicanclient/tests/v1/test_secrets.py
2018-11-19 21:52:19.000000000 +0100
+++ new/python-barbicanclient-4.7.2/barbicanclient/tests/v1/test_secrets.py
2019-01-24 00:13:13.000000000 +0100
@@ -371,9 +371,11 @@
# Verify the correct URL was used to make the call.
self.assertEqual(self.entity_payload_href, m.last_request.url)
- def test_should_decrypt(self):
+ def test_should_decrypt(self, secret_ref=None):
+ secret_ref = secret_ref or self.entity_href
+
content_types_dict = {'default': 'application/octet-stream'}
- json = self.secret.get_dict(self.entity_href, content_types_dict)
+ json = self.secret.get_dict(secret_ref, content_types_dict)
metadata_response = self.responses.get(
self.entity_href,
request_headers={'Accept': 'application/json'},
@@ -386,7 +388,7 @@
request_headers=request_headers,
content=decrypted)
- secret = self.manager.get(secret_ref=self.entity_href)
+ secret = self.manager.get(secret_ref=secret_ref)
secret_payload = secret.payload
self.assertEqual(decrypted, secret_payload)
@@ -397,6 +399,10 @@
self.assertEqual(self.entity_payload_href,
decryption_response.last_request.url)
+ def test_should_decrypt_using_stripped_uuid(self):
+ bad_href = "http://badsite.com/" + self.entity_id
+ self.test_should_decrypt(bad_href)
+
def test_should_delete_from_manager(self, secret_ref=None):
secret_ref = secret_ref or self.entity_href
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-barbicanclient-4.7.1/barbicanclient/v1/secrets.py
new/python-barbicanclient-4.7.2/barbicanclient/v1/secrets.py
--- old/python-barbicanclient-4.7.1/barbicanclient/v1/secrets.py
2018-11-19 21:52:19.000000000 +0100
+++ new/python-barbicanclient-4.7.2/barbicanclient/v1/secrets.py
2019-01-24 00:13:13.000000000 +0100
@@ -266,10 +266,8 @@
"content-type.")
headers = {'Accept': self.payload_content_type}
- if self._secret_ref[-1] != "/":
- payload_url = self._secret_ref + '/payload'
- else:
- payload_url = self._secret_ref + 'payload'
+ uuid_ref = base.calculate_uuid_ref(self._secret_ref, self._entity)
+ payload_url = uuid_ref + '/payload'
payload = self._api._get_raw(payload_url, headers=headers)
if self.payload_content_type == u'text/plain':
self._payload = payload.decode('UTF-8')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-barbicanclient-4.7.1/python_barbicanclient.egg-info/PKG-INFO
new/python-barbicanclient-4.7.2/python_barbicanclient.egg-info/PKG-INFO
--- old/python-barbicanclient-4.7.1/python_barbicanclient.egg-info/PKG-INFO
2018-11-19 21:56:17.000000000 +0100
+++ new/python-barbicanclient-4.7.2/python_barbicanclient.egg-info/PKG-INFO
2019-01-24 00:15:10.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-barbicanclient
-Version: 4.7.1
+Version: 4.7.2
Summary: Client Library for OpenStack Barbican Key Management API
Home-page: https://docs.openstack.org/python-barbicanclient/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-barbicanclient-4.7.1/python_barbicanclient.egg-info/pbr.json
new/python-barbicanclient-4.7.2/python_barbicanclient.egg-info/pbr.json
--- old/python-barbicanclient-4.7.1/python_barbicanclient.egg-info/pbr.json
2018-11-19 21:56:17.000000000 +0100
+++ new/python-barbicanclient-4.7.2/python_barbicanclient.egg-info/pbr.json
2019-01-24 00:15:10.000000000 +0100
@@ -1 +1 @@
-{"git_version": "c8b10fd", "is_release": true}
\ No newline at end of file
+{"git_version": "f14511d", "is_release": true}
\ No newline at end of file