summaryrefslogtreecommitdiffstats
path: root/presentations/2016-11-30-Profitbricks/index.html
blob: 091c5ae8297c0571646fa9857121ecccf7e0a9cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>jenkins.debian.net or what is Debian doing with all these ressources</title>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">

  <link rel="stylesheet" href="css/reveal.css">
  <link rel="stylesheet" href="css/theme/black.css" id="theme">

  <style type="text/css">
  li {
    margin-top: 28px !important;
  }
  ul ul li {
    margin-top: 16px !important;
  }
  * {
    text-transform: none !important;
  }
  a {
    color: inherit !important;
  }
  code {
    font-size: 90% !important;
  }
  table {
    width: 100%;
  }
  .reveal table td {
    border-bottom: none;
  }
  .reveal section img {
    border: none;
    box-shadow: none;
  }
  </style>

  <!--[if lt IE 9]>
  <script src="lib/js/html5shiv.js"></script>
  <![endif]-->

  <script>
  var link = document.createElement('link');
  link.rel = 'stylesheet';
  link.type = 'text/css';
  link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
  document.getElementsByTagName('head')[0].appendChild( link );
</script>
</head>

<!--

42min :)

a bit of history
	and jenkins

jenkins general:
	irc / mail notifications
	-> bugs are getting filed


d-i
	packages
	manual

lintian
debhelper
debconf-video

debian-edu
	images
	packages
	doc (!) 7 languages

reproducible builds 
	Debian, explain variations!
	/who/
	and qa
	and ximin (pb17)
rebootstrap

jenkins team maintenance
	helmut: rebootstrap
	mapreri + spectranaut: reproducible Debian
	fil: lvc
	tnn: jenkins java support
	sthibault: hurd + accessibility
	steven chamberlain: kfreebsd
	several: reproducible other than Debian

benefits for debian
	countless bug reports
		ie 2670 done ftbfs via reproducible…
	early notifications of problems

announce move to j.d.o
announce new nodes by codethink

-->


