I was testing upstreams quick start example with the packages we have 
pre-tested in the PPA
=> https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3668

Installing them is fine:
root@t:~# apt install python3-pymacaroons
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libsodium18 python3-libnacl python3-six
The following NEW packages will be installed:
  libsodium18 python3-libnacl python3-pymacaroons python3-six
0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
Need to get 174 kB of archives.
After this operation, 692 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-six all 
1.5.2-1ubuntu1.1 [8438 B]
Get:2 http://ppa.launchpad.net/ci-train-ppa-service/3668/ubuntu/ trusty/main 
libsodium18 amd64 1.0.8-5~ubuntu14.04.1 [145 kB]
Get:3 http://ppa.launchpad.net/ci-train-ppa-service/3668/ubuntu/ trusty/main 
python3-libnacl all 1.4.5-0ubuntu1~ubuntu14.04.1 [9662 B]
Get:4 http://ppa.launchpad.net/ci-train-ppa-service/3668/ubuntu/ trusty/main 
python3-pymacaroons all 0.9.2-0ubuntu1~ubuntu14.04.1 [10.1 kB]
Fetched 174 kB in 0s (606 kB/s)                     
Selecting previously unselected package libsodium18:amd64.
(Reading database ... 25108 files and directories currently installed.)
Preparing to unpack .../libsodium18_1.0.8-5~ubuntu14.04.1_amd64.deb ...
Unpacking libsodium18:amd64 (1.0.8-5~ubuntu14.04.1) ...
Selecting previously unselected package python3-libnacl.
Preparing to unpack .../python3-libnacl_1.4.5-0ubuntu1~ubuntu14.04.1_all.deb ...
Unpacking python3-libnacl (1.4.5-0ubuntu1~ubuntu14.04.1) ...
Selecting previously unselected package python3-six.
Preparing to unpack .../python3-six_1.5.2-1ubuntu1.1_all.deb ...
Unpacking python3-six (1.5.2-1ubuntu1.1) ...
Selecting previously unselected package python3-pymacaroons.
Preparing to unpack 
.../python3-pymacaroons_0.9.2-0ubuntu1~ubuntu14.04.1_all.deb ...
Unpacking python3-pymacaroons (0.9.2-0ubuntu1~ubuntu14.04.1) ...
Setting up libsodium18:amd64 (1.0.8-5~ubuntu14.04.1) ...
Setting up python3-libnacl (1.4.5-0ubuntu1~ubuntu14.04.1) ...
Setting up python3-six (1.5.2-1ubuntu1.1) ...
Setting up python3-pymacaroons (0.9.2-0ubuntu1~ubuntu14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.14) ...


Then running the test against that...
root@t:~# python3 create.py 
location cool-picture-service.example.com
identifier key-for-bob
cid picture_id = bobs_cool_cat.jpg
signature 83d8fa280b09938d3cffe045634f544ffaf712ff2c51ac34828ae8a42b277f8f
MDAyZWxvY2F0aW9uIGNvb2wtcGljdHVyZS1zZXJ2aWNlLmV4YW1wbGUuY29tCjAwMWJpZGVudGlmaWVyIGtleS1mb3ItYm9iCjAwMjdjaWQgcGljdHVyZV9pZCA9IGJvYnNfY29vbF9jYXQuanBnCjAwMmZzaWduYXR1cmUgg9j6KAsJk408_-BFY09UT_r3Ev8sUaw0goropCsnf48K
Sucessfully verified


Working fine, I attached the test script used with this comment ...

** Attachment added: "simple test of pymacaroon functionality"
   
https://bugs.launchpad.net/ubuntu/+source/libsodium/+bug/1817665/+attachment/5241737/+files/create.py

** Description changed:

  [Impact]
  
-  * Python handling of macraroons is not yet available in Trusty.
-    From the description:
-    Macaroons, like cookies, are a form of bearer credential. Unlike opaque
-    tokens, macaroons embed caveats that define specific authorization
-    requirements for the target service, the service that issued the root
-    macaroon and which is capable of verifying the integrity of macaroons it
-    receives.
-    Macaroons allow for delegation and attenuation of authorization.  They are
-    simple and fast to verify, and decouple authorization policy from the
-    enforcement of that policy.
+  * Python handling of macraroons is not yet available in Trusty.
+    From the description:
+    Macaroons, like cookies, are a form of bearer credential. Unlike opaque
+    tokens, macaroons embed caveats that define specific authorization
+    requirements for the target service, the service that issued the root
+    macaroon and which is capable of verifying the integrity of macaroons 
+    it receives.
+    Macaroons allow for delegation and attenuation of authorization.  They 
+    are simple and fast to verify, and decouple authorization policy from 
+    the enforcement of that policy.
  
