/srv/irclogs.ubuntu.com/2018/03/30/#launchpad-dev.txt

=== Peng__ is now known as Peng
xnoxcjwatson, juliank - downloaded SKS webserver source code, to browse what it supports.... And I think everything what we need already exists09:29
xnoxhttps://keyserver.ubuntu.com/pks/lookup?op=get&exact=on&search=0x2d9df1e22f3416238d46f49f157951fe4031d28709:30
xnoxbah wrong url09:30
xnoxhttps://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&exact=on&search=0x2d9df1e22f3416238d46f49f157951fe4031d28709:30
xnoxdownlaods ASC armored public key, with exact match on the fingerprint.09:30
xnoxit's not clean, but it's perfectly usable by the new enough apt.09:31
xnox(in the web-browser that gets downloaded as gpgkey.asc)09:31
cjwatsonxnox: I mean, we could, but I'd rather just use the existing interfaces that LP already uses.10:06
cjwatsoni.e. retrieve the key in the usual way (which is op=get&exact=on) and then format it ourselves10:06
cjwatsonthat way we can cache it using our existing strategies10:07
xnoxas in launchpad.net to proxy the results for that.10:07
xnoxwithout 'options=mp' one gets and html page with header bar; with 'options=mp' one gets plain text, armored key10:08
xnoxso if you are adding code in launchpad to fetch keys, 'options=mp' is useful.10:08
cjwatsonWe already have code in Launchpad to fetch keys10:09
cjwatsonlib/lp/services/gpg/handler.py10:09
* xnox looks10:09
cjwatsonSo I'd rather fetch the key in the usual way we already do, and then use gpgme to armor it10:09
cjwatsonBecause that way the same keyserver result can be cached locally and has a better chance of being useful for other requests10:10
xnoxack10:11
cjwatsonIn fact we already have all the necessary code.10:13
cjwatsonPymeKey.export will do it10:13
cjwatson(Because PymeKey._getContext sets armor = True10:14
cjwatson)10:14
cjwatsonSo it should literally be just handler = getUtility(IGPGHandler); pub_key = handler.retrieveKey(fingerprint); key_text = pub_key.export()10:15
cjwatsonSorry, I didn't realise you thought we thought we'd need any special keyserver support for this.10:15
cjwatsonCould have saved you the bother.10:15
cjwatsonwgrant: Could you re-review https://code.launchpad.net/~cjwatson/launchpad/job-oops-timeline/+merge/341554, please?  I added some gadgetry to avoid BranchScanJob producing giant timelines, since that seems likely to be the worst offender.20:43
wgrantcjwatson: Ah, clever.21:35
cjwatsonThanks.22:08
cjwatsonAlso, if you reference any kind of model object from your timeline then the resulting reference cycles are *hell* to debug.22:08
cjwatsonI tried using objgraph which sort of vaguely helped a little but also produced enormous output.22:09

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!