<body>
  <div class="reveal">
    <div class="slides" style="text-align: left;">
      <section data-background="images/debian_logo.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	jenkins.debian.net or what is Debian doing with all these ressources
	</h2>
        <h4>
          <br>
          Holger Levsen (h01ger)
        </h4>
      </section>

      <section data-background="images/h01ger.png" data-background-size="15%" data-background-color="black">
        <h2>about me</h2>
        <ul>
          <li class="fragment">Debian user since 1995</li>
          <li class="fragment">Debian contributor since 2001</li>
          <li class="fragment">DebConf organizer, founded the DebConf video team in 2005</li>
          <li class="fragment">Debian developer since 2007</li>
          <li class="fragment">Debian-Edu (Debian for Education), since 2003</li>
          <li class="fragment">Debian-QA</li>
          <li class="fragment">Freelancer at Profitbricks from 2012-2015</li>
        </ul>
      </section>

      <section data-background="images/h01ger.png" data-background-size="15%" data-background-color="black">
        <h2>more about Debian QA and me</h2>
        <ul>
          <li class="fragment">https://piuparts.debian.org/ since 2009</li>
          <li class="fragment">https://jenkins.debian.net/ since 2012</li>
          <li class="fragment">https://reproducible.debian.net/ since 2014</li>
          <li class="fragment">since 2015 funded by the Linux Foundation</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	Profitbricks ressources used by jenkins.debian.net
	</h2>
        <ul>
          <li class="fragment">FIXME: check those numbers</li>
          <li class="fragment">2 datacenters (KA + FRA)</li>
          <li class="fragment">15 machines</li>
          <li class="fragment">131 cores (20 Intel, 111 AMD)</li>
          <li class="fragment">500 GB RAM</li>
          <li class="fragment">3 TB HDD storage</li>
          <li class="fragment">2 TB SDD storage</li>
          <li class="fragment">no static IP addresses</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	Package (collection) installation tests
	</h2>
        <ul>
          <li class="fragment">FIXME:some hundred jobs</li>
          <li class="fragment">wheezy, jessie, stretch, sid</li>
          <li class="fragment">upgrades and new installations tested</li>
        </ul>
      </section>

      <section data-background="images/debian-jenkins.png" data-background-size="10%" data-background-position="90% 10%">
        <h2>
 	g-i-installation tests
	</h2>
        <ul>
          <li class="fragment">tests Debian Installer (d-i) in graphical mode ("g-i") and text mode too</li>
          <li class="fragment">creates videos and screenshots</li>
          <li class="fragment">plain Debian (installations and rescue mode) and Debian Edu</li>
          <li class="fragment">kfreebsd and hurd</li>
          <li class="fragment">finally almost deprecated today</li>
          <li class="fragment">replaced by lvc tests (libvirt-cucumber)</li>
        </ul>
      </section>

      <section data-background="images/rbo.png" data-background-size="25%" data-background-position="90% 10%">
        <h2>
 	 Ressources used by reproducible.debian.net, by architecture
	</h2>
        <ul>
          <li class="fragment">FIXME: check those numbers, page is out of place here</li>
          <li class="fragment">15 amd64 systems, sponsored by Profitbricks</li>
          <li class="fragment">4 i386 systems, sponsored by Profitbricks</li>
          <li class="fragment">22 armhf systems, sponsored by vagrant@d.o, Debian &amp; other donations</li>
          <li class="fragment">soon: 8 arm64 systems, sponsored by codethink.co.uk</li>
        </ul>
      </section>

      <section data-background="images/install.jpg" data-background-size="80%" data-background-color="black">
        <h2>The problem</h2>
        <ul>
          <li class="fragment">Can inspect the source code of free software for flaws</li>
          <li class="fragment">But distributions provide binary/compiled packages</li>
        </ul>
      </section>

      <section>
        <h2>Can we trust this process?</h2>

        <ul>
          <li class="fragment">To get users, go after the developers</li>
          <li class="fragment">Financial incentives to crack developer machines / build infrastructure</li>
          <li class="fragment"><code>CVE-2002-0083</code>: Remote root exploit in OpenSSH (single bit difference in binary)</li>
          <li class="fragment">Kernel module modifying source code when "viewed" by GCC only (see <code>media.ccc.de</code>)</li>
          <li class="fragment">Compromised Apple iOS SDK, <em>Xcodeghost</em>, etc.</li>
        </ul>
      </section>

      <section>
        <h2 style="line-height: 130%;">
          The motivation behind "reproducible" builds is to allow verification
          that no flaws have been introduced during the compilation process.
        </h2>
      </section>

      <section>
        <h2>The solution</h2>

        <ol>
          <li class="fragment">Ensure compilation always identical results</li>
          <li class="fragment">Multiple parties compare compilation results</li>
          <li class="fragment">Attacker needs to infect everybody simultaneously (or they are detected)</li>
        </ol>
      </section>

      <section>
        <h2>Challenges</h2>
        <ul>
        <ul>
          <li class="fragment">Timestamps</li>
          <li class="fragment">Timezones &amp; locales</li>
          <li class="fragment">Non-deterministic file ordering</li>
          <li class="fragment">Dictionary/hash key ordering</li>
          <li class="fragment">Users, groups, <code>umask</code>, environment variables</li>
          <li class="fragment">Build paths</li>
          <li class="fragment">Specifying the environment</li>
        </ul>
        </ul>
      </section>

      <section>
        <h2>Technical advantages</h2>

        <ul>
        <ul>
          <li class="fragment">Faster to build; saves time, money &amp; the environment</li>
          <li class="fragment">Easier to test changes/revisions</li>
          <li class="fragment">Unsafe behaviour (eg. internet access)</li>
          <li class="fragment">Unreliable / non-deterministic behaviours (eg. timing)</li>
          <li class="fragment">Finds bugs in uncommon timezones or locales</li>
          <li class="fragment">Detect corrupted build environments</li>
          <li class="fragment">Find future build failures (eg. expired certificates)</li>
        </ul>
        </ul>
      </section>

      <section data-background="images/debian.jpg" data-background-color="black">
        <h2>Reproducible builds in Debian</h2>

        <p>Continuously build every package twice, varying:</p>

        <ul class="fragment">
          <ul>
            <li class="fragment">Time &amp; date</li>
            <li class="fragment">Hostname &amp; domain name</li>
            <li class="fragment">Filesystem (<code><strike>disorderfs</strike></code>)</li>
            <li class="fragment">Timezone &amp; locale</li>
            <li class="fragment"><code>uid</code> &amp; <code>gid</code></li>
            <li class="fragment">GECOS information, the shell &amp; a bunch of environment variables  </li>
            <li class="fragment">Kernel &amp; CPU type</li>
            <li class="fragment">and more&hellip;</li>
          </ul>
        </ul>
      </section>

      <section data-background="images/testing_status.png">
        &nbsp;
      </section>

      <section data-background="images/stats_bugs_sin_ftbfs_state.png">
        &nbsp;
      </section>

      <section>
        <h2>2016 summit meeting</h2>

        <ul>
          <li>Three-day workshop in Berlin, Germany</li>
          <li>Follow-up to Athens 2015 event</li>
        </ul>

        <br>
        <br>

        <p style="text-align: center;">
          <a href="https://reproducible-builds.org/events/berlin2016/"><code>reproducible-builds.org/events/berlin2016/</code></a>
        </p>
      </section>

      <section>
        <h2>Beyond Debian&hellip;</h2>
        <ul>
          <li class="fragment">coreboot, Fedora, LEDE, OpenWRT, NetBSD, FreeBSD, Arch, Qubes, F-Droid, NixOS, Guix, etc.</li>
          <li class="fragment">Other projects now using "our" testing framework, <code>SOURCE_DATE_EPOCH</code>, <code>.buildinfo</code> file concept</li>
          <li class="fragment">Reproducible Builds summits (Athens, Berlin)</li>
          <li class="fragment">Some challenges moving from <code>debian-</code> prefixes, mailing lists, etc.</li>
          <li class="fragment">Generic tools</li>
        </ul>
      </section>

      <section data-background="images/diffoscope.png">
        &nbsp;
      </section>

      <section>
        <h2>Future work</h2>

        <ul class="fragment">
          <li class="fragment">dak (<code>.buildinfo</code> file support)</li>
          <li class="fragment">How to make it meaningful for end-users</li>
          <li class="fragment">Source code still vulnerable</li>
        </ul>
      </section>


      <section data-background-color="white">
        <h2>Usual thanks:</h2>
        <p>
          <img src="images/cii.png">
          <br>
          <img src="images/lf.png">
          <br>
          <img src="images/profitbricks.jpg">
          <br>
          <img src="images/debian_logo.png">
        </p>
      </section>

      <section data-background="images/wholeworld.jpg" data-background-size="24%" data-background-position="90% 10%">
        <h2>Todays special thanks:</h2>
        <p>
          <img src="images/profitbricks.jpg">
	  <br>
          from Debian and from all folks interested in Reproducible Builds!
        </p>
      </section>

      <section data-background="images/debian.jpg" data-background-color="black">
        <h2 style="text-align: center;">Questions?</h2>

        <br>
        <br>

        <table>
        <tr>
          <td>
            <a href="mailto:holger@debian.org">holger@debian.org</a>
          </td>
          <td style="text-align: right;">
            <code>B8BF 5413 7B09 D35C F026  FE9D 091A B856 069A AA1C</code>
          </td>
        </tr>
        </table>

        <br>

        <p style="text-align: center;">
          <a href="https://jenkins.debian.net/"><code>https://jenkins.debian.net</code></a>
          <br>
          <a href="https://reproducible-builds.org/"><code>https://reproducible-builds.org</code></a>
        </p>
      </section>
    </div>
  </div>

  <script src="lib/js/head.min.js"></script>
  <script src="js/reveal.js"></script>
  <script>
    Reveal.initialize({
      controls: false,
      progress: false,
      history: true
    });
  </script>
</body>
</html>