-  * Modern entitlement handling is important and shall be used in as a 
dependency
-    of ubuntu-advantage-tools will deliver the abilty to enable Ubuntu 
Advantage
-    support entitlement
+  * Modern entitlement handling is important and shall be used in as a 
+    dependency of ubuntu-advantage-tools will deliver the abilty to
+    enable Ubuntu Advantage support entitlement
  
-  * The packages do not exist in Trusty yet, so this is no update, but instead
-    will hit xenial new-queue.
+  * The packages do not exist in Trusty yet, so this is no update, but 
+    instead will hit xenial new-queue.
  
-  * The developer working on UA Advantage client confirmed that the versions in
-    Xenial will be sufficient. Therefore we would want to backport the Xenial 
versions to Trusty 
-    which will also make it more easy to keep a sane upgrade path.
+  * The developer working on UA Advantage client confirmed that the 
+    versions in Xenial will be sufficient. Therefore we would want to 
+    backport the Xenial versions to Trusty which will also make it more 
+    easy to keep a sane upgrade path.
  
  [Test Case]
  
-  * Use pymacarons e.g. via the quick start entry in the upstram project
-    https://github.com/ecordell/pymacaroons#quickstart
+  * Use pymacarons e.g. via the quick start entry in the upstram project
+    https://github.com/ecordell/pymacaroons#quickstart
+    Comment #3 has a test script attached to ease that.
  
-  * Since all of this is for the new UA-Tools to work on Trusty we can also 
ask Chad Smith to run 
-    tests with UA-Tools there.
+  * Since all of this is for the new UA-Tools to work on Trusty we can also 
+    ask Chad Smith to run tests with UA-Tools there.
  
  [Regression Potential]
  
-  * Things might not work as expected, but an actual regression is near 
impossible since the 
-    packages are NEW to trusty. The one potential regression that comes to 
mind is that programs 
-    could have had made "try ... from pymacaron import API, letsgo; except: 
fallback".
-    This would then no more use the fallback code, but given that there was no 
dependency to it 
-    back in Trusty this is very unlikely.
-    Even today the following searches are not too crowded:
-    https://codesearch.debian.net/search?q=import+pymacaroons
-    https://codesearch.debian.net/search?q=from+pymacaroons
-    And reverse depends show only snapcraft on top of that in Ubuntu
-    TL;DR a theoretical risk exists, but I really thinks it is not real to 
bite us.
+  * Things might not work as expected, but an actual regression is near 
+    impossible since the packages are NEW to trusty. The one potential 
+    regression that comes to mind is that programs could have had made
+    "try ... from pymacaron import API, letsgo; except: fallback".
+    This would then no more use the fallback code, but given that there was 
+    no dependency to it back in Trusty this is very unlikely.
+    Even today the following searches are not too crowded:
+    https://codesearch.debian.net/search?q=import+pymacaroons
+    https://codesearch.debian.net/search?q=from+pymacaroons
+    And reverse depends show only snapcraft on top of that in Ubuntu
+    TL;DR a theoretical risk exists, but I really thinks it is not real to 
+     bite us.
  
  [Other Info]
-  
-  * There is also a MIR going on to promote those packages to main in Xenial / 
Trusty.
-    See bug 1746772 bug 1621386 and bug 1817327
  
-  * There is a PPA that ensures buildability and can be used for further 
pre-checks if needed
-    It is at https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3668
+  * There is also a MIR going on to promote those packages to main in 
+    Xenial / Trusty. See bug 1746772 bug 1621386 and bug 1817327
+ 
+  * There is a PPA that ensures buildability and can be used for further 
+    pre-checks if needed It is at
+    https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3668

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1817665

Title:
  Please SRU the pymacaroons stack to Trusty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libsodium/+bug/1817665/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to