<div dir="ltr">This looks great, Christian.<div><br></div><div>Is there anything we need to do to have our buildbot system test it?</div><div><br></div><div>..m<br><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Aug 9, 2016 at 8:10 AM Christian Ehrhardt <<a href="mailto:christian.ehrhardt@canonical.com">christian.ehrhardt@canonical.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>I wanted to give the ML a ping as well about this, so that not only the Pull Request is existing.</div><div>Eventually one here might chime in as well.</div><div><br></div><div>There is a prototype to snap ntpsec at <a href="https://gitlab.com/NTPsec/ntpsec/merge_requests/49" target="_blank">https://gitlab.com/NTPsec/ntpsec/merge_requests/49</a></div><div><br></div><div>I'll quote my PR text here and hope for a great discussion:</div><div><br></div><div>"<span style="color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">Hi, on one hand I worked on packaging ntp (classic) recently and on the other hand I worked a bit with snapcraft (=></span><span style="color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px"> </span><a href="http://snapcraft.io/" rel="nofollow noreferrer" style="font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px;color:rgb(48,132,187);text-decoration:none;margin-top:0px;background-color:transparent" target="_blank">http://snapcraft.io/</a><span style="color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">). I really think ntpsec would be a perfect candidate to exploit snap packaging.</span></div><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">Please consider this an RFC for now - following the spirit of NTPsec contribution policy "Before starting significant work, please propose it and discuss it first" I'll also write to the ML linking to this branch. But also did I not just want to mention snapcraft and run away - instead I thought to provide a prototype that can be tested, but discuss motivation, tech and details before doing some more heavy lifting work.</p><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">My current example is meant for a daily build, but this can easily be changed to whatever you prefer. Snapcraft could - for example - build from a stable branch of your tree automatically or whatever else you want.</p><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">Benefits of exploiting snap(craft) in ntpsec (in my opinion):</p><ul style="padding:0px;color:rgb(92,92,92);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px;margin:6px 0px 6px 28px!important"><li style="line-height:1.6em;margin-top:0px">for security it is often important to be able to push fixes fast to consumers, snaps are great for that as it somewhat cut's out the distributions as a gatekeeper of a release process</li><li style="line-height:1.6em">ntpsec isn't packaged in distributions yet, an upload to the snapstore would make you instantly available on multiple distributions</li><li style="line-height:1.6em">faster development iteration cycles, which is especially useful for new (or newly forked) projects</li><li style="line-height:1.6em">and of course all the benefits listed at <a href="http://snapcraft.io/" rel="nofollow noreferrer" style="color:rgb(48,132,187);text-decoration:none;margin-top:0px;background-color:transparent" target="_blank">http://snapcraft.io/</a></li></ul><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">Limitations:</p><ul style="padding:0px;color:rgb(92,92,92);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px;margin:6px 0px 6px 28px!important"><li style="line-height:1.6em;margin-top:0px">this doesn't use any of the great snap isolation features yet (still using --devmode to get the prototype fast). Implementing those will need a few new interfaces and that effort should be spent after the discussion (but on the good side, you haven't lost anything - just not gained all of the snap isolation features yet).</li><li style="line-height:1.6em">currently there is no snapcraft plugin for waf, so I provided one (but I also started to push it to snapcraft already so it can be dropped from ntpsec in a bit)</li></ul><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">I'm looking forward and hope that the security improvements of ntpsec and those of snap's for packaging will one day stack up to be even better together. Let's discuss.</p><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">Kind Regards Christian</p><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px">P.S. FYI - I'm soon going to vaction - so please don't wonder if there is kind of no-response between 13th and 23rd August. OTOH this gives everyone more time to play and experiment with it.<span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)">"</span></p><p style="margin:6px 0px 0px;color:rgb(92,93,94);font-family:"Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;line-height:21.4286px"><span style="font-family:arial,sans-serif;font-size:small;line-height:normal;color:rgb(34,34,34)"><br></span></p><div><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@ntpsec.org" target="_blank">devel@ntpsec.org</a><br>
<a href="http://lists.ntpsec.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ntpsec.org/mailman/listinfo/devel</a></blockquote></div></div></div></div>