1
00:00:00,000 --> 00:00:00,791
Last year,

2
00:00:01,125 --> 00:00:03,416
we started building the simplest,

3
00:00:03,833 --> 00:00:06,208
single-purpose, single-tenant CDN

4
00:00:06,208 --> 00:00:07,458
for changelog.com.

5
00:00:07,958 --> 00:00:10,291
It's based on open source Varnish,

6
00:00:10,291 --> 00:00:11,416
and it runs globally

7
00:00:11,416 --> 00:00:14,375
across 16 Fly.io regions.

8
00:00:15,750 --> 00:00:17,166
And during the first

9
00:00:17,166 --> 00:00:18,541
"Let's build a CDN" session

10
00:00:18,541 --> 00:00:19,833
we ended on...

11
00:00:20,583 --> 00:00:21,666
It's also only available

12
00:00:21,666 --> 00:00:23,083
in Varnish Enterprise.

13
00:00:24,208 --> 00:00:25,166
What, SSL?

14
00:00:25,833 --> 00:00:26,125
Yeah.

15
00:00:28,000 --> 00:00:28,416
Really?

16
00:00:29,208 --> 00:00:29,625
Yeah.

17
00:00:30,375 --> 00:00:30,916
Okay.

18
00:00:31,875 --> 00:00:32,500
Okay, well this is not

19
00:00:32,500 --> 00:00:33,541
going to work then, is it?

20
00:00:34,666 --> 00:00:36,333
"This is not going to work."

21
00:00:36,875 --> 00:00:38,708
The problem is that out of the box,

22
00:00:38,708 --> 00:00:40,750
Varnish open source does not support

23
00:00:40,750 --> 00:00:43,750
HTTPS backends, they have to be HTTP.

24
00:00:45,125 --> 00:00:45,916
So enter Nabeel!

25
00:00:46,583 --> 00:00:48,583
The same one that three years ago

26
00:00:48,875 --> 00:00:50,166
introduced us to KCert,

27
00:00:50,708 --> 00:00:52,666
a simpler alternative to cert-manager,

28
00:00:53,166 --> 00:00:54,291
and it's so nice to get

29
00:00:54,291 --> 00:00:55,500
together again with you, Nabeel!

30
00:00:55,958 --> 00:00:57,833
Yeah thanks, great to be here, yeah.

31
00:00:58,458 --> 00:01:00,083
You said something, this is not the first

32
00:01:00,083 --> 00:01:01,166
time that we're doing this, right?

33
00:01:02,750 --> 00:01:04,000
So just before we started,

34
00:01:04,000 --> 00:01:04,791
you were saying...

35
00:01:04,875 --> 00:01:06,083
"Third time is the charm."

36
00:01:06,833 --> 00:01:07,875
So this is...

37
00:01:07,875 --> 00:01:09,416
our third attempt

38
00:01:09,416 --> 00:01:10,791
at wrapping this up.

39
00:01:11,166 --> 00:01:12,000
We got really close

40
00:01:12,000 --> 00:01:13,041
both times, but yeah...

41
00:01:13,583 --> 00:01:13,916
Right.

42
00:01:14,166 --> 00:01:16,041
And it was a huge outage last weekend,

43
00:01:16,041 --> 00:01:17,708
so that just, like, derailed us a little bit

44
00:01:18,333 --> 00:01:20,375
And before that, we just weren't finished,

45
00:01:20,375 --> 00:01:21,541
there were a couple of things left.

46
00:01:21,541 --> 00:01:23,000
So whenever you think you're done

47
00:01:23,000 --> 00:01:25,291
and you want to do it, like record

48
00:01:25,291 --> 00:01:26,458
the actual thing, you realize,

49
00:01:26,458 --> 00:01:27,833
ah... that one thing.

50
00:01:28,416 --> 00:01:30,000
Tests, for example.

51
00:01:30,000 --> 00:01:31,541
Yeah, tests, right? So I mean, you know,

52
00:01:31,916 --> 00:01:33,500
from last Sunday, we were

53
00:01:33,500 --> 00:01:34,333
supposed to, we were trying

54
00:01:34,333 --> 00:01:36,333
to finish it on Sunday last week, and

55
00:01:37,166 --> 00:01:38,666
we didn't and, you know, so

56
00:01:38,666 --> 00:01:40,458
in the meantime, I had enough

57
00:01:40,458 --> 00:01:42,541
time to write tests, and I found an edge

58
00:01:42,541 --> 00:01:43,750
case in the code where it

59
00:01:43,750 --> 00:01:44,916
wasn't working correctly,

60
00:01:45,416 --> 00:01:46,333
wasn't handling, I think,

61
00:01:46,333 --> 00:01:48,791
query parameters on the URL correctly.

62
00:01:49,291 --> 00:01:52,083
And I also cut the code in half,

63
00:01:52,083 --> 00:01:54,166
so it went down from 100 lines to 50 lines.

64
00:01:54,166 --> 00:01:56,291
So I think it was worth it then.

65
00:01:56,458 --> 00:01:58,916
Yeah, I love that idea of keeping

66
00:01:58,916 --> 00:02:01,083
the lines of config as little as possible,

67
00:02:01,083 --> 00:02:02,833
or the lines of code as little as possible,

68
00:02:02,833 --> 00:02:03,875
which is how we started

69
00:02:03,875 --> 00:02:05,458
the whole CDN adventure.

70
00:02:05,458 --> 00:02:07,916
First of all, I'm wondering what is about

71
00:02:07,916 --> 00:02:10,958
TLS and SSL that makes it interesting for you,

72
00:02:10,958 --> 00:02:12,208
because you keep working

73
00:02:12,208 --> 00:02:13,458
in this problem space.

74
00:02:14,041 --> 00:02:15,750
Why? How? How come?

75
00:02:15,750 --> 00:02:17,458
Like, what attracts you to it?

76
00:02:17,458 --> 00:02:18,916
That's a really good question.

77
00:02:18,916 --> 00:02:22,333
I think I am fascinated by

78
00:02:22,875 --> 00:02:24,333
I'm interested in encryption

79
00:02:24,333 --> 00:02:26,083
and security in that sense, right.

80
00:02:26,250 --> 00:02:28,250
How do you secure your data?

81
00:02:28,250 --> 00:02:29,583
How do you secure your connections?

82
00:02:29,583 --> 00:02:30,750
Like, between the servers,

83
00:02:30,750 --> 00:02:32,666
and I find the idea of

84
00:02:32,666 --> 00:02:34,500
these asymmetric keys,

85
00:02:34,500 --> 00:02:35,791
the public key and the private key,

86
00:02:35,791 --> 00:02:37,833
I just find it a very interesting concept.

87
00:02:38,458 --> 00:02:39,166
And so I kind of just

88
00:02:39,166 --> 00:02:40,375
like playing with them.

89
00:02:40,375 --> 00:02:42,291
I do also think that

90
00:02:43,375 --> 00:02:45,291
the tools that exist today,

91
00:02:45,291 --> 00:02:48,791
most of them just aren't easy to use

92
00:02:48,791 --> 00:02:50,541
and they could be a lot easier.

93
00:02:50,541 --> 00:02:52,750
And so I think those are the two factors

94
00:02:52,750 --> 00:02:54,500
that attract me to that.

95
00:02:54,500 --> 00:02:56,583
Well, now we will dig a little bit in that

96
00:02:56,583 --> 00:02:58,083
because I did a bit of research

97
00:02:58,083 --> 00:02:58,916
and we looked at it

98
00:02:58,916 --> 00:03:01,375
in our previous attempts SSL in Varnish

99
00:03:01,375 --> 00:03:02,666
it's a fascinating topic

100
00:03:02,666 --> 00:03:04,208
and I just kept pulling on the thread,

101
00:03:04,666 --> 00:03:05,958
and wow! Wow!

102
00:03:05,958 --> 00:03:07,458
So we will circle back to that.

103
00:03:07,791 --> 00:03:08,250
Yeah.

104
00:03:08,250 --> 00:03:08,875
So...

105
00:03:09,541 --> 00:03:10,583
How is KCert doing?

106
00:03:10,583 --> 00:03:12,541
It's been some number of years.

107
00:03:13,375 --> 00:03:14,416
Is it still going?

108
00:03:14,416 --> 00:03:15,250
Is it still a thing?

109
00:03:15,458 --> 00:03:16,708
Yeah, you know,

110
00:03:16,708 --> 00:03:18,000
people do still use it

111
00:03:18,000 --> 00:03:19,166
as far as I'm aware.

112
00:03:19,166 --> 00:03:20,083
That's a good question, actually.

113
00:03:20,083 --> 00:03:21,833
why don't I take a quick look now at Docker?

114
00:03:21,833 --> 00:03:23,541
Yeah, it hasn't been updated in a year.

115
00:03:25,083 --> 00:03:27,791
But it says over 50k downloads.

116
00:03:27,791 --> 00:03:29,333
So not super popular, really.

117
00:03:29,333 --> 00:03:31,166
Last year, someone came in

118
00:03:31,166 --> 00:03:32,875
and made a lot of

119
00:03:32,875 --> 00:03:34,291
suggested improvements.

120
00:03:34,291 --> 00:03:35,833
And I really appreciate

121
00:03:35,833 --> 00:03:36,708
the changes they made.

122
00:03:36,708 --> 00:03:39,291
They really did improve several things.

123
00:03:39,625 --> 00:03:40,833
But they submitted it

124
00:03:40,833 --> 00:03:42,750
all in one giant PR.

125
00:03:42,750 --> 00:03:44,125
I started to review it,

126
00:03:44,125 --> 00:03:45,250
and there were just so many different

127
00:03:45,250 --> 00:03:46,083
things that I needed to

128
00:03:46,083 --> 00:03:47,416
change or wanted to like,

129
00:03:47,416 --> 00:03:48,833
you know, clean up first.

130
00:03:49,333 --> 00:03:50,625
And I just ran out of time.

131
00:03:51,083 --> 00:03:52,625
You know, it was maybe a couple months

132
00:03:52,625 --> 00:03:53,708
before the baby was born.

133
00:03:53,708 --> 00:03:54,375
And then the baby was born.

134
00:03:54,375 --> 00:03:56,375
And yeah, no more time for anything.

135
00:03:56,375 --> 00:03:57,583
Big pull requests,

136
00:03:57,583 --> 00:03:58,666
not a good idea.

137
00:03:58,666 --> 00:03:59,791
No, keep them small.

138
00:03:59,791 --> 00:04:01,750
In hindsight, he could have

139
00:04:01,750 --> 00:04:03,208
split it into like five

140
00:04:03,208 --> 00:04:04,833
pull requests, you know,

141
00:04:04,833 --> 00:04:06,750
and it would have been a lot easier.

142
00:04:06,750 --> 00:04:07,166
Yeah,

143
00:04:07,458 --> 00:04:08,541
Yeah, but thank you for the contribution

144
00:04:08,541 --> 00:04:10,416
though, but life happened.

145
00:04:10,625 --> 00:04:11,000
Yeah.

146
00:04:11,666 --> 00:04:13,333
Okay, do you still use KCert?

147
00:04:14,375 --> 00:04:18,583
I don't. So, you know, when I started

148
00:04:18,583 --> 00:04:20,916
with KCert, my goal was to remove

149
00:04:20,916 --> 00:04:22,833
the cert-manager part of

150
00:04:22,833 --> 00:04:24,750
my Kubernetes cluster with, you know,

151
00:04:24,750 --> 00:04:25,750
replace it with KCert.

152
00:04:26,208 --> 00:04:27,500
And I achieved that.

153
00:04:28,458 --> 00:04:29,708
But then I was in a situation

154
00:04:29,708 --> 00:04:32,958
where I was using nginx plus KCert, 

155
00:04:32,958 --> 00:04:35,666
you know, the nginx-ingress...

156
00:04:36,458 --> 00:04:37,666
Or is it ingress-nginx?

157
00:04:37,666 --> 00:04:39,583
I forget what's the name.

158
00:04:39,583 --> 00:04:41,000
I think both exist actually.

159
00:04:42,250 --> 00:04:43,083
But then I got to thinking:

160
00:04:43,083 --> 00:04:43,958
Oh, you know...

161
00:04:44,291 --> 00:04:45,041
I think I can write

162
00:04:45,041 --> 00:04:46,833
my own proxy too, you know?

163
00:04:46,833 --> 00:04:48,416
And then I could have

164
00:04:48,416 --> 00:04:50,375
one piece of software

165
00:04:50,375 --> 00:04:52,083
that is my reverse proxy

166
00:04:52,083 --> 00:04:54,041
and does my certificate management.

167
00:04:54,041 --> 00:04:56,333
So what I ended up doing was, I took,

168
00:04:56,333 --> 00:04:57,666
I actually just copy pasted

169
00:04:57,666 --> 00:04:58,875
the code from KCert

170
00:04:59,291 --> 00:05:02,791
put it into a new project with...

171
00:05:02,791 --> 00:05:04,291
Under the hood I'm using YARP,

172
00:05:04,291 --> 00:05:06,625
which is a .NET library

173
00:05:06,625 --> 00:05:08,875
for implementing reverse proxies.

174
00:05:09,291 --> 00:05:11,458
YARP stands for "Yet Another Reverse Proxy"

175
00:05:11,458 --> 00:05:12,125
Right.

176
00:05:12,458 --> 00:05:13,416
And that tells you everything you

177
00:05:13,416 --> 00:05:14,541
need to know about the project.

178
00:05:14,708 --> 00:05:16,166
Yeah, exactly.

179
00:05:18,916 --> 00:05:19,583
And so, yeah,

180
00:05:19,583 --> 00:05:21,125
so my Kubernetes cluster...

181
00:05:21,875 --> 00:05:23,916
Well, I'm actually off of Kubernetes now,

182
00:05:23,916 --> 00:05:26,833
but for a very long time I was running...

183
00:05:27,958 --> 00:05:29,083
I was running my Kubernetes cluster

184
00:05:29,083 --> 00:05:30,916
without nginx, without cert-manager,

185
00:05:30,916 --> 00:05:33,000
just with my custom piece of code.

186
00:05:33,416 --> 00:05:36,500
And I do want to open source it,

187
00:05:36,500 --> 00:05:38,666
but it's just not ready yet

188
00:05:38,666 --> 00:05:40,208
for open sourcing, yeah.

189
00:05:40,208 --> 00:05:40,958
You're not in a place

190
00:05:40,958 --> 00:05:42,500
to accept big pull requests.

191
00:05:42,500 --> 00:05:43,958
That's what it is.

192
00:05:43,958 --> 00:05:45,333
Yeah, yeah, exactly.

193
00:05:45,333 --> 00:05:46,333
It's just so fun to

194
00:05:46,333 --> 00:05:47,458
work on it on my own too.

195
00:05:47,458 --> 00:05:48,625
Like, I can just make changes.

196
00:05:48,916 --> 00:05:50,958
I'm now rewriting it from C# to Go,

197
00:05:50,958 --> 00:05:52,125
you know, like, so yeah, it's just like

198
00:05:52,125 --> 00:05:53,375
you can just do anything, you know,

199
00:05:53,375 --> 00:05:54,750
without having to worry about like

200
00:05:54,750 --> 00:05:55,875
breaking a bunch of people.

201
00:05:56,083 --> 00:05:56,708
Yeah.

202
00:05:57,333 --> 00:05:58,583
It is nice, I have to say.

203
00:05:58,833 --> 00:05:59,625
I forget which

204
00:05:59,625 --> 00:06:00,541
project it was, but there

205
00:06:00,541 --> 00:06:02,791
was one and I'll dig it up.

206
00:06:03,083 --> 00:06:04,708
The author, the original author,

207
00:06:05,083 --> 00:06:07,541
he just disabled issues and pull requests.

208
00:06:07,916 --> 00:06:08,416
He said,

209
00:06:08,708 --> 00:06:10,541
I forget which one. It was a popular one.

210
00:06:10,541 --> 00:06:12,000
Again, I'll look for it.

211
00:06:12,541 --> 00:06:13,583
but I really like that approach,

212
00:06:13,916 --> 00:06:15,166
you know, like, and I'm wondering,

213
00:06:15,166 --> 00:06:16,458
should we do the same for Pipely?

214
00:06:16,458 --> 00:06:17,333
Maybe not, maybe not.

215
00:06:17,583 --> 00:06:18,958
Let's just not get carried away.

216
00:06:18,958 --> 00:06:20,166
But I think it's an interesting idea

217
00:06:20,625 --> 00:06:21,750
where, you know, you have like

218
00:06:21,750 --> 00:06:23,333
an idea for the project.

219
00:06:23,333 --> 00:06:24,666
I don't know how others would contribute,

220
00:06:24,666 --> 00:06:25,916
maybe email you patches?

221
00:06:25,916 --> 00:06:26,875
I hear that's still a thing.

222
00:06:28,958 --> 00:06:29,750
You know?

223
00:06:30,333 --> 00:06:31,500
Like, I'll push back and say,

224
00:06:31,500 --> 00:06:33,583
I think maybe you should, right?

225
00:06:33,583 --> 00:06:34,500
Because I mean,

226
00:06:34,500 --> 00:06:36,916
especially if you think about KCert,

227
00:06:37,166 --> 00:06:38,000
you know, my personal

228
00:06:38,000 --> 00:06:39,500
reverse proxy that I'm building,

229
00:06:39,875 --> 00:06:41,041
Pipely, right?

230
00:06:41,041 --> 00:06:44,083
They're very focused on solving

231
00:06:44,083 --> 00:06:46,708
the needs of the author of that tool, right?

232
00:06:46,708 --> 00:06:47,125
Yeah.

233
00:06:47,500 --> 00:06:48,541
So I'm just writing this

234
00:06:48,541 --> 00:06:49,666
to solve it for myself.

235
00:06:50,375 --> 00:06:51,583
And maybe the right

236
00:06:51,583 --> 00:06:53,625
thing is for, you know,

237
00:06:53,625 --> 00:06:54,666
if someone wants to use it,

238
00:06:54,666 --> 00:06:55,666
they should just fork it,

239
00:06:56,000 --> 00:06:57,250
make their own little tweaks,

240
00:06:57,250 --> 00:06:59,000
and it'll be a little bit of a pain

241
00:06:59,000 --> 00:07:00,541
to, like, merge future updates

242
00:07:00,541 --> 00:07:01,125
if they want...

243
00:07:02,541 --> 00:07:04,041
But then it just gives them the control.

244
00:07:04,041 --> 00:07:05,208
And if the project is small enough,

245
00:07:05,208 --> 00:07:06,750
that's not really super painful.

246
00:07:06,750 --> 00:07:07,500
Yeah, yeah.

247
00:07:08,000 --> 00:07:09,250
You could leave like, you know,

248
00:07:09,833 --> 00:07:10,666
contributions through,

249
00:07:10,666 --> 00:07:12,666
you know, pull requests open, right?

250
00:07:12,666 --> 00:07:13,750
Like people can propose

251
00:07:13,750 --> 00:07:14,916
changes if they want to.

252
00:07:16,291 --> 00:07:17,333
But no issues, maybe?

253
00:07:17,333 --> 00:07:18,041
Interesting.

254
00:07:18,041 --> 00:07:18,500
Well,

255
00:07:18,500 --> 00:07:19,708
when we'll have that problem,

256
00:07:19,708 --> 00:07:20,833
when there's too many issues

257
00:07:21,416 --> 00:07:22,791
and we can't, you know, do

258
00:07:23,625 --> 00:07:25,125
the maintenance that's required

259
00:07:25,416 --> 00:07:26,041
rather than

260
00:07:26,041 --> 00:07:27,458
you know, issues pilling up,

261
00:07:27,458 --> 00:07:28,250
that is an idea.

262
00:07:28,708 --> 00:07:29,583
You know what?

263
00:07:29,583 --> 00:07:29,958
Yeah,

264
00:07:29,958 --> 00:07:31,375
if it's a super popular project,

265
00:07:31,375 --> 00:07:32,708
I can imagine just closing

266
00:07:32,708 --> 00:07:33,916
pull requests and issues, right,

267
00:07:33,916 --> 00:07:35,125
just to avoid the bombardment.

268
00:07:35,375 --> 00:07:37,375
And if I recall, I think it's SQLite,

269
00:07:37,625 --> 00:07:39,041
actually, that's the one

270
00:07:39,041 --> 00:07:40,333
that's close to contributions.

271
00:07:40,333 --> 00:07:41,541
Yeah, I think you may be right.

272
00:07:41,708 --> 00:07:42,166
You know what?

273
00:07:42,166 --> 00:07:43,541
Let's check it out.

274
00:07:44,291 --> 00:07:46,125
They work for... okay.

275
00:07:47,625 --> 00:07:49,000
And then the second paragraph

276
00:07:49,000 --> 00:07:50,041
or second section of that.

277
00:07:50,041 --> 00:07:51,958
Open-source, not Open-Contribution.

278
00:07:51,958 --> 00:07:52,625
It's open-source.

279
00:07:52,833 --> 00:07:53,500
Okay.

280
00:07:53,500 --> 00:07:55,333
Let's talk about sql-exterminator.

281
00:07:55,791 --> 00:07:57,875
And I would like to talk about...

282
00:07:57,875 --> 00:07:59,041
Sorry, what did I say?

283
00:07:59,041 --> 00:08:00,291
tls-exterminator, please!

284
00:08:03,416 --> 00:08:04,958
Crazy, you know, I didn't mean that.

285
00:08:04,958 --> 00:08:07,041
Okay, good thing this is not live.

286
00:08:08,125 --> 00:08:09,541
It's fun, it's fun....

287
00:08:09,958 --> 00:08:10,416
All right.

288
00:08:19,125 --> 00:08:21,541
So, before we talk about tls-exterminator,

289
00:08:21,833 --> 00:08:24,083
and the issue, and the pull request

290
00:08:24,083 --> 00:08:25,458
that you've opened Nabeel,

291
00:08:26,416 --> 00:08:27,500
let's just do a quick recap

292
00:08:27,500 --> 00:08:28,708
of what Pipely is.

293
00:08:28,708 --> 00:08:30,333
I mean, it's pretty much right here

294
00:08:30,333 --> 00:08:31,708
in the about page.

295
00:08:32,916 --> 00:08:34,458
20-line Varnish config

296
00:08:34,458 --> 00:08:36,041
that we deploy around the world.

297
00:08:36,375 --> 00:08:38,625
And it's like: Look at our CDN!

298
00:08:39,750 --> 00:08:41,291
It has quite a bit of history here.

299
00:08:41,291 --> 00:08:41,958
You can just like click

300
00:08:41,958 --> 00:08:43,666
the links and see, you know,

301
00:08:43,666 --> 00:08:44,750
what was there.

302
00:08:45,250 --> 00:08:46,416
This is what we're doing now:

303
00:08:46,416 --> 00:08:47,875
Support TLS origins.

304
00:08:47,875 --> 00:08:48,666
This is the...

305
00:08:49,166 --> 00:08:50,958
a.k.a. Roadmap step

306
00:08:50,958 --> 00:08:52,208
that we're currently at.

307
00:08:52,458 --> 00:08:52,916
Yeah.

308
00:08:53,166 --> 00:08:55,083
So, remember this?

309
00:08:56,166 --> 00:08:56,875
Oh yeah.

310
00:08:57,416 --> 00:08:58,875
A simpler alternative to...

311
00:09:00,333 --> 00:09:01,375
A little bit younger.

312
00:09:01,833 --> 00:09:03,291
I had less hair there,

313
00:09:03,291 --> 00:09:04,166
if that's possible.

314
00:09:05,416 --> 00:09:10,208
And this was March 18th, 2022,

315
00:09:10,208 --> 00:09:12,375
so, it's coming up to 3 years.

316
00:09:12,583 --> 00:09:13,416
Yeah, yeah.

317
00:09:13,416 --> 00:09:14,375
It's coming up to 3 years

318
00:09:14,375 --> 00:09:15,750
crazy how time flies, cool.

319
00:09:15,958 --> 00:09:16,416
It does!

320
00:09:16,416 --> 00:09:18,250
So, this is the issue that you created.

321
00:09:18,541 --> 00:09:20,083
Tell us a little bit about it.

322
00:09:20,958 --> 00:09:22,041
Right, so...

323
00:09:23,291 --> 00:09:23,875
I heard on one

324
00:09:23,875 --> 00:09:25,083
of the podcast episodes,

325
00:09:25,083 --> 00:09:25,791
I think it was probably

326
00:09:25,791 --> 00:09:27,000
one of the Kaizen episodes

327
00:09:27,000 --> 00:09:28,958
where you all were

328
00:09:28,958 --> 00:09:30,625
talking about this limitation

329
00:09:31,916 --> 00:09:34,041
with TLS, not supported as,

330
00:09:34,375 --> 00:09:35,750
you can't use a TLS backend

331
00:09:35,750 --> 00:09:36,958
with the open-source Varnish.

332
00:09:37,666 --> 00:09:38,791
And I just got to thinking like,

333
00:09:38,791 --> 00:09:40,458
wow, that's a silly limitation.

334
00:09:41,166 --> 00:09:42,875
You know... why would they...

335
00:09:42,875 --> 00:09:44,125
Why would they limit that?

336
00:09:46,041 --> 00:09:46,875
It almost like,

337
00:09:46,875 --> 00:09:47,833
initially I kind of

338
00:09:47,833 --> 00:09:49,250
assumed worse intentions

339
00:09:49,250 --> 00:09:50,750
and I was like:

340
00:09:50,750 --> 00:09:52,333
 Wow, so Varnish just wants to

341
00:09:52,333 --> 00:09:54,500
move you to Enterprise for

342
00:09:54,500 --> 00:09:55,958
a silly feature like TLS.

343
00:09:56,250 --> 00:09:57,083
I think I reached out to you

344
00:09:57,083 --> 00:09:58,208
and also just kind of confirmed

345
00:09:58,208 --> 00:09:59,916
what the problem was exactly

346
00:09:59,916 --> 00:10:00,833
because I think I did also

347
00:10:00,833 --> 00:10:02,083
misunderstand it slightly.

348
00:10:04,125 --> 00:10:04,833
But it really was

349
00:10:04,833 --> 00:10:06,666
just that Varnish itself

350
00:10:06,666 --> 00:10:09,583
can't talk to a TLS endpoint.

351
00:10:09,583 --> 00:10:10,333
It can only talk to a

352
00:10:10,333 --> 00:10:11,750
plain HTTP endpoint.

353
00:10:12,083 --> 00:10:12,791
That's correct.

354
00:10:12,791 --> 00:10:14,041
And, you know, I've been playing

355
00:10:14,041 --> 00:10:15,250
around with a reverse proxy

356
00:10:15,250 --> 00:10:16,000
and this is basically

357
00:10:16,000 --> 00:10:17,708
something a reverse proxy can do.

358
00:10:18,083 --> 00:10:19,500
I mean, usually your

359
00:10:19,500 --> 00:10:22,458
reverse proxy serves TLS

360
00:10:22,458 --> 00:10:24,208
and might go to an HTTP

361
00:10:24,208 --> 00:10:26,541
backend in your local network.

362
00:10:27,000 --> 00:10:28,125
But, like, why?

363
00:10:28,791 --> 00:10:29,625
It shouldn't be a problem

364
00:10:29,625 --> 00:10:30,458
to do the reverse,

365
00:10:31,791 --> 00:10:32,750
I did do a couple

366
00:10:32,750 --> 00:10:34,125
of experiments with YARP

367
00:10:34,833 --> 00:10:35,625
and got it working and

368
00:10:35,625 --> 00:10:36,708
I shared it with you.

369
00:10:36,708 --> 00:10:38,875
It worked, but the .NET

370
00:10:38,875 --> 00:10:39,916
framework is kind of heavy

371
00:10:39,916 --> 00:10:41,458
and I think it was using

372
00:10:41,458 --> 00:10:43,500
about 20MB of RAM,

373
00:10:43,500 --> 00:10:44,375
which I think actually is

374
00:10:44,375 --> 00:10:45,416
better than it used to be.

375
00:10:46,416 --> 00:10:48,666
I think a lot of .NET apps will consume

376
00:10:48,666 --> 00:10:51,208
like 100MB of memory quite easily.

377
00:10:52,916 --> 00:10:54,375
So, I looked at Go,

378
00:10:54,375 --> 00:10:56,416
the Go solution at startup

379
00:10:56,416 --> 00:10:58,041
is like 1MB or 2MB,

380
00:10:58,041 --> 00:10:58,833
or something like that.

381
00:10:58,833 --> 00:10:59,250
Yeah.

382
00:10:59,250 --> 00:11:00,500
It's a very simple program.

383
00:11:00,500 --> 00:11:01,833
Like, all it does is listen on a port,

384
00:11:02,166 --> 00:11:03,541
provides an HTTP endpoint

385
00:11:03,958 --> 00:11:05,583
and then it just takes that request,

386
00:11:06,041 --> 00:11:09,125
sends it to the HTTPS endpoint

387
00:11:09,125 --> 00:11:10,208
that you configure it to

388
00:11:10,208 --> 00:11:11,083
and then it just

389
00:11:11,083 --> 00:11:12,375
returns that result back.

390
00:11:13,583 --> 00:11:14,750
So very simple code.

391
00:11:15,041 --> 00:11:18,166
Yeah, that's it: 55, 56 lines of code.

392
00:11:18,166 --> 00:11:19,333
It's a very simple program.

393
00:11:19,333 --> 00:11:20,666
It just takes two parameters.

394
00:11:20,666 --> 00:11:21,458
Like, what port do you

395
00:11:21,458 --> 00:11:22,291
want me to listen to?

396
00:11:22,291 --> 00:11:23,500
What domain do you want me

397
00:11:23,500 --> 00:11:25,166
to forward the request to?

398
00:11:25,666 --> 00:11:27,875
And that's really it, yeah.

399
00:11:28,166 --> 00:11:29,750
I really like the simplicity!

400
00:11:29,750 --> 00:11:30,750
I mean...

401
00:11:31,166 --> 00:11:32,666
things should be this simple.

402
00:11:33,541 --> 00:11:35,125
Memory consumption should be low,

403
00:11:35,500 --> 00:11:36,875
CPU cycles should be low,

404
00:11:36,875 --> 00:11:38,541
and if things are this simple,

405
00:11:38,541 --> 00:11:39,166
it should be low.

406
00:11:39,625 --> 00:11:40,500
But you mentioned something

407
00:11:40,500 --> 00:11:41,500
really interesting.

408
00:11:42,208 --> 00:11:45,083
The whole state of TLS in Varnish.

409
00:11:45,333 --> 00:11:45,833
And...

410
00:11:46,625 --> 00:11:48,458
initially, I thought,

411
00:11:48,708 --> 00:11:49,791
this is an upsell, right?

412
00:11:50,541 --> 00:11:52,166
Yeah, that's exactly what I assumed

413
00:11:52,166 --> 00:11:53,041
an upsell, yeah.

414
00:11:53,333 --> 00:11:54,250
That was my first thought

415
00:11:54,250 --> 00:11:55,416
go to Varnish enterprise

416
00:11:55,416 --> 00:11:56,875
and then you'll have it.

417
00:11:56,875 --> 00:11:59,541
So, I did a bit of digging, and...

418
00:11:59,791 --> 00:12:02,041
this is one of the first results

419
00:12:02,375 --> 00:12:03,916
that you find when you search for

420
00:12:03,916 --> 00:12:06,541
Varnish, SSL or Varnish TLS.

421
00:12:07,458 --> 00:12:08,125
And they say:

422
00:12:08,708 --> 00:12:09,791
"First, install Hitch."

423
00:12:10,791 --> 00:12:11,500
This is done by the

424
00:12:11,500 --> 00:12:13,583
varnish-plus-addon-ssl package.

425
00:12:14,416 --> 00:12:15,583
Okay, interesting.

426
00:12:15,583 --> 00:12:17,250
So varnish-plus to me suggests

427
00:12:17,250 --> 00:12:19,208
that you need to have some sort of a

428
00:12:20,291 --> 00:12:23,625
Varnish extra repository.

429
00:12:24,291 --> 00:12:25,333
I think this will go

430
00:12:25,333 --> 00:12:26,458
into the enterprise, right?

431
00:12:26,458 --> 00:12:27,666
Because how else are you...?

432
00:12:27,666 --> 00:12:28,500
I think I'm not sure because

433
00:12:28,500 --> 00:12:29,416
I haven't used this.

434
00:12:29,958 --> 00:12:31,125
And then you configure Hitch...

435
00:12:31,666 --> 00:12:33,541
But looking at this configuration,

436
00:12:33,541 --> 00:12:34,750
it just doesn't make sense.

437
00:12:35,166 --> 00:12:36,583
And the reason why it doesn't make sense,

438
00:12:36,583 --> 00:12:38,583
you listen on 443.

439
00:12:39,583 --> 00:12:41,125
Why would you listen on 443?

440
00:12:41,125 --> 00:12:42,000
Because what we need

441
00:12:42,500 --> 00:12:45,541
is we need to go to 443,

442
00:12:45,833 --> 00:12:47,333
which is one of the backends.

443
00:12:48,375 --> 00:12:49,583
But why does Hitch

444
00:12:49,583 --> 00:12:50,916
listen to port 443?

445
00:12:50,916 --> 00:12:51,916
And then the Hitch forwards

446
00:12:51,916 --> 00:12:52,958
to port 80.

447
00:12:53,458 --> 00:12:56,083
So in my mind, it's like the reverse.

448
00:12:56,083 --> 00:12:56,875
Okay, so I did like

449
00:12:56,875 --> 00:12:57,916
a bit of digging, like let's

450
00:12:57,916 --> 00:12:59,541
just see Hitch, Varnish Hitch.

451
00:12:59,708 --> 00:13:02,500
A scalable TLS proxy by Varnish Software.

452
00:13:03,250 --> 00:13:04,458
Okay, so far so good.

453
00:13:04,750 --> 00:13:05,583
There's stars,

454
00:13:05,916 --> 00:13:06,750
watchers.

455
00:13:07,250 --> 00:13:09,041
This, usually when there's a failure,

456
00:13:09,583 --> 00:13:10,083
I'm thinking,

457
00:13:10,083 --> 00:13:11,833
"Hmm, two months ago, okay."

458
00:13:11,833 --> 00:13:13,250
Well, maybe who knows, just a bad one.

459
00:13:14,250 --> 00:13:15,583
Like a bad commit, whatever.

460
00:13:15,583 --> 00:13:17,208
But that hasn't changed in two months.

461
00:13:17,208 --> 00:13:19,791
I think that's my first red flag.

462
00:13:20,708 --> 00:13:21,916
Exactly, last release,

463
00:13:21,916 --> 00:13:23,000
that's the other thing, right?

464
00:13:23,000 --> 00:13:23,833
You go down here,

465
00:13:23,833 --> 00:13:25,666
Hitch TLS proxy failed. Okay,

466
00:13:25,666 --> 00:13:26,541
well, let's click on that

467
00:13:26,541 --> 00:13:29,083
That's exactly what I did. Like, let's

468
00:13:29,083 --> 00:13:30,791
see what's going on going on there

469
00:13:31,166 --> 00:13:32,291
I mean it's nice that they

470
00:13:32,291 --> 00:13:34,583
have CI, but if it's broken...

471
00:13:34,583 --> 00:13:35,625
Exactly, that's good.

472
00:13:35,958 --> 00:13:37,666
"Something Unexpected Happened"

473
00:13:38,291 --> 00:13:40,375
Maybe refresh, sure, let's refresh.

474
00:13:41,500 --> 00:13:42,583
It did load before,

475
00:13:42,583 --> 00:13:43,708
so when I looked at this,

476
00:13:43,708 --> 00:13:44,791
it did load before,

477
00:13:44,791 --> 00:13:45,750
but let's see if it loads now.

478
00:13:45,750 --> 00:13:46,291
Nope.

479
00:13:46,541 --> 00:13:47,708
Nope, so still down.

480
00:13:47,708 --> 00:13:49,333
Okay, so that's not a good sign, right?

481
00:13:49,625 --> 00:13:49,833
Right.

482
00:13:49,833 --> 00:13:50,833
And then I come back.

483
00:13:51,458 --> 00:13:53,541
Hitch is a network proxy

484
00:13:53,541 --> 00:13:55,333
that terminates TLS/SSL connections

485
00:13:55,333 --> 00:13:56,583
and forwards the unencrypted

486
00:13:56,583 --> 00:13:57,916
traffic to some backend.

487
00:13:58,375 --> 00:14:00,000
Well, we want the exact opposite.

488
00:14:00,208 --> 00:14:01,708
Yeah, that's not what you want. Yeah.

489
00:14:01,708 --> 00:14:03,250
Exactly! We want the reverse.

490
00:14:03,250 --> 00:14:04,291
So, the second stop,

491
00:14:04,500 --> 00:14:05,250
"Why no SSL?"

492
00:14:05,833 --> 00:14:07,416
So, that's exactly what we're thinking.

493
00:14:07,625 --> 00:14:09,541
Why doesn't Varnish have SSL?

494
00:14:09,541 --> 00:14:11,791
First, I have yet to see an SSL library

495
00:14:12,000 --> 00:14:14,000
where the source code is not a nightmare.

496
00:14:15,583 --> 00:14:16,458
As I'm writing this,

497
00:14:16,458 --> 00:14:17,750
the Varnish source code tree

498
00:14:17,750 --> 00:14:20,500
contains 82,000 lines of .c and .h files,

499
00:14:20,500 --> 00:14:22,708
including JEmalloc and Zlib.

500
00:14:23,333 --> 00:14:25,875
OpenSSL, as imported to FreeBSD,

501
00:14:25,875 --> 00:14:28,291
is 340,000 lines of code.

502
00:14:28,291 --> 00:14:28,916
Wow, yeah.

503
00:14:29,250 --> 00:14:30,166
not exactly the

504
00:14:30,166 --> 00:14:31,541
best source in the world.

505
00:14:32,125 --> 00:14:33,458
I hope that you know what you're doing,

506
00:14:33,458 --> 00:14:34,500
but let us assume that

507
00:14:34,500 --> 00:14:35,958
a good SSL library can

508
00:14:35,958 --> 00:14:36,625
be found.

509
00:14:36,625 --> 00:14:38,125
What would Varnish do with it?

510
00:14:38,125 --> 00:14:39,208
I think this is where you're getting into

511
00:14:39,208 --> 00:14:40,458
the really interesting stuff.

512
00:14:41,500 --> 00:14:43,333
We would terminate SSL sessions

513
00:14:43,333 --> 00:14:45,583
and we would burn CPU cycles doing that.

514
00:14:46,458 --> 00:14:47,916
You can kiss the highly optimized

515
00:14:47,916 --> 00:14:49,041
delivery path and

516
00:14:49,041 --> 00:14:50,583
Varnish goodbye for SSL.

517
00:14:51,083 --> 00:14:53,041
We cannot simply tell the kernel to put

518
00:14:53,041 --> 00:14:54,041
the bytes on the socket.

519
00:14:54,041 --> 00:14:55,458
Rather, we have to corkscrew the data

520
00:14:55,458 --> 00:14:56,458
through the SSL library

521
00:14:56,458 --> 00:14:57,791
and then write it to the socket.

522
00:14:57,791 --> 00:14:59,458
This is the most important part.

523
00:14:59,791 --> 00:15:00,541
This page.

524
00:15:00,958 --> 00:15:03,250
Will that be significantly different,

525
00:15:03,416 --> 00:15:04,750
performance-wise,

526
00:15:05,041 --> 00:15:06,666
from running a SSL proxy

527
00:15:06,666 --> 00:15:08,000
in a separate process?

528
00:15:08,333 --> 00:15:08,791
Yeah.

529
00:15:08,958 --> 00:15:10,666
This is it. This is the key.

530
00:15:11,333 --> 00:15:13,250
No, it will not, because the way Varnish

531
00:15:13,250 --> 00:15:14,750
would have to do it would be to...

532
00:15:15,250 --> 00:15:17,416
start a separate process

533
00:15:17,416 --> 00:15:18,708
to do the SSL handling.

534
00:15:18,708 --> 00:15:20,416
So, that's our answer.

535
00:15:20,416 --> 00:15:21,708
So, who wrote this article?

536
00:15:22,791 --> 00:15:24,000
Poul-Henning

537
00:15:24,791 --> 00:15:26,750
I didn't know who Poul-Henning was,

538
00:15:26,750 --> 00:15:27,750
but we did our research.

539
00:15:27,958 --> 00:15:29,416
Right? So, 2011.

540
00:15:29,416 --> 00:15:32,750
So, this was 14 years ago.

541
00:15:33,125 --> 00:15:34,708
So, this guy

542
00:15:34,708 --> 00:15:36,291
wrote this 14 years ago.

543
00:15:36,291 --> 00:15:38,333
So, who's Poul-Henning?

544
00:15:38,333 --> 00:15:40,375
... is a Danish computer software developer

545
00:15:40,375 --> 00:15:42,625
known for work on various projects

546
00:15:42,625 --> 00:15:44,500
including FreeBSD and Varnish.

547
00:15:44,875 --> 00:15:45,666
Interesting...

548
00:15:46,083 --> 00:15:47,000
Interesting!

549
00:15:47,000 --> 00:15:48,583
... has been committing to FreeBSD

550
00:15:48,583 --> 00:15:50,458
for most of his duration, okay...

551
00:15:50,458 --> 00:15:52,416
He's responsible for the widely used

552
00:15:52,416 --> 00:15:54,708
MD5crypt implementation.

553
00:15:55,250 --> 00:15:56,875
of the MD5 password hash.

554
00:15:57,250 --> 00:16:00,125
Okay, GBDE, okay, FreeBSD Jails!

555
00:16:00,416 --> 00:16:01,875
And the FreeBSD

556
00:16:01,875 --> 00:16:03,708
and NTP timecounters code.

557
00:16:04,916 --> 00:16:06,000
Okay, so this guy,

558
00:16:06,625 --> 00:16:08,125
I think he knows what he's doing, okay?

559
00:16:08,125 --> 00:16:09,250
When he says something, yeah, you can

560
00:16:09,250 --> 00:16:10,916
probably take it seriously.

561
00:16:10,916 --> 00:16:12,875
And yeah, and he actually okay, so

562
00:16:12,875 --> 00:16:14,583
he wrote Varnish cache, right?

563
00:16:14,583 --> 00:16:15,958
He is the lead architect.

564
00:16:15,958 --> 00:16:18,333
And so I think he wrote most of Varnish cache.

565
00:16:18,750 --> 00:16:20,125
Let's just double check that theory.

566
00:16:20,125 --> 00:16:21,291
So, Varnish cache.

567
00:16:21,291 --> 00:16:22,291
Down here, contributors.

568
00:16:22,291 --> 00:16:22,833
Boom.

569
00:16:23,166 --> 00:16:24,208
Yeah, so

570
00:16:25,000 --> 00:16:26,458
like, four times more,

571
00:16:26,875 --> 00:16:27,708
almost four times

572
00:16:27,708 --> 00:16:28,875
more than the next person.

573
00:16:29,041 --> 00:16:32,125
And he's been, like, there since 2006.

574
00:16:32,125 --> 00:16:34,250
and I mean he's still by far

575
00:16:34,250 --> 00:16:36,458
the largest contributor even though he

576
00:16:36,708 --> 00:16:37,750
really slowed down his

577
00:16:37,750 --> 00:16:39,708
contributions like after 2020.

578
00:16:39,708 --> 00:16:41,125
Yeah, yeah, okay.

579
00:16:41,125 --> 00:16:42,208
So, let's click on this.

580
00:16:42,208 --> 00:16:43,208
Let's go to his website.

581
00:16:43,708 --> 00:16:45,166
PHK's bikeshed.

582
00:16:45,833 --> 00:16:46,458
Okay.

583
00:16:47,250 --> 00:16:48,458
"I'm the author of Varnish."

584
00:16:49,208 --> 00:16:51,000
I think that's... I like this.

585
00:16:51,333 --> 00:16:52,750
Like, when people start like this,

586
00:16:52,750 --> 00:16:54,125
you know exactly who they are.

587
00:16:54,125 --> 00:16:56,500
Please buy a Varnish Moral License.

588
00:16:56,750 --> 00:16:57,583
Oh, interesting.

589
00:16:58,000 --> 00:16:58,791
Let's click on that.

590
00:17:00,333 --> 00:17:01,625
Okay.

591
00:17:02,458 --> 00:17:03,750
Very interesting.

592
00:17:03,750 --> 00:17:05,333
Read more. Okay,

593
00:17:05,333 --> 00:17:05,875
accounting.

594
00:17:05,875 --> 00:17:08,625
Very transparent. I like, wow. Crazy.

595
00:17:09,166 --> 00:17:09,791
Look at that.

596
00:17:10,583 --> 00:17:11,958
Very good. A lot of transparency.

597
00:17:11,958 --> 00:17:13,625
I like this. I like where this is going.

598
00:17:14,333 --> 00:17:16,708
Wait, this is exactly where we started.

599
00:17:17,291 --> 00:17:18,291
"Does that mean you're

600
00:17:18,291 --> 00:17:20,041
the same Poul-Henning who...?"

601
00:17:20,333 --> 00:17:23,833
Yes, FreeBSD, MD5crypt, jails, nanokernels

602
00:17:23,833 --> 00:17:28,375
timecounters, scsi-ping.

603
00:17:30,625 --> 00:17:31,208
Should we?

604
00:17:31,208 --> 00:17:32,291
And the Bikeshed.

605
00:17:32,458 --> 00:17:33,083
Should we?

606
00:17:34,416 --> 00:17:35,041
So...

607
00:17:36,166 --> 00:17:38,458
Poul-Henning Kamp is the guy

608
00:17:38,916 --> 00:17:40,500
that invented the Bikeshed.

609
00:17:40,750 --> 00:17:42,083
I've seen this exact post

610
00:17:42,083 --> 00:17:42,958
like, a long time ago,

611
00:17:42,958 --> 00:17:44,458
like, same color and everything.

612
00:17:44,458 --> 00:17:44,791
Yeah.

613
00:17:44,791 --> 00:17:46,166
Now it brings back memories,

614
00:17:46,166 --> 00:17:46,666
like, years ago.

615
00:17:46,666 --> 00:17:48,875
1999. There you go. Okay, so

616
00:17:49,500 --> 00:17:52,583
Thank you Poul for the Bikeshed.

617
00:17:54,166 --> 00:17:55,541
We have bikeshed a lot

618
00:17:55,750 --> 00:17:57,166
about Varnish and TLS,

619
00:17:57,166 --> 00:17:58,250
so, thank you for that.

620
00:17:58,541 --> 00:18:00,333
And we have a framework to do it in.

621
00:18:00,750 --> 00:18:01,916
And do you know what's

622
00:18:01,916 --> 00:18:03,041
the best part about this?

623
00:18:03,041 --> 00:18:03,791
I mean, by the way,

624
00:18:03,791 --> 00:18:05,208
besides capturing this,

625
00:18:05,208 --> 00:18:06,958
which I'm such a huge fan of,

626
00:18:06,958 --> 00:18:09,166
my favorite feature about this is...

627
00:18:12,041 --> 00:18:13,041
The color changes.

628
00:18:13,625 --> 00:18:15,083
When you click it, the color changes?

629
00:18:15,083 --> 00:18:16,583
When you refresh, the color changes.

630
00:18:16,583 --> 00:18:17,458
Oh.

631
00:18:17,458 --> 00:18:18,333
How good is that?

632
00:18:21,333 --> 00:18:22,875
So yeah, whoever came up

633
00:18:22,875 --> 00:18:24,208
with this, thank you.

634
00:18:25,250 --> 00:18:26,208
This was funny.

635
00:18:26,208 --> 00:18:27,791
This was so fun to discover.

636
00:18:27,791 --> 00:18:28,208
Cool.

637
00:18:28,875 --> 00:18:29,416
So...

638
00:18:30,208 --> 00:18:32,500
I think that we should listen to the guy.

639
00:18:33,125 --> 00:18:36,000
And I think that we should start

640
00:18:36,000 --> 00:18:38,500
a separate process to the SSL handling.

641
00:18:39,250 --> 00:18:40,583
I think this is good.

642
00:18:41,125 --> 00:18:42,625
By the way, I was also

643
00:18:42,625 --> 00:18:43,833
doing a bit more research.

644
00:18:43,833 --> 00:18:46,125
So, let me just do Varnish.

645
00:18:46,666 --> 00:18:49,000
And another thing which I found

646
00:18:49,000 --> 00:18:50,708
here, this is afterwards.

647
00:18:51,208 --> 00:18:51,750
Hmm

648
00:18:51,750 --> 00:18:53,541
was SSL again.

649
00:18:56,583 --> 00:18:57,416
This is a hot topic.

650
00:18:57,416 --> 00:18:59,708
So this is SSL, again,

651
00:18:59,708 --> 00:19:01,291
two or three, whatever.

652
00:19:01,833 --> 00:19:03,875
So 4 years ago I wrote a rant about

653
00:19:03,875 --> 00:19:06,458
why Varnish has no SSL support

654
00:19:06,458 --> 00:19:08,041
and the upcoming 4.1 release

655
00:19:08,041 --> 00:19:09,833
is a good excuse to revisit the issue.

656
00:19:10,541 --> 00:19:13,291
In 2011 I criticized OpenSSL's source code

657
00:19:13,291 --> 00:19:14,416
as being a nightmare,

658
00:19:14,416 --> 00:19:15,625
and as much as I hate

659
00:19:15,625 --> 00:19:17,000
to say "I told you so",

660
00:19:17,000 --> 00:19:17,750
I told you so.

661
00:19:19,166 --> 00:19:20,000
See "HeartBleed".

662
00:19:21,166 --> 00:19:22,625
Okay, so yeah, that was a good one.

663
00:19:23,708 --> 00:19:26,750
Handling certificates, still a bad idea.

664
00:19:28,000 --> 00:19:28,958
So yeah, no,

665
00:19:29,416 --> 00:19:30,708
Varnish still won't add...

666
00:19:30,708 --> 00:19:32,458
So, I'm very curious, Poul,

667
00:19:33,833 --> 00:19:35,166
what are you thinking today?

668
00:19:36,125 --> 00:19:37,625
2025,

669
00:19:38,000 --> 00:19:39,625
which is 11 years,

670
00:19:39,625 --> 00:19:40,750
actually 10 years later.

671
00:19:41,083 --> 00:19:41,583
Ah

672
00:19:42,708 --> 00:19:43,500
Still a bad idea?

673
00:19:44,041 --> 00:19:44,333
Maybe.

674
00:19:44,666 --> 00:19:45,125
Anyway.

675
00:19:46,458 --> 00:19:46,958
So,

676
00:19:47,750 --> 00:19:48,583
this was the issue

677
00:19:48,833 --> 00:19:49,791
that got us started.

678
00:19:50,416 --> 00:19:53,916
And this was the TLS Exterminator, right?

679
00:19:54,750 --> 00:19:56,375
The repository where

680
00:19:56,375 --> 00:19:57,333
it contains the code.

681
00:19:58,375 --> 00:20:01,041
And this is your pull request.

682
00:20:01,250 --> 00:20:02,375
If we didn't have pull requests,

683
00:20:02,375 --> 00:20:03,416
this would not be possible.

684
00:20:04,000 --> 00:20:04,583
Where

685
00:20:05,208 --> 00:20:07,458
you add support for TLS backend.

686
00:20:07,458 --> 00:20:08,208
I just took the liberty

687
00:20:08,208 --> 00:20:09,166
of changing the title

688
00:20:09,166 --> 00:20:10,291
because that's what's happening.

689
00:20:10,291 --> 00:20:10,666
So,

690
00:20:11,083 --> 00:20:12,625
thank you for kicking this off.

691
00:20:12,625 --> 00:20:13,833
Not that many lines of code

692
00:20:13,833 --> 00:20:15,500
and we'll see in a minute what they do.

693
00:20:16,125 --> 00:20:16,958
and I took it and I just

694
00:20:16,958 --> 00:20:18,000
did a couple of changes,

695
00:20:18,000 --> 00:20:18,958
but this is the one to

696
00:20:18,958 --> 00:20:20,291
watch pull request eight

697
00:20:20,291 --> 00:20:21,333
where we'll capture

698
00:20:21,333 --> 00:20:22,458
as much of the history.

699
00:20:22,791 --> 00:20:23,791
All right, so.

700
00:20:24,458 --> 00:20:24,833
I have it...

701
00:20:25,416 --> 00:20:26,083
locally,

702
00:20:26,500 --> 00:20:27,416
this is where it's at.

703
00:20:27,708 --> 00:20:30,291
And if I look at status, I'm right here,

704
00:20:30,291 --> 00:20:32,083
improve on Nabeel's contribution.

705
00:20:32,541 --> 00:20:33,750
And I have some changes

706
00:20:33,750 --> 00:20:35,583
which are not staged.

707
00:20:35,875 --> 00:20:37,291
So, there are still a few things which,

708
00:20:37,458 --> 00:20:38,750
no, this one and this one

709
00:20:38,750 --> 00:20:40,375
that I would like to go in.

710
00:20:40,625 --> 00:20:41,916
So, a few more changes coming up.

711
00:20:42,458 --> 00:20:42,916
Okay.

712
00:20:43,083 --> 00:20:43,666
All right, so.

713
00:20:44,458 --> 00:20:45,375
With that in mind,

714
00:20:45,375 --> 00:20:46,458
what do we have here?

715
00:20:46,916 --> 00:20:49,250
So, besides the main project,

716
00:20:49,416 --> 00:20:51,875
I think your main addition

717
00:20:51,875 --> 00:20:54,000
was this Dagger directory?

718
00:20:56,583 --> 00:20:58,583
Wait, oh, to the Pipely one.

719
00:20:58,583 --> 00:20:59,250
To the Pipely.

720
00:20:59,583 --> 00:21:00,041
I've lost track

721
00:21:00,041 --> 00:21:01,291
of what I did there.

722
00:21:02,541 --> 00:21:04,458
What I distinctly remember probably,

723
00:21:05,416 --> 00:21:07,041
I might've tried doing it in Dagger

724
00:21:07,041 --> 00:21:07,875
and then given up.

725
00:21:08,375 --> 00:21:08,833
Yeah.

726
00:21:10,541 --> 00:21:12,333
Yeah, get it to work with plain docker.

727
00:21:12,583 --> 00:21:14,541
Okay, so maybe we should

728
00:21:14,541 --> 00:21:16,208
clean that up because I took it,

729
00:21:16,208 --> 00:21:18,333
like I was like, okay, Dagger, very, very

730
00:21:18,333 --> 00:21:20,125
close to my heart. So I took

731
00:21:20,125 --> 00:21:21,333
it a bit further. Cool. So.

732
00:21:21,916 --> 00:21:24,000
Let's just have a quick look at what it

733
00:21:24,000 --> 00:21:25,750
means, functionality-wise.

734
00:21:25,750 --> 00:21:27,916
Yeah, I am better at Dagger

735
00:21:27,916 --> 00:21:29,541
since this week, so

736
00:21:29,541 --> 00:21:30,916
yeah, like if I were to try to

737
00:21:30,916 --> 00:21:32,000
redo it again, I might succeed.

738
00:21:32,250 --> 00:21:33,416
Yeah, yeah.

739
00:21:33,875 --> 00:21:35,166
Okay, well, let's see if this

740
00:21:35,166 --> 00:21:36,416
is the moment where, you know,

741
00:21:36,416 --> 00:21:40,291
I can give back some of the time

742
00:21:40,916 --> 00:21:42,083
that you've put into this and

743
00:21:42,083 --> 00:21:43,500
the effort and share some

744
00:21:43,500 --> 00:21:44,958
of my Dagger knowledge. So...

745
00:21:45,875 --> 00:21:47,125
The justfile is an

746
00:21:47,125 --> 00:21:49,208
important file because I use just,

747
00:21:49,208 --> 00:21:50,666
just like as a wrapper

748
00:21:51,041 --> 00:21:52,916
around a bunch of things, right?

749
00:21:52,916 --> 00:21:54,666
So we had tests, we had report before,

750
00:21:55,166 --> 00:21:57,916
and if we just see what it contains.

751
00:21:58,916 --> 00:22:00,125
Actually, let me just load it like

752
00:22:00,125 --> 00:22:01,583
in an actual editor.

753
00:22:02,291 --> 00:22:04,541
The default one, fmt,

754
00:22:04,541 --> 00:22:05,916
these are called commands.

755
00:22:05,916 --> 00:22:08,041
It has some default variables.

756
00:22:08,041 --> 00:22:08,750
We install Hurl.

757
00:22:09,208 --> 00:22:11,000
We use Hurl for the test still.

758
00:22:11,791 --> 00:22:13,333
And debug, this is like the new one,

759
00:22:13,333 --> 00:22:14,375
which just basically makes it

760
00:22:14,375 --> 00:22:15,666
easier to type commands.

761
00:22:16,041 --> 00:22:17,250
Sometimes, I like to add

762
00:22:17,250 --> 00:22:19,750
some various arguments

763
00:22:19,750 --> 00:22:21,583
or variables, shall I say,

764
00:22:21,583 --> 00:22:23,041
and also we have publish,

765
00:22:23,041 --> 00:22:24,125
which is an interesting one.

766
00:22:24,541 --> 00:22:25,500
Okay, so that's it,

767
00:22:25,500 --> 00:22:27,000
like it's, again, 60 lines.

768
00:22:27,500 --> 00:22:28,833
Not that much stuff,

769
00:22:28,833 --> 00:22:30,083
most of it is just the package

770
00:22:30,083 --> 00:22:31,583
and I think most of this will go away.

771
00:22:32,208 --> 00:22:33,041
Anyway, so

772
00:22:33,625 --> 00:22:34,375
We have that.

773
00:22:36,250 --> 00:22:37,083
You've seen me type

774
00:22:37,583 --> 00:22:39,083
single letters, I use this a lot.

775
00:22:39,083 --> 00:22:41,416
I have aliases for pretty much everything.

776
00:22:41,416 --> 00:22:43,666
So, you know, "J" is an alias for Just,

777
00:22:44,083 --> 00:22:45,500
"D" is an alias for Dagger.

778
00:22:46,250 --> 00:22:46,666
Do you want to guess

779
00:22:46,666 --> 00:22:48,291
what my Docker alias is?

780
00:22:49,833 --> 00:22:50,791
Capital "D"?

781
00:22:51,541 --> 00:22:52,250
Look at that.

782
00:22:52,916 --> 00:22:53,833
You did not see this.

783
00:22:53,833 --> 00:22:54,791
We did not cover this

784
00:22:54,791 --> 00:22:55,750
in the previous, oh yeah,

785
00:22:55,958 --> 00:22:57,375
look, see, it's just like so natural

786
00:22:57,375 --> 00:22:59,416
It was gonna be that or "do", maybe?

787
00:22:59,583 --> 00:23:00,875
Yeah.

788
00:23:00,875 --> 00:23:02,041
and "L" for Lvim, yeah.

789
00:23:02,375 --> 00:23:02,708
Cool.

790
00:23:03,583 --> 00:23:04,000
So.

791
00:23:04,708 --> 00:23:05,875
Dagger functions

792
00:23:06,166 --> 00:23:08,791
is what, see, I can't even type.

793
00:23:08,791 --> 00:23:10,250
That's why I have those

794
00:23:10,250 --> 00:23:12,166
shortcuts because I can't type.

795
00:23:12,666 --> 00:23:14,416
So, Dagger functions shows us

796
00:23:15,083 --> 00:23:16,750
everything that we can do

797
00:23:17,000 --> 00:23:18,208
with the code that was added.

798
00:23:19,000 --> 00:23:20,333
We can, for example,

799
00:23:20,333 --> 00:23:21,250
get a container with

800
00:23:21,250 --> 00:23:22,291
all the dependencies

801
00:23:22,291 --> 00:23:23,666
wired up and ready for production.

802
00:23:24,000 --> 00:23:24,750
You would be,

803
00:23:24,750 --> 00:23:26,333
many would be tempted to

804
00:23:26,333 --> 00:23:27,500
use a Dockerfile for this,

805
00:23:27,500 --> 00:23:28,916
which is perfectly fine.

806
00:23:29,833 --> 00:23:31,083
But then what happens is then

807
00:23:31,083 --> 00:23:32,541
you need to make small changes.

808
00:23:32,791 --> 00:23:34,375
Then you need to run tests.

809
00:23:34,708 --> 00:23:35,875
Then you need to, for example,

810
00:23:35,875 --> 00:23:36,958
publish the container.

811
00:23:37,791 --> 00:23:38,541
Do you have a script?

812
00:23:38,833 --> 00:23:39,541
Well, most do.

813
00:23:39,708 --> 00:23:40,458
Most have a script.

814
00:23:40,458 --> 00:23:41,333
I have Just,

815
00:23:41,791 --> 00:23:43,750
and I could use Just for that,

816
00:23:44,166 --> 00:23:45,375
but then exactly as you've seen me,

817
00:23:45,375 --> 00:23:47,166
now I have to start installing Hurl.

818
00:23:48,125 --> 00:23:49,166
Because I have dependencies

819
00:23:49,166 --> 00:23:50,625
and then I have to install Hurl

820
00:23:50,625 --> 00:23:52,083
in a platform specific way.

821
00:23:52,500 --> 00:23:53,791
And it just like, it just

822
00:23:53,791 --> 00:23:55,666
ends up in quite the mess.

823
00:23:55,666 --> 00:23:57,458
I do want to add kind of just to this,

824
00:23:57,458 --> 00:23:58,125
which is one of the

825
00:23:58,125 --> 00:23:59,083
things that I've realized,

826
00:24:01,750 --> 00:24:03,250
Actually, you said it before as well,

827
00:24:03,458 --> 00:24:05,708
but the Docker, like

828
00:24:05,708 --> 00:24:07,250
replacing Dockerfile,

829
00:24:07,666 --> 00:24:09,458
just a plain Dockerfile,

830
00:24:09,458 --> 00:24:10,666
like especially a very simple one

831
00:24:11,083 --> 00:24:13,666
with a like Dagger pipeline that does it,

832
00:24:13,958 --> 00:24:15,875
you don't really get too much out of it.

833
00:24:15,875 --> 00:24:18,250
Like, it's actually a little more effort.

834
00:24:18,916 --> 00:24:19,958
And, you know, again, you

835
00:24:19,958 --> 00:24:20,875
just don't get that much,

836
00:24:20,875 --> 00:24:22,291
anything extra out of it.

837
00:24:23,166 --> 00:24:24,625
But where, you know,

838
00:24:24,625 --> 00:24:26,208
on the TLS exterminator side,

839
00:24:26,750 --> 00:24:29,750
building the integration test,

840
00:24:29,750 --> 00:24:31,208
right, in Dagger

841
00:24:31,583 --> 00:24:32,625
was amazing, right?

842
00:24:32,625 --> 00:24:34,875
Because that just, it worked

843
00:24:34,875 --> 00:24:36,416
with like a single command.

844
00:24:36,416 --> 00:24:37,666
Like, if I were to do this,

845
00:24:38,000 --> 00:24:39,166
I actually did it without

846
00:24:39,166 --> 00:24:40,625
dagger first, right?

847
00:24:40,625 --> 00:24:43,250
I had to build, you know, two Docker,

848
00:24:43,250 --> 00:24:45,500
two new Docker files just for testing.

849
00:24:45,958 --> 00:24:48,125
And then I also had to build...

850
00:24:48,125 --> 00:24:48,666
and the Docker
files

851
00:24:48,666 --> 00:24:49,833
can't reuse each other, right?

852
00:24:49,833 --> 00:24:50,583
You just have to copy-paste

853
00:24:50,583 --> 00:24:51,750
like the entire code.

854
00:24:52,458 --> 00:24:53,458
Yeah, Docker test and

855
00:24:53,458 --> 00:24:54,833
Docker test server, right?

856
00:24:55,083 --> 00:24:56,375
And then I had to build the

857
00:24:56,375 --> 00:24:58,333
docker-compose.test.yml

858
00:24:58,333 --> 00:24:59,708
to run like the,

859
00:24:59,708 --> 00:25:01,083
all of the different containers.

860
00:25:01,375 --> 00:25:02,500
And so then I have to have,

861
00:25:02,875 --> 00:25:03,541
you know, basically

862
00:25:03,541 --> 00:25:04,958
in two different, you know,

863
00:25:04,958 --> 00:25:06,375
terminal windows, like, you know,

864
00:25:06,375 --> 00:25:07,791
I'll start up Docker compose,

865
00:25:07,791 --> 00:25:09,250
and then in a separate window,

866
00:25:09,250 --> 00:25:12,541
I'll run, you know, go test, right?

867
00:25:13,041 --> 00:25:15,166
And then all of that

868
00:25:15,166 --> 00:25:16,416
happens on my local machine.

869
00:25:16,416 --> 00:25:17,583
So if I happen to be using

870
00:25:17,583 --> 00:25:19,375
that port somewhere else,

871
00:25:19,625 --> 00:25:20,916
there's a conflict and it'll crash,

872
00:25:22,333 --> 00:25:23,916
whereas like you build it

873
00:25:23,916 --> 00:25:25,666
in a, in a Dagger, you know,

874
00:25:26,583 --> 00:25:27,458
job or workflow,

875
00:25:27,458 --> 00:25:28,291
whatever you want to call it,

876
00:25:30,291 --> 00:25:31,458
it all just self-contained.

877
00:25:31,708 --> 00:25:33,583
It runs, like, beautifully.

878
00:25:33,958 --> 00:25:35,666
So let's see what you've done here.

879
00:25:36,125 --> 00:25:37,208
Build test server.

880
00:25:37,416 --> 00:25:38,625
Okay, so these are the functions

881
00:25:38,625 --> 00:25:39,541
and that's what we call them

882
00:25:39,541 --> 00:25:40,875
on the on the command line.

883
00:25:40,875 --> 00:25:41,875
Functions, yeah.

884
00:25:42,791 --> 00:25:45,041
So, build test server...

885
00:25:46,250 --> 00:25:47,791
I wonder if I started,

886
00:25:47,791 --> 00:25:49,000
I might have done this a little...

887
00:25:49,416 --> 00:25:50,708
...wrong actually.

888
00:25:51,375 --> 00:25:52,041
Oh no, no, no, no.

889
00:25:52,041 --> 00:25:52,833
Test server's right.

890
00:25:53,375 --> 00:25:54,583
So, I built a very simple

891
00:25:54,583 --> 00:25:55,333
Go application

892
00:25:56,041 --> 00:25:56,958
for the test server,

893
00:25:58,250 --> 00:26:00,291
it serves a TLS endpoint

894
00:26:01,625 --> 00:26:03,250
with a self-signed certificate.

895
00:26:04,375 --> 00:26:05,666
Yeah, I can see it here.

896
00:26:06,333 --> 00:26:07,250
So, that's all it does.

897
00:26:07,250 --> 00:26:08,208
It's just a, you know,

898
00:26:08,208 --> 00:26:09,625
a generated, you know,

899
00:26:10,083 --> 00:26:10,708
certificate.

900
00:26:11,000 --> 00:26:12,416
And all it does is it serves

901
00:26:12,416 --> 00:26:13,208
that certificate

902
00:26:13,791 --> 00:26:15,083
and all it does is, it responds 

903
00:26:15,083 --> 00:26:16,625
with a JSON blob that tells you

904
00:26:16,625 --> 00:26:18,083
like, what it received in the request.

905
00:26:18,083 --> 00:26:18,500
So, it'll tell you

906
00:26:18,500 --> 00:26:20,333
I got a post with these query parameters,

907
00:26:21,583 --> 00:26:22,208
it's a nice little

908
00:26:22,208 --> 00:26:23,750
debugging application, basically.

909
00:26:24,833 --> 00:26:26,083
Now, if you go down one more

910
00:26:26,083 --> 00:26:27,166
to the next function,

911
00:26:27,583 --> 00:26:29,500
there is a build...

912
00:26:30,125 --> 00:26:31,833
te-, no, not just test, there's

913
00:26:31,833 --> 00:26:33,625
build test TLS Exterminator.

914
00:26:33,625 --> 00:26:34,958
So, this is where the reusability

915
00:26:34,958 --> 00:26:36,583
and Dagger is just amazing, right?

916
00:26:37,666 --> 00:26:41,750
So, I run m.build online 74.

917
00:26:42,083 --> 00:26:44,375
"m.build" that is the production version

918
00:26:44,375 --> 00:26:46,041
of TLS Exterminator, right?

919
00:26:47,416 --> 00:26:48,625
I bring the production version

920
00:26:48,625 --> 00:26:49,666
and then I add

921
00:26:50,000 --> 00:26:52,166
the custom certificate there, right?

922
00:26:52,541 --> 00:26:53,916
And that's it.

923
00:26:54,625 --> 00:26:55,875
I was able to reuse

924
00:26:55,875 --> 00:26:57,000
the production build

925
00:26:57,000 --> 00:26:57,833
and just add on

926
00:26:58,125 --> 00:27:00,458
this thing that I only want in test.

927
00:27:01,208 --> 00:27:02,875
And then when you go down to

928
00:27:02,875 --> 00:27:04,541
the last function, the test function,

929
00:27:05,083 --> 00:27:08,000
I'm creating two test server instances,

930
00:27:08,000 --> 00:27:10,291
two TLS Exterminator instances,

931
00:27:10,666 --> 00:27:12,625
running them all in parallel, right?

932
00:27:12,625 --> 00:27:14,583
And then I start my Go test

933
00:27:14,583 --> 00:27:15,916
to actually, you know,

934
00:27:15,916 --> 00:27:18,166
hit and measure all of these things.

935
00:27:18,958 --> 00:27:21,000
And so, I'm using Go test a little less,

936
00:27:21,250 --> 00:27:22,666
a little untraditionally, right?

937
00:27:22,666 --> 00:27:24,208
It's not a unit test at all, right?

938
00:27:24,208 --> 00:27:26,125
It actually hits like HTTP endpoints,

939
00:27:26,125 --> 00:27:28,250
but, for this type of application,

940
00:27:29,333 --> 00:27:30,958
I think the end to end style tests

941
00:27:30,958 --> 00:27:31,708
are more valuable

942
00:27:31,708 --> 00:27:32,375
than unit tests.

943
00:27:32,375 --> 00:27:33,250
Of course.

944
00:27:33,250 --> 00:27:34,416
And you control everything.

945
00:27:34,416 --> 00:27:35,083
I think that's...

946
00:27:35,583 --> 00:27:38,333
That's really helpful in this case

947
00:27:38,333 --> 00:27:39,916
because you don't have

948
00:27:39,916 --> 00:27:41,125
external dependencies.

949
00:27:41,500 --> 00:27:42,625
Everything is local, right?

950
00:27:42,625 --> 00:27:43,916
Everything, like once you pull everything,

951
00:27:44,250 --> 00:27:45,791
you control all these

952
00:27:45,791 --> 00:27:48,750
different services or processes,

953
00:27:48,750 --> 00:27:49,666
however you wanna call them.

954
00:27:50,125 --> 00:27:53,083
And then because it's a service, right?

955
00:27:53,083 --> 00:27:55,208
It's a process that runs a service.

956
00:27:55,916 --> 00:27:56,958
It has a port,

957
00:27:56,958 --> 00:27:58,041
it has all that stuff.

958
00:27:58,041 --> 00:27:59,458
You just wired everything together.

959
00:27:59,916 --> 00:28:00,458
Exactly.

960
00:28:00,458 --> 00:28:01,416
Imagine doing this with

961
00:28:01,416 --> 00:28:03,166
Docker compose and scripting

962
00:28:03,583 --> 00:28:04,500
Yeah, no, I did it.

963
00:28:04,500 --> 00:28:05,416
I did it. It's in there.

964
00:28:05,416 --> 00:28:06,958
Right, let's see it.

965
00:28:07,291 --> 00:28:08,583
What does that look like, by the way?

966
00:28:08,833 --> 00:28:10,250
What does the other version look like?

967
00:28:10,500 --> 00:28:12,125
Yeah, so first there's

968
00:28:12,125 --> 00:28:14,375
dockerfile.test, right?

969
00:28:14,375 --> 00:28:15,000
Yes.

970
00:28:15,000 --> 00:28:18,333
Build's the..., I think, TLS Exterminator

971
00:28:18,625 --> 00:28:19,583
with the test version.

972
00:28:20,041 --> 00:28:21,500
But again, I have to copy the entire...

973
00:28:22,208 --> 00:28:24,166
Like, there's not really any ability to

974
00:28:24,166 --> 00:28:26,208
reuse the production Docker file.

975
00:28:26,541 --> 00:28:28,291
So, I have to just copy-paste everything.

976
00:28:28,291 --> 00:28:30,416
Which is this one. Yeah, okay. Oh, I see

977
00:28:30,666 --> 00:28:32,583
Yeah, it's one line difference, right?

978
00:28:32,583 --> 00:28:33,708
It's just the extra

979
00:28:33,708 --> 00:28:35,833
copy of the custom cert.

980
00:28:37,083 --> 00:28:39,333
Okay. Okay. Yeah, I see that

981
00:28:39,625 --> 00:28:42,125
Yeah, and then there's Docker test server.

982
00:28:43,291 --> 00:28:44,416
That's building that

983
00:28:44,416 --> 00:28:46,541
small test server application,

984
00:28:47,083 --> 00:28:48,791
which again, same thing as

985
00:28:48,791 --> 00:28:50,208
what we already saw there.

986
00:28:51,458 --> 00:28:52,500
And then you have a

987
00:28:52,500 --> 00:28:54,125
Docker compose file.

988
00:28:54,666 --> 00:28:55,375
This one, yeah.

989
00:28:56,166 --> 00:28:58,375
That's also just giant, you know,

990
00:28:58,375 --> 00:28:59,666
like blob of YML,

991
00:28:59,666 --> 00:29:01,625
which, I'm also not a huge fan of.

992
00:29:04,791 --> 00:29:05,875
To run this, first you

993
00:29:05,875 --> 00:29:07,125
run Docker compose up,

994
00:29:07,125 --> 00:29:08,708
and you have to remember to do

995
00:29:08,708 --> 00:29:09,708
Docker compose down

996
00:29:09,708 --> 00:29:11,333
and Docker compose build,

997
00:29:11,333 --> 00:29:12,166
if you change your code,

998
00:29:12,166 --> 00:29:13,500
because Docker compose doesn't

999
00:29:13,500 --> 00:29:14,833
really do that automatically.

1000
00:29:16,416 --> 00:29:17,291
And then once you have

1001
00:29:17,291 --> 00:29:18,833
everything running in Docker compose,

1002
00:29:18,833 --> 00:29:20,750
then, you go to a separate terminal

1003
00:29:20,750 --> 00:29:22,375
and run, the Go tests. Yeah.

1004
00:29:22,500 --> 00:29:23,125
Yeah, yeah.

1005
00:29:23,791 --> 00:29:25,708
Cool, well I'm glad that you've had

1006
00:29:25,708 --> 00:29:27,375
this experience, because guess what?

1007
00:29:28,125 --> 00:29:30,000
We have a lot of Docker files.

1008
00:29:30,916 --> 00:29:32,583
Oh yeah, I'm gonna delete them

1009
00:29:32,583 --> 00:29:34,083
from my project as well.

1010
00:29:34,625 --> 00:29:36,000
And these would need cleaning up

1011
00:29:36,000 --> 00:29:37,000
and a couple of other things,

1012
00:29:37,000 --> 00:29:38,166
but, this is amazing!

1013
00:29:38,166 --> 00:29:39,875
This is really, really amazing, cool.

1014
00:29:41,125 --> 00:29:44,000
We have just to see

1015
00:29:44,500 --> 00:29:45,291
the top level here.

1016
00:29:45,291 --> 00:29:47,458
We'll start with the Dagger JSON.

1017
00:29:47,750 --> 00:29:48,583
Whenever you see this,

1018
00:29:48,583 --> 00:29:49,750
this is like the entry point

1019
00:29:50,041 --> 00:29:51,083
for Dagger, if you wish.

1020
00:29:51,833 --> 00:29:52,583
It has other name,

1021
00:29:52,583 --> 00:29:53,583
the name of the module,

1022
00:29:53,583 --> 00:29:55,041
because this is called the Dagger module.

1023
00:29:55,500 --> 00:29:57,125
The engine version that

1024
00:29:57,791 --> 00:29:59,666
this was developed against,

1025
00:29:59,958 --> 00:30:01,416
16.1 is currently the latest.

1026
00:30:01,916 --> 00:30:03,458
SDK, the source is Go,

1027
00:30:03,458 --> 00:30:05,250
and the source is where

1028
00:30:05,250 --> 00:30:06,958
is the source code for this module.

1029
00:30:07,416 --> 00:30:08,916
In this case, what this means is it's

1030
00:30:08,916 --> 00:30:10,250
in the side of Dagger directory.

1031
00:30:10,875 --> 00:30:12,500
If you go in the Dagger directory,

1032
00:30:12,875 --> 00:30:13,666
main.go,

1033
00:30:13,666 --> 00:30:14,958
because this is a Go module.

1034
00:30:14,958 --> 00:30:15,666
By the way, you can use

1035
00:30:15,666 --> 00:30:17,625
TypeScript or Python or even

1036
00:30:17,625 --> 00:30:19,125
Java, even PHP.

1037
00:30:19,375 --> 00:30:20,166
It's crazy.

1038
00:30:20,166 --> 00:30:21,208
Elixir as well.

1039
00:30:21,208 --> 00:30:22,750
Anyway, there's quite a few options.

1040
00:30:22,750 --> 00:30:24,541
Rust! I forgot about Rust!

1041
00:30:24,541 --> 00:30:25,083
Anyway,

1042
00:30:26,250 --> 00:30:27,375
then you go to "main".

1043
00:30:28,458 --> 00:30:29,750
And you can start

1044
00:30:29,750 --> 00:30:31,208
seeing the struct, right?

1045
00:30:31,208 --> 00:30:32,416
We have the application,

1046
00:30:32,416 --> 00:30:33,625
so, the app container,

1047
00:30:33,625 --> 00:30:35,375
Golang, Varnish, and Source.

1048
00:30:35,916 --> 00:30:36,833
And then new, this is

1049
00:30:36,833 --> 00:30:37,916
called the constructor,

1050
00:30:37,916 --> 00:30:38,666
which we know we have

1051
00:30:38,666 --> 00:30:39,708
a couple of defaults.

1052
00:30:39,708 --> 00:30:41,083
For example, the source directory,

1053
00:30:41,083 --> 00:30:42,208
I know that you're looking at this.

1054
00:30:43,625 --> 00:30:44,500
This is like an,

1055
00:30:44,500 --> 00:30:46,333
almost like an annotation.

1056
00:30:47,541 --> 00:30:49,166
I'm thinking of it as metacode,

1057
00:30:49,625 --> 00:30:50,625
where if you don't provide

1058
00:30:50,625 --> 00:30:51,541
a value as a flag,

1059
00:30:51,541 --> 00:30:52,750
it will just default to

1060
00:30:52,750 --> 00:30:53,583
whatever you have there.

1061
00:30:54,375 --> 00:30:55,875
So, we have quite a few of those.

1062
00:30:55,875 --> 00:30:57,791
And then what we do here is

1063
00:30:57,791 --> 00:31:00,083
we can, we take Pipely, right?

1064
00:31:00,083 --> 00:31:02,291
Like, just create a new Pipely struct.

1065
00:31:03,333 --> 00:31:04,458
Golang, Varnish.

1066
00:31:04,458 --> 00:31:06,333
So, we put the Golang container

1067
00:31:06,333 --> 00:31:07,208
in the varnish container

1068
00:31:07,208 --> 00:31:07,958
because that gives us

1069
00:31:07,958 --> 00:31:09,000
some nice properties.

1070
00:31:09,416 --> 00:31:11,750
TLS Exterminator, as you can see, I...

1071
00:31:12,583 --> 00:31:14,916
go install directly from your repo.

1072
00:31:14,916 --> 00:31:16,333
So, with exec I just run Go,

1073
00:31:16,333 --> 00:31:17,875
I'm using the Golang container.

1074
00:31:17,875 --> 00:31:18,958
So, in that context,

1075
00:31:19,375 --> 00:31:21,041
I'm going to install

1076
00:31:21,041 --> 00:31:23,375
TLS Exterminator at a specific version.

1077
00:31:23,791 --> 00:31:25,125
And where's this version determined?

1078
00:31:25,125 --> 00:31:25,708
Well, there you go.

1079
00:31:25,708 --> 00:31:27,041
That's the default. This is the git sha.

1080
00:31:27,416 --> 00:31:27,833
By the way,

1081
00:31:28,000 --> 00:31:29,166
Would love to have some tagging,

1082
00:31:29,166 --> 00:31:30,416
some versioning going on,

1083
00:31:30,416 --> 00:31:31,625
we can loop back on that.

1084
00:31:31,791 --> 00:31:32,166
Oh yeah.

1085
00:31:32,416 --> 00:31:33,083
Some SemVer.

1086
00:31:34,250 --> 00:31:35,791
Okay, cool, so that's one.

1087
00:31:37,125 --> 00:31:38,458
What's next? So, Goreman,

1088
00:31:38,791 --> 00:31:41,250
that's something that you introduced,

1089
00:31:41,250 --> 00:31:43,458
where we can run multiple

1090
00:31:43,458 --> 00:31:45,208
processes in a single container,

1091
00:31:45,208 --> 00:31:46,666
in a single, in this case,

1092
00:31:46,666 --> 00:31:48,166
when we deploy to Fly, or

1093
00:31:48,875 --> 00:31:50,125
even if it runs anywhere else,

1094
00:31:50,125 --> 00:31:51,250
that's really helpful.

1095
00:31:51,250 --> 00:31:52,541
Yeah, maybe to just take a

1096
00:31:52,541 --> 00:31:54,125
step back and kind of explain that.

1097
00:31:57,333 --> 00:31:59,041
If this was being deployed to Kubernetes,

1098
00:31:59,041 --> 00:32:00,083
you could just deploy

1099
00:32:00,083 --> 00:32:02,458
two containers on one pod,

1100
00:32:02,458 --> 00:32:03,333
and then they could

1101
00:32:03,333 --> 00:32:04,375
just communicate directly

1102
00:32:04,375 --> 00:32:05,083
to each other.

1103
00:32:05,458 --> 00:32:07,291
But since you're deploying to Fly,

1104
00:32:07,625 --> 00:32:08,625
that's not really an option.

1105
00:32:08,625 --> 00:32:10,625
You need to only deploy one container.

1106
00:32:11,083 --> 00:32:13,125
And so we kind of have to stitch together

1107
00:32:14,125 --> 00:32:15,250
a custom container that

1108
00:32:15,250 --> 00:32:16,916
contains Varnish,

1109
00:32:17,250 --> 00:32:18,291
the TLS Exterminator,

1110
00:32:18,291 --> 00:32:19,083
and then we need to run

1111
00:32:19,083 --> 00:32:20,208
them together as well.

1112
00:32:20,833 --> 00:32:22,875
And so Goreman is the glue

1113
00:32:22,875 --> 00:32:24,125
that runs them both, yeah.

1114
00:32:24,666 --> 00:32:25,875
Yeah, we'll see the Procfile

1115
00:32:26,375 --> 00:32:27,000
and all of that.

1116
00:32:27,000 --> 00:32:28,000
Actually, this is the Procfile,

1117
00:32:28,000 --> 00:32:29,916
the Procfile, which is generated just in time.

1118
00:32:30,416 --> 00:32:31,791
The Procfile has two entries.

1119
00:32:32,083 --> 00:32:32,625
pipely

1120
00:32:33,250 --> 00:32:34,875
and tls-exterminator

1121
00:32:35,083 --> 00:32:37,416
and it takes the tlsExterminatorProxy.

1122
00:32:39,541 --> 00:32:41,416
If we did have two containers,

1123
00:32:41,416 --> 00:32:43,666
you would have two images, right?

1124
00:32:43,833 --> 00:32:44,666
Or you'd have an image

1125
00:32:44,666 --> 00:32:45,333
and you'd write it

1126
00:32:45,333 --> 00:32:46,125
in two different ways.

1127
00:32:46,125 --> 00:32:47,958
So, that complexity would need

1128
00:32:47,958 --> 00:32:49,166
to be pushed elsewhere, but

1129
00:32:49,166 --> 00:32:49,750
you would still have

1130
00:32:49,750 --> 00:32:50,708
the same concern.

1131
00:32:51,208 --> 00:32:53,208
Because, these are so closely coupled,

1132
00:32:53,208 --> 00:32:54,708
I really like the idea of

1133
00:32:54,708 --> 00:32:55,916
the TLS Exterminator

1134
00:32:55,916 --> 00:32:57,833
living in the same space.

1135
00:32:58,666 --> 00:33:00,416
as Varnish,

1136
00:33:00,791 --> 00:33:02,333
because, it provides like a

1137
00:33:02,333 --> 00:33:04,541
direct service to Varnish

1138
00:33:04,916 --> 00:33:06,833
and it's like all exactly there

1139
00:33:06,833 --> 00:33:08,208
and we'll see some nice things

1140
00:33:08,208 --> 00:33:08,916
about that.

1141
00:33:08,916 --> 00:33:10,083
If we had multiple containers

1142
00:33:10,083 --> 00:33:11,875
this would be a little bit more

1143
00:33:12,166 --> 00:33:13,500
just involved to know

1144
00:33:13,500 --> 00:33:14,375
where you're talking,

1145
00:33:14,375 --> 00:33:15,083
where's the other container

1146
00:33:15,083 --> 00:33:15,750
and stuff like that.

1147
00:33:16,125 --> 00:33:17,750
I personally initially disagree

1148
00:33:17,750 --> 00:33:18,791
with that statement.

1149
00:33:18,791 --> 00:33:19,291
Sure!

1150
00:33:19,291 --> 00:33:20,291
Let's keep going!

1151
00:33:20,958 --> 00:33:22,875
Yeah, so okay.

1152
00:33:24,041 --> 00:33:26,416
If we were to deploy this

1153
00:33:26,416 --> 00:33:28,125
as two separate containers,

1154
00:33:28,416 --> 00:33:31,625
you would need to somehow manage...

1155
00:33:33,041 --> 00:33:34,458
there will be a point where

1156
00:33:34,458 --> 00:33:36,000
you need to do the Goreman equivalent.

1157
00:33:36,958 --> 00:33:37,291
Right?

1158
00:33:37,791 --> 00:33:39,083
And you would capture it

1159
00:33:39,083 --> 00:33:41,166
in a Kubernetes manifest, most likely.

1160
00:33:41,666 --> 00:33:42,625
Yes, yeah.

1161
00:33:43,041 --> 00:33:44,833
That is very Kubernetes specific.

1162
00:33:44,833 --> 00:33:46,416
Exactly, yeah, that is probably the

1163
00:33:46,416 --> 00:33:48,458
biggest problem because Kubernetes has

1164
00:33:48,458 --> 00:33:50,166
this weird concept where

1165
00:33:50,708 --> 00:33:53,125
two containers run in a pod

1166
00:33:53,666 --> 00:33:56,791
and they share the port space.

1167
00:33:57,083 --> 00:33:58,458
They're both on localhost.

1168
00:33:58,458 --> 00:33:59,666
And so you can just hit localhost

1169
00:33:59,666 --> 00:34:00,750
and hit the other container.

1170
00:34:02,166 --> 00:34:03,625
Yeah, that is a disadvantage,

1171
00:34:03,625 --> 00:34:05,041
'cause not many

1172
00:34:05,041 --> 00:34:06,833
platforms have that by default.

1173
00:34:07,541 --> 00:34:08,958
So on Fly, for example,

1174
00:34:08,958 --> 00:34:10,208
you could define these

1175
00:34:10,208 --> 00:34:11,583
as multiple processes.

1176
00:34:12,250 --> 00:34:12,875
You could do that,

1177
00:34:12,875 --> 00:34:14,416
like, TLS Exterminator

1178
00:34:14,416 --> 00:34:15,250
would be one

1179
00:34:15,708 --> 00:34:18,125
and Varnish would be another one.

1180
00:34:18,541 --> 00:34:20,666
They would create two separate machines.

1181
00:34:21,166 --> 00:34:22,791
That's how the implementation

1182
00:34:22,791 --> 00:34:24,916
behind it works.

1183
00:34:25,500 --> 00:34:26,750
And then the question is,

1184
00:34:27,208 --> 00:34:27,916
are they using

1185
00:34:27,916 --> 00:34:29,083
resources efficiently?

1186
00:34:30,750 --> 00:34:32,666
If you wanna scale them separately,

1187
00:34:32,666 --> 00:34:34,250
they have to go on separate machines.

1188
00:34:35,416 --> 00:34:36,875
I guess the concept of a pod

1189
00:34:36,875 --> 00:34:38,625
is you just, you know, you're just,

1190
00:34:39,041 --> 00:34:41,458
by definition saying that all of the

1191
00:34:41,458 --> 00:34:42,291
containers in this pod

1192
00:34:42,291 --> 00:34:43,375
should scale together.

1193
00:34:43,375 --> 00:34:45,583
This is where you have to deal with

1194
00:34:45,583 --> 00:34:46,500
different implementations.

1195
00:34:46,500 --> 00:34:47,875
If you were, for example, to try this

1196
00:34:47,875 --> 00:34:49,291
on Nomad or something else.

1197
00:34:49,833 --> 00:34:51,041
Whatever they do there,

1198
00:34:51,041 --> 00:34:52,333
you just need to account for that.

1199
00:34:53,041 --> 00:34:54,125
This couples them.

1200
00:34:54,625 --> 00:34:55,500
I'm very aware of

1201
00:34:55,500 --> 00:34:56,666
this coupling that happens,

1202
00:34:57,166 --> 00:34:59,375
but it happens in almost, like, in a very nice way.

1203
00:34:59,791 --> 00:35:00,250
It's almost, like,

1204
00:35:00,250 --> 00:35:02,416
TLS Exterminator was meant

1205
00:35:02,416 --> 00:35:04,458
to only exist with Varnish

1206
00:35:04,458 --> 00:35:07,041
in this context and not separately. So...

1207
00:35:07,708 --> 00:35:10,375
But yeah, health checks, again,

1208
00:35:10,375 --> 00:35:12,041
if TLS Exterminator is healthy,

1209
00:35:12,500 --> 00:35:13,333
that's interesting.

1210
00:35:13,583 --> 00:35:14,625
But really what I care

1211
00:35:14,625 --> 00:35:16,041
is for the Varnish backend 

1212
00:35:16,041 --> 00:35:16,833
to be healthy

1213
00:35:17,250 --> 00:35:18,708
and the Varnish backend, in this case,

1214
00:35:18,708 --> 00:35:21,375
it means something that hits TLS exterminator.

1215
00:35:21,375 --> 00:35:22,375
But yeah, I know what you mean.

1216
00:35:22,375 --> 00:35:23,916
Both are valid.

1217
00:35:24,750 --> 00:35:25,666
I could argue for both.

1218
00:35:26,000 --> 00:35:30,541
Yeah, the thing is, I do wonder if using

1219
00:35:30,541 --> 00:35:31,708
Goreman is better

1220
00:35:31,708 --> 00:35:33,375
versus are you trying to...

1221
00:35:33,791 --> 00:35:35,041
Because this is the problem when you want

1222
00:35:35,041 --> 00:35:36,000
to try to have a

1223
00:35:36,000 --> 00:35:38,333
cross-platform solution, right?

1224
00:35:38,833 --> 00:35:40,875
You end up building something

1225
00:35:40,875 --> 00:35:42,875
that's the least common denominator, right,

1226
00:35:42,875 --> 00:35:45,416
across all of the ones you want.

1227
00:35:45,416 --> 00:35:46,000
And so it's kind of

1228
00:35:46,000 --> 00:35:48,375
like a suboptimal solution.

1229
00:35:49,708 --> 00:35:50,750
You almost always end up with a

1230
00:35:50,750 --> 00:35:52,375
suboptimal solution just because you have

1231
00:35:52,375 --> 00:35:54,083
to figure out something that

1232
00:35:54,083 --> 00:35:55,583
works on all of your options.

1233
00:35:55,791 --> 00:35:56,333
Agreed.

1234
00:35:56,708 --> 00:35:58,416
The other thing is the way this

1235
00:35:58,416 --> 00:35:59,458
is implemented now

1236
00:35:59,458 --> 00:36:00,708
means that we cannot use

1237
00:36:00,708 --> 00:36:02,625
Varnish without TLS Exterminator. 

1238
00:36:02,625 --> 00:36:03,875
So, the two are coupled.

1239
00:36:04,166 --> 00:36:05,541
That's true, actually. That's a very good

1240
00:36:05,541 --> 00:36:06,375
argument for just putting

1241
00:36:06,375 --> 00:36:07,333
them all in one container.

1242
00:36:07,583 --> 00:36:08,916
Like, they literally, yeah, like, like,

1243
00:36:08,916 --> 00:36:11,083
Varnish has to work with TLS Exterminator.

1244
00:36:11,083 --> 00:36:12,666
Like, it assumes it's there, yeah.

1245
00:36:12,666 --> 00:36:13,125
Yeah, yeah.

1246
00:36:13,125 --> 00:36:14,333
So moving on we have a couple

1247
00:36:14,333 --> 00:36:15,125
of configurations.

1248
00:36:15,125 --> 00:36:16,083
This is the whole app, right? 

1249
00:36:16,083 --> 00:36:17,333
We have the proc file, like

1250
00:36:17,333 --> 00:36:19,000
everything is put together.

1251
00:36:19,500 --> 00:36:20,750
But this is the Pipely,

1252
00:36:20,750 --> 00:36:23,000
this returns the Pipely struct,

1253
00:36:23,750 --> 00:36:24,375
in this case,

1254
00:36:24,916 --> 00:36:27,666
and a Pipely app is just one

1255
00:36:27,666 --> 00:36:29,125
of the properties of that struct.

1256
00:36:29,125 --> 00:36:30,958
Now this is where, again, you already

1257
00:36:30,958 --> 00:36:32,916
mentioned how nice it is

1258
00:36:32,916 --> 00:36:34,125
to start reusing things,

1259
00:36:34,125 --> 00:36:35,833
and that's exactly what we're doing here.

1260
00:36:35,833 --> 00:36:38,000
So here we're creating a debug container

1261
00:36:38,000 --> 00:36:39,541
which has some extra things.

1262
00:36:39,541 --> 00:36:40,666
And by the way, I just

1263
00:36:40,666 --> 00:36:42,458
realized I have to add one more thing.

1264
00:36:42,458 --> 00:36:46,166
tmux, curl, httpstat, plus gotop,

1265
00:36:46,166 --> 00:36:47,750
which is the thing which I just installed

1266
00:36:48,208 --> 00:36:49,458
just before we started recording.

1267
00:36:50,083 --> 00:36:51,833
and sasqwatch

1268
00:36:51,833 --> 00:36:53,208
Oh, I don't know what saswqatch is.

1269
00:36:53,208 --> 00:36:55,083
Right, well we'll find out.

1270
00:36:55,083 --> 00:36:56,583
See, I did tell you that we will learn

1271
00:36:56,583 --> 00:36:57,583
a bunch of things today.

1272
00:36:57,833 --> 00:36:59,125
I didn't know what sasqwatch was,

1273
00:36:59,125 --> 00:37:00,541
until I, like, had to install it.

1274
00:37:00,916 --> 00:37:01,791
The only reason why

1275
00:37:01,791 --> 00:37:02,958
I installed sasqwatch,

1276
00:37:02,958 --> 00:37:05,291
By the way, I use hwatch locally.

1277
00:37:06,041 --> 00:37:07,791
Like, literally, "hwatch".

1278
00:37:08,083 --> 00:37:10,791
"Watch", okay, I see the sasqwatch.

1279
00:37:11,500 --> 00:37:13,833
But the sesqwatch is "sasqwatch".

1280
00:37:15,166 --> 00:37:15,791
That's how you type it.

1281
00:37:15,791 --> 00:37:16,958
I don't have it installed locally, but

1282
00:37:16,958 --> 00:37:18,125
hwatch

1283
00:37:18,250 --> 00:37:19,625
then if I do an "ls"

1284
00:37:20,166 --> 00:37:20,791
That's what it does.

1285
00:37:21,166 --> 00:37:22,500
It's written in Rust.

1286
00:37:23,208 --> 00:37:24,208
You need Cargo

1287
00:37:24,666 --> 00:37:25,500
and it's slightly more

1288
00:37:25,500 --> 00:37:26,625
involved to install it.

1289
00:37:27,791 --> 00:37:29,500
So it watches file changes?

1290
00:37:29,833 --> 00:37:31,791
So, it can run any command.

1291
00:37:32,291 --> 00:37:34,166
and it shows you changes to that command.

1292
00:37:34,166 --> 00:37:35,666
So "ls" was not a good one,

1293
00:37:35,666 --> 00:37:36,875
so let me just exit.

1294
00:37:37,250 --> 00:37:42,375
Let me do "curl https://changelog.com"

1295
00:37:42,916 --> 00:37:43,583
And let me run it.

1296
00:37:44,458 --> 00:37:46,125
Let me just do it a little less because

1297
00:37:46,125 --> 00:37:47,708
there's too much information there.

1298
00:37:47,875 --> 00:37:50,375
So let me actually do "httpstat".

1299
00:37:50,791 --> 00:37:51,833
I usually wrap these.

1300
00:37:51,833 --> 00:37:54,000
httpstat

1301
00:37:54,000 --> 00:37:54,458
There we go.

1302
00:37:55,208 --> 00:37:58,166
So, now I can see what comes back,

1303
00:37:58,166 --> 00:37:59,625
and if you see, if I go back,

1304
00:38:00,000 --> 00:38:01,833
I can see the differences between them.

1305
00:38:02,458 --> 00:38:03,333
So, I can see,

1306
00:38:03,333 --> 00:38:05,083
it runs it every two seconds,

1307
00:38:05,083 --> 00:38:08,958
but it's a TUI, a terminal UI, to watch

1308
00:38:08,958 --> 00:38:10,500
where I can see the differences...

1309
00:38:10,625 --> 00:38:11,416
That is really cool!

1310
00:38:11,666 --> 00:38:12,833
...between the requests.

1311
00:38:13,291 --> 00:38:14,000
You have the history,

1312
00:38:14,000 --> 00:38:14,750
you can do coloring,

1313
00:38:14,750 --> 00:38:16,083
you can do a bunch of things.

1314
00:38:17,416 --> 00:38:19,291
It just shows you everything

1315
00:38:19,291 --> 00:38:20,541
and you can go through them.

1316
00:38:20,541 --> 00:38:21,916
It's just a nice utility.

1317
00:38:22,208 --> 00:38:23,166
That is really nice!

1318
00:38:24,083 --> 00:38:24,625
Now,

1319
00:38:25,500 --> 00:38:27,333
hwatch, or hwatch,

1320
00:38:27,791 --> 00:38:29,208
as I call it,

1321
00:38:30,333 --> 00:38:32,083
I had to install Rust and Cargo.

1322
00:38:32,375 --> 00:38:33,333
I didn't want to do that, so

1323
00:38:33,333 --> 00:38:34,583
that's why I use sasqwatch.

1324
00:38:35,875 --> 00:38:37,416
S A S Q W A T C H

1325
00:38:39,500 --> 00:38:40,000
gotop

1326
00:38:40,666 --> 00:38:41,916
Have you used "gotop" before?

1327
00:38:42,625 --> 00:38:44,166
Uh... no, but I...

1328
00:38:44,166 --> 00:38:45,416
it's a replacement for top,

1329
00:38:45,416 --> 00:38:46,791
I assume, right?

1330
00:38:46,791 --> 00:38:47,333
Yes.

1331
00:38:47,333 --> 00:38:48,666
It's written in Go, yeah.

1332
00:38:48,666 --> 00:38:49,416
But it's nice.

1333
00:38:49,666 --> 00:38:50,458
And it has graphs.

1334
00:38:50,666 --> 00:38:52,708
That's what it looks like just running locally.

1335
00:38:52,708 --> 00:38:53,916
Actually yeah...

1336
00:38:54,166 --> 00:38:55,250
that is nice!

1337
00:38:55,250 --> 00:38:56,333
The CPU charts are really

1338
00:38:56,333 --> 00:38:57,375
beautiful, actually.

1339
00:38:57,375 --> 00:38:58,625
Yeah, yeah, yeah, cool.

1340
00:38:58,958 --> 00:38:59,916
So, we installed that,

1341
00:38:59,916 --> 00:39:01,208
we have a bunch of things, right,

1342
00:39:01,208 --> 00:39:02,375
and then we do tmux,

1343
00:39:02,375 --> 00:39:04,541
Neovim! I also added Neovim,

1344
00:39:04,541 --> 00:39:05,666
that was like last addition

1345
00:39:06,250 --> 00:39:06,833
oha,

1346
00:39:07,208 --> 00:39:09,125
in this case, "oha" is also coming

1347
00:39:09,125 --> 00:39:12,791
from Rust, Cargo, like that world,

1348
00:39:12,791 --> 00:39:14,291
the Rust ecosystem,

1349
00:39:14,916 --> 00:39:16,333
but they distribute as a binary

1350
00:39:16,333 --> 00:39:18,000
and I can just pull it down directly.

1351
00:39:18,625 --> 00:39:20,458
So in the case of "oha",

1352
00:39:20,458 --> 00:39:21,375
as you can see...

1353
00:39:21,375 --> 00:39:22,458
where was it? oha...

1354
00:39:23,583 --> 00:39:24,208
It was there.

1355
00:39:24,458 --> 00:39:26,000
I can just call "dag.HTTP",

1356
00:39:26,000 --> 00:39:27,708
so I can do an HTTP request.

1357
00:39:28,708 --> 00:39:29,750
and I can pull down,

1358
00:39:30,208 --> 00:39:31,541
I can do the platform.OS

1359
00:39:31,541 --> 00:39:33,000
and platform.Architecture,

1360
00:39:33,375 --> 00:39:34,375
and it's all bundled in.

1361
00:39:34,666 --> 00:39:37,333
So, you know, not all tools

1362
00:39:37,333 --> 00:39:38,541
are distributed as binaries.

1363
00:39:38,541 --> 00:39:40,375
If it was for different platforms,

1364
00:39:40,375 --> 00:39:41,125
I would have grabbed

1365
00:39:41,666 --> 00:39:42,583
hwatch as well.

1366
00:39:42,583 --> 00:39:43,958
Cool, so we have that.

1367
00:39:45,750 --> 00:39:47,833
I also installed "just", and look, "just" does

1368
00:39:47,833 --> 00:39:49,291
like even a different way, like to

1369
00:39:49,291 --> 00:39:50,916
install "just", you need to do "curl", but

1370
00:39:50,916 --> 00:39:51,666
anyway, just like to get

1371
00:39:51,666 --> 00:39:52,833
all those tools in.

1372
00:39:52,833 --> 00:39:54,125
So, now that I think of it,

1373
00:39:54,125 --> 00:39:55,583
my list is a bit unwieldy.

1374
00:39:55,583 --> 00:39:56,916
Debug container with...

1375
00:39:56,916 --> 00:39:58,250
I'll just stop listing them,

1376
00:39:58,791 --> 00:40:01,916
with various useful tools.

1377
00:40:02,375 --> 00:40:05,333
So, use "just" as the starting point.

1378
00:40:05,833 --> 00:40:06,666
You know, when it comes

1379
00:40:06,666 --> 00:40:07,791
to testing and debugging,

1380
00:40:08,583 --> 00:40:10,208
I don't think you should be penalized for

1381
00:40:10,958 --> 00:40:12,291
putting too much in there, right?

1382
00:40:12,291 --> 00:40:13,375
Like it's okay, you know...

1383
00:40:13,625 --> 00:40:16,458
tls-exterminator is 50 lines of code, but...

1384
00:40:16,791 --> 00:40:18,583
you know, but there might be 200 lines

1385
00:40:18,583 --> 00:40:21,750
of code of testing, you know test code,

1386
00:40:21,750 --> 00:40:23,875
and build stuff, which is fine.

1387
00:40:23,875 --> 00:40:24,875
I think that's acceptable.

1388
00:40:25,625 --> 00:40:26,958
My worry is that

1389
00:40:26,958 --> 00:40:28,666
this has changed so many times

1390
00:40:29,083 --> 00:40:30,666
and now I have a list

1391
00:40:30,666 --> 00:40:32,250
of all the tools which I'm using here.

1392
00:40:32,250 --> 00:40:33,083
Do I want to do that?

1393
00:40:33,291 --> 00:40:34,791
Do I want to create a list?

1394
00:40:35,375 --> 00:40:37,125
of this list, of these tools

1395
00:40:37,125 --> 00:40:38,250
that I have to maintain,

1396
00:40:38,541 --> 00:40:39,250
and I have to update

1397
00:40:39,250 --> 00:40:40,166
if I add another tool,

1398
00:40:40,166 --> 00:40:41,541
I have to remember it, if I remove it,

1399
00:40:41,541 --> 00:40:42,458
I have to remember it to

1400
00:40:42,458 --> 00:40:43,708
remove it from that list as well.

1401
00:40:43,708 --> 00:40:44,708
I would make a reusable

1402
00:40:44,708 --> 00:40:46,291
component that's like, you know,

1403
00:40:46,291 --> 00:40:47,125
Look at that.

1404
00:40:47,125 --> 00:40:48,791
You're already thinking like a nerd.

1405
00:40:48,791 --> 00:40:49,625
Gerhard's toolkit, right?

1406
00:40:49,625 --> 00:40:50,666
That just adds it

1407
00:40:50,666 --> 00:40:51,708
onto whatever container.

1408
00:40:53,166 --> 00:40:55,500
All right, so only because you asked.

1409
00:40:55,750 --> 00:40:56,458
I'm going to show you

1410
00:40:56,458 --> 00:40:57,625
this only because you asked.

1411
00:40:58,458 --> 00:40:59,666
Remember, "D"  Docker.

1412
00:41:00,250 --> 00:41:03,625
D pull ghcr.io/gerhard/sysadmin

1413
00:41:03,916 --> 00:41:05,000
It exists.

1414
00:41:05,500 --> 00:41:06,625
It's called sysadmin and it

1415
00:41:06,625 --> 00:41:08,083
pulls out all these tools.

1416
00:41:08,625 --> 00:41:10,166
Okay, so it pulls all these layers.

1417
00:41:10,833 --> 00:41:12,333
And when it's finished pulling them down.

1418
00:41:12,916 --> 00:41:13,333
Let's see.

1419
00:41:14,375 --> 00:41:15,708
Okay, run,

1420
00:41:16,125 --> 00:41:16,958
obviously I want to run.

1421
00:41:17,291 --> 00:41:18,458
I didn't write the README,

1422
00:41:18,458 --> 00:41:20,291
but PR would be welcome.

1423
00:41:20,583 --> 00:41:22,333
Ah, it's not public! I just remembered.

1424
00:41:25,041 --> 00:41:26,083
This one is not going to work.

1425
00:41:26,083 --> 00:41:27,333
The reason why it's not going to work

1426
00:41:27,333 --> 00:41:29,625
is because it has a sleep in it.

1427
00:41:29,833 --> 00:41:31,500
So I need to do --entrypoint

1428
00:41:31,750 --> 00:41:33,000
It has sleep infinity.

1429
00:41:33,375 --> 00:41:34,708
---entrypoint...

1430
00:41:35,291 --> 00:41:37,208
bash... I think that will work.

1431
00:41:37,208 --> 00:41:39,083
Maybe I need to put it in a different place. No.

1432
00:41:39,708 --> 00:41:40,708
So, it's the sleep.

1433
00:41:41,375 --> 00:41:42,500
So, what I need to do there,

1434
00:41:42,833 --> 00:41:45,375
it's --entrypoint bash

1435
00:41:45,875 --> 00:41:46,875
Okay, so now I'm there.

1436
00:41:47,208 --> 00:41:48,875
So, it has "btop", for example.

1437
00:41:49,250 --> 00:41:50,875
Another way, it has all the tops.

1438
00:41:50,875 --> 00:41:51,875
It has "atop".

1439
00:41:52,708 --> 00:41:53,791
It has "htop".

1440
00:41:54,791 --> 00:41:55,958
It has, does it have "gotop"?

1441
00:41:55,958 --> 00:41:56,958
No, it doesn't have gotop.

1442
00:41:56,958 --> 00:41:58,666
See, that's the one that I forgot to add,

1443
00:41:58,666 --> 00:41:59,791
but it has a lot of tools.

1444
00:42:00,291 --> 00:42:01,250
And if I do a...

1445
00:42:02,416 --> 00:42:03,875
So, let me not do a pull,

1446
00:42:03,875 --> 00:42:06,208
let me do an inspect... history?

1447
00:42:06,541 --> 00:42:08,333
Yeah, "history --no-trunc"....

1448
00:42:09,041 --> 00:42:10,000
We are riffing again.

1449
00:42:10,375 --> 00:42:11,000
You can see all the things

1450
00:42:11,000 --> 00:42:11,958
which it does here.

1451
00:42:11,958 --> 00:42:14,041
So, let me just go boom,

1452
00:42:14,875 --> 00:42:15,750
let me go there,

1453
00:42:16,083 --> 00:42:17,416
all the way to the bottom.

1454
00:42:18,083 --> 00:42:18,708
exec...

1455
00:42:19,458 --> 00:42:20,416
I just take that one.

1456
00:42:20,416 --> 00:42:21,250
So, "inxi"!

1457
00:42:21,500 --> 00:42:22,375
Do you know "inxi"?

1458
00:42:22,708 --> 00:42:23,708
No, I don't.

1459
00:42:23,708 --> 00:42:25,000
Oh man, it's such a cool tool.

1460
00:42:25,000 --> 00:42:27,041
I'm very much a low-tech user.

1461
00:42:27,041 --> 00:42:29,125
I just stick a lot of...

1462
00:42:29,125 --> 00:42:30,875
mostly I just stick with regular

1463
00:42:30,875 --> 00:42:32,250
whatever comes on the box.

1464
00:42:32,916 --> 00:42:35,291
So, there you go: "inxi", it gives you

1465
00:42:35,291 --> 00:42:39,541
various details about the actual system.

1466
00:42:40,166 --> 00:42:40,708
So, for example,

1467
00:42:40,708 --> 00:42:42,458
you can say, give me details

1468
00:42:42,458 --> 00:42:44,458
about the disks of the system.

1469
00:42:45,291 --> 00:42:45,875
Oh yeah, I mean

1470
00:42:45,875 --> 00:42:46,541
that's a lot nicer than...

1471
00:42:46,541 --> 00:42:48,375
Give me the weather.

1472
00:42:49,125 --> 00:42:49,666
What?!

1473
00:42:49,875 --> 00:42:51,375
Seriously, it's all there!

1474
00:42:51,750 --> 00:42:54,416
Look, broken clouds, 13 degrees,

1475
00:42:54,416 --> 00:42:56,166
56 Fahrenheit, conditions...

1476
00:42:56,375 --> 00:42:57,000
It's all there!

1477
00:42:57,708 --> 00:42:58,666
OpenWeatherMap

1478
00:42:59,958 --> 00:43:01,458
ghcr.io/gerhard/sysadmin

1479
00:43:02,125 --> 00:43:04,666
Okay, you need to open source that repo

1480
00:43:04,666 --> 00:43:06,791
because I'm gonna steal it all.

1481
00:43:07,166 --> 00:43:08,458
Yeah, but it's all there.

1482
00:43:08,458 --> 00:43:09,500
So, there we go.

1483
00:43:09,500 --> 00:43:10,875
And it has so many options,

1484
00:43:10,875 --> 00:43:12,166
so many options, seriously.

1485
00:43:12,541 --> 00:43:13,750
Like, so many flags, so

1486
00:43:13,750 --> 00:43:14,958
many things that you can run.

1487
00:43:15,666 --> 00:43:17,958
Serial number, ZFS raid,

1488
00:43:17,958 --> 00:43:18,916
it understands that.

1489
00:43:19,416 --> 00:43:21,291
Panel/tray/bar/dock

1490
00:43:21,291 --> 00:43:22,958
info and desktop output.

1491
00:43:23,583 --> 00:43:27,000
Crazy, location uses weather,

1492
00:43:27,000 --> 00:43:28,375
that's the W that I used.

1493
00:43:29,250 --> 00:43:31,333
Devices if present, serial number,

1494
00:43:32,875 --> 00:43:34,125
yeah, pretty much everything.

1495
00:43:34,250 --> 00:43:35,125
Extras,

1496
00:43:35,541 --> 00:43:36,583
look at the flags.

1497
00:43:36,833 --> 00:43:38,125
I'm still looking at the flags.

1498
00:43:38,708 --> 00:43:39,958
There's a lot of flags.

1499
00:43:39,958 --> 00:43:40,458
So, yeah.

1500
00:43:41,541 --> 00:43:42,750
Inxi is a really cool tool.

1501
00:43:43,291 --> 00:43:44,958
Anyway, coming back, coming back...

1502
00:43:45,833 --> 00:43:49,125
In here I can do "just bench-origin".

1503
00:43:49,958 --> 00:43:51,041
And if I do a dry run...

1504
00:43:52,000 --> 00:43:53,666
What it does, it's just an "oha".

1505
00:43:54,458 --> 00:43:56,166
with a couple of defaults,

1506
00:43:56,458 --> 00:43:57,416
HTTP version 1.1

1507
00:43:58,000 --> 00:43:59,250
Okay, so let's just run this

1508
00:43:59,250 --> 00:44:00,416
and see how it behaves.

1509
00:44:03,000 --> 00:44:04,000
So, we're going to send

1510
00:44:04,000 --> 00:44:05,166
a thousand requests

1511
00:44:05,416 --> 00:44:07,041
over 50 connections

1512
00:44:07,041 --> 00:44:08,291
as fast as possible.

1513
00:44:09,000 --> 00:44:10,375
And we can see last second,

1514
00:44:10,375 --> 00:44:12,750
it's going around...

1515
00:44:13,375 --> 00:44:14,375
...requests, I mean

1516
00:44:14,375 --> 00:44:15,458
there's a bit more there.

1517
00:44:16,291 --> 00:44:17,333
Let's see what it does.

1518
00:44:18,000 --> 00:44:20,833
We've sent 70 requests per second.

1519
00:44:22,583 --> 00:44:24,958
and the total was...

1520
00:44:25,791 --> 00:44:26,750
a 1000 actually.

1521
00:44:26,750 --> 00:44:28,375
So, this one skips Varnish

1522
00:44:28,375 --> 00:44:29,666
and goes straight to the origin.

1523
00:44:29,666 --> 00:44:30,791
Like, you know, that's just

1524
00:44:30,791 --> 00:44:32,500
our baseline, essentially.

1525
00:44:32,500 --> 00:44:34,000
Correct. This is our baseline. Exactly.

1526
00:44:34,458 --> 00:44:36,333
The baseline to see what it does,

1527
00:44:36,333 --> 00:44:37,375
and...

1528
00:44:37,791 --> 00:44:38,708
we have like some traffic,

1529
00:44:38,708 --> 00:44:39,500
We can run it again

1530
00:44:39,500 --> 00:44:40,291
to see what it does.

1531
00:44:40,291 --> 00:44:41,250
I'm going to run it again

1532
00:44:41,708 --> 00:44:42,583
just to see network.

1533
00:44:42,583 --> 00:44:43,500
What are we pushing?

1534
00:44:44,041 --> 00:44:46,500
1.1 MB/s

1535
00:44:46,500 --> 00:44:48,041
1.2 MB/s

1536
00:44:48,375 --> 00:44:49,416
That seems to be the limit,

1537
00:44:49,916 --> 00:44:51,916
and it is the limit of this origin.

1538
00:44:52,625 --> 00:44:55,000
So, I'm going to let it run again.

1539
00:44:55,916 --> 00:44:57,916
Okay, we see the distribution, right,

1540
00:44:57,916 --> 00:45:00,458
most 0.700 milliseconds.

1541
00:45:01,041 --> 00:45:03,583
And again, 68 requests per second.

1542
00:45:03,916 --> 00:45:04,208
Yeah.

1543
00:45:04,458 --> 00:45:04,791
All right.

1544
00:45:05,083 --> 00:45:06,208
So I'm wondering

1545
00:45:06,625 --> 00:45:08,208
what happens-- so this is not production.

1546
00:45:08,208 --> 00:45:08,750
This is when you go

1547
00:45:08,750 --> 00:45:09,958
to the origin directly.

1548
00:45:09,958 --> 00:45:10,958
I mean, it is production,

1549
00:45:10,958 --> 00:45:13,208
but not what users connect to.

1550
00:45:13,625 --> 00:45:13,916
Right.

1551
00:45:13,916 --> 00:45:15,291
So, if I go to

1552
00:45:16,000 --> 00:45:17,083
changelog.com

1553
00:45:18,166 --> 00:45:19,333
Just to do a comparison

1554
00:45:19,333 --> 00:45:20,000
to see what it does,

1555
00:45:20,000 --> 00:45:21,208
we can do HTTP 1 or 2,

1556
00:45:21,208 --> 00:45:22,166
it doesn't make that much

1557
00:45:22,166 --> 00:45:23,000
of a difference really.

1558
00:45:23,666 --> 00:45:24,375
But, let's run that.

1559
00:45:24,958 --> 00:45:26,166
That's how fast that was.

1560
00:45:26,375 --> 00:45:26,791
Woah.

1561
00:45:27,333 --> 00:45:28,000
Exactly.

1562
00:45:28,000 --> 00:45:28,833
So, it's not, like,

1563
00:45:28,833 --> 00:45:29,875
a connection thing, right?

1564
00:45:29,875 --> 00:45:32,958
So, we can see that we got 1800

1565
00:45:33,791 --> 00:45:34,958
requests per second,

1566
00:45:34,958 --> 00:45:35,750
for those thinking,

1567
00:45:35,750 --> 00:45:38,291
let's just go, like, 10,000

1568
00:45:38,291 --> 00:45:39,500
to see how fast that is.

1569
00:45:40,000 --> 00:45:41,083
And that's so fast.

1570
00:45:41,083 --> 00:45:43,166
I mean, I just, boom, it's done.

1571
00:45:43,166 --> 00:45:45,875
That's 10,000 requests,

1572
00:45:45,875 --> 00:45:47,750
and this was actually 10,000

1573
00:45:47,750 --> 00:45:48,750
requests per second.

1574
00:45:49,416 --> 00:45:50,750
That's why, like, it finished in a second.

1575
00:45:50,750 --> 00:45:52,083
So, let's just go a 100,000.

1576
00:45:52,083 --> 00:45:53,500
This is now getting serious.

1577
00:45:54,166 --> 00:45:55,958
It's just a fast connection.

1578
00:45:56,375 --> 00:45:57,791
So, I'm pushing actually

1579
00:45:58,208 --> 00:45:59,500
2 GB/s

1580
00:46:00,208 --> 00:46:00,708
Alright, so...

1581
00:46:01,083 --> 00:46:02,083
people thinking, hey,

1582
00:46:02,083 --> 00:46:02,958
is it your internet slow?

1583
00:46:02,958 --> 00:46:03,291
It's not.

1584
00:46:04,916 --> 00:46:05,625
So yeah, so we just-

1585
00:46:05,625 --> 00:46:07,916
like 100,000 requests.

1586
00:46:09,291 --> 00:46:10,791
This was about 11,000,

1587
00:46:10,791 --> 00:46:11,708
that seems to be,

1588
00:46:11,708 --> 00:46:13,875
in this case, my limit.

1589
00:46:13,875 --> 00:46:14,916
And I'm hitting basically

1590
00:46:14,916 --> 00:46:16,250
the limits of my internet connection

1591
00:46:16,250 --> 00:46:17,458
with 2 GB

1592
00:46:17,625 --> 00:46:17,916
Cool.

1593
00:46:18,416 --> 00:46:19,541
So, this is what's possible.

1594
00:46:19,541 --> 00:46:21,166
We can see-- and this is why--

1595
00:46:21,291 --> 00:46:22,500
it's one of the reasons why

1596
00:46:22,500 --> 00:46:23,958
I'd want to put a fast CDN

1597
00:46:23,958 --> 00:46:24,833
in front, right? 

1598
00:46:24,833 --> 00:46:28,250
We went from 60 to 10,000+.

1599
00:46:28,750 --> 00:46:30,666
So, this is nice, very, very nice, cool.

1600
00:46:31,500 --> 00:46:32,166
All right, so.

1601
00:46:32,875 --> 00:46:34,625
What else can we benchmark here?

1602
00:46:34,625 --> 00:46:36,625
So we benchmark the origin.

1603
00:46:37,083 --> 00:46:38,625
Let's bench TLS Exterminator,

1604
00:46:40,333 --> 00:46:41,583
Okay, same thing.

1605
00:46:42,291 --> 00:46:43,500
What do we expect to happen?

1606
00:46:43,500 --> 00:46:45,041
Well, it's kind of a

1607
00:46:45,041 --> 00:46:46,500
bit of a trade-off, right?

1608
00:46:46,500 --> 00:46:49,458
So, if Varnish is doing caching,

1609
00:46:49,458 --> 00:46:51,291
you'll get some performance

1610
00:46:51,291 --> 00:46:52,166
improvements there,

1611
00:46:52,166 --> 00:46:54,083
because it can respond locally.

1612
00:46:54,625 --> 00:46:56,291
If it's always forwarding to the...

1613
00:46:56,958 --> 00:46:57,958
...origin

1614
00:46:59,083 --> 00:46:59,666
you'll probably get

1615
00:46:59,666 --> 00:47:01,291
something a little worse

1616
00:47:01,291 --> 00:47:02,583
because you have an extra hop,

1617
00:47:02,583 --> 00:47:03,958
you have some overhead for that.

1618
00:47:04,583 --> 00:47:05,833
That's exactly what happened here.

1619
00:47:05,833 --> 00:47:07,541
So we're going to TLS Exterminator.

1620
00:47:07,875 --> 00:47:08,916
We're not going to Varnish.

1621
00:47:09,375 --> 00:47:10,000
We're getting about

1622
00:47:10,000 --> 00:47:12,041
63 requests/second, 64.

1623
00:47:13,375 --> 00:47:15,000
Right, so a little bit slower,

1624
00:47:15,000 --> 00:47:16,250
10% slower maybe,

1625
00:47:16,250 --> 00:47:17,375
but, not that much.

1626
00:47:17,375 --> 00:47:18,083
I mean some of this...

1627
00:47:18,083 --> 00:47:19,291
This is TLS Exterminator.

1628
00:47:19,291 --> 00:47:20,583
You're not hitting Varnish in this case.

1629
00:47:20,583 --> 00:47:20,958
No.

1630
00:47:21,791 --> 00:47:24,000
Just TLS Exterminator, exactly.

1631
00:47:24,958 --> 00:47:26,375
So, I'm going to local,

1632
00:47:26,791 --> 00:47:28,166
but we know that TLS Exterminator

1633
00:47:28,166 --> 00:47:30,583
has to go right to the origin.

1634
00:47:30,791 --> 00:47:31,166
Right.

1635
00:47:31,875 --> 00:47:33,000
Does a TLS handshaking,

1636
00:47:33,000 --> 00:47:33,666
the whole thing,

1637
00:47:33,666 --> 00:47:35,375
so, this basically shows that.

1638
00:47:35,875 --> 00:47:37,375
I mean, a few days ago, right?

1639
00:47:37,375 --> 00:47:38,416
We, well.

1640
00:47:39,000 --> 00:47:40,083
I think last week

1641
00:47:40,083 --> 00:47:40,916
or maybe two weeks ago,

1642
00:47:40,916 --> 00:47:41,666
I can't remember.

1643
00:47:42,041 --> 00:47:44,083
I think we're hitting about like 5,000,

1644
00:47:44,083 --> 00:47:45,583
6,000 requests/second.

1645
00:47:45,583 --> 00:47:46,750
That seems to have been the limit

1646
00:47:47,333 --> 00:47:48,958
of TLS Exterminator.

1647
00:47:49,583 --> 00:47:51,000
And the reason why

1648
00:47:51,000 --> 00:47:52,125
we did that because we

1649
00:47:52,125 --> 00:47:53,916
were proxying TLS Exterminator, 

1650
00:47:54,958 --> 00:47:56,583
we were proxying to the CDN,

1651
00:47:57,125 --> 00:47:58,208
to changelog.com.

1652
00:47:58,583 --> 00:47:58,958
Yeah.

1653
00:47:59,166 --> 00:47:59,875
What we need to do

1654
00:47:59,875 --> 00:48:01,416
really is proxy to the origin

1655
00:48:01,416 --> 00:48:02,625
because this will replace

1656
00:48:03,083 --> 00:48:04,125
the CDN eventually.

1657
00:48:04,666 --> 00:48:05,333
At least that's the idea.

1658
00:48:05,791 --> 00:48:06,541
Now we can see here

1659
00:48:06,541 --> 00:48:08,125
that it was actually 66.

1660
00:48:08,125 --> 00:48:09,958
So there's some variability.

1661
00:48:10,208 --> 00:48:11,125
Honestly, I would say

1662
00:48:11,125 --> 00:48:12,333
there's not much difference

1663
00:48:12,333 --> 00:48:12,750
because

1664
00:48:13,291 --> 00:48:16,541
There's no slowdown in TLS Exterminator.

1665
00:48:16,541 --> 00:48:17,750
That's not the bottleneck.

1666
00:48:18,166 --> 00:48:19,750
The bottleneck is the origin

1667
00:48:19,750 --> 00:48:21,041
that can only push,

1668
00:48:21,041 --> 00:48:21,791
I say only,

1669
00:48:22,250 --> 00:48:23,583
I mean, I'm going cross-Atlantic,

1670
00:48:23,583 --> 00:48:24,541
there's a couple of other things,

1671
00:48:24,541 --> 00:48:25,375
speed of light,

1672
00:48:26,250 --> 00:48:27,583
The requests are big,

1673
00:48:27,583 --> 00:48:29,083
there's quite a few things there.

1674
00:48:29,083 --> 00:48:29,875
Yeah, yeah.

1675
00:48:29,875 --> 00:48:30,291
But really that's

1676
00:48:30,291 --> 00:48:31,458
what's hitting the database,

1677
00:48:31,458 --> 00:48:32,208
a bunch of things.

1678
00:48:32,375 --> 00:48:33,416
Are you ready for this?

1679
00:48:33,666 --> 00:48:34,166
Yes.

1680
00:48:34,833 --> 00:48:35,791
Varnish, let's see.

1681
00:48:39,000 --> 00:48:39,708
Really?

1682
00:48:40,291 --> 00:48:40,750
That's it.

1683
00:48:43,041 --> 00:48:44,250
Wow, okay.

1684
00:48:44,541 --> 00:48:44,958
That's it.

1685
00:48:44,958 --> 00:48:46,291
All right, so let's see.

1686
00:48:47,375 --> 00:48:48,666
I think you're going to have to increase...

1687
00:48:48,666 --> 00:48:49,791
We have to slow it...

1688
00:48:49,791 --> 00:48:53,291
We have to, like, we got like 133,000!

1689
00:48:54,791 --> 00:48:55,875
Requests per second.

1690
00:48:56,791 --> 00:48:58,291
So, this is an order of

1691
00:48:58,291 --> 00:49:00,041
magnitude faster plus...

1692
00:49:00,625 --> 00:49:01,625
than the real CDN.

1693
00:49:02,000 --> 00:49:02,625
because when you

1694
00:49:02,625 --> 00:49:03,916
get a cache hit,

1695
00:49:04,291 --> 00:49:05,708
it's coming from localhost, right?

1696
00:49:05,708 --> 00:49:07,083
Correct! Exactly...

1697
00:49:07,083 --> 00:49:08,958
Like, you have no penalty at all to pay.

1698
00:49:09,583 --> 00:49:10,750
So let's see, let's just go,

1699
00:49:10,750 --> 00:49:12,041
I don't know, let's do that.

1700
00:49:12,416 --> 00:49:12,833
That's it.

1701
00:49:12,833 --> 00:49:14,458
That was a 100,000!

1702
00:49:15,500 --> 00:49:16,541
I think we have to go more.

1703
00:49:16,875 --> 00:49:17,541
What was the request

1704
00:49:17,541 --> 00:49:18,833
rate that you got there?

1705
00:49:19,500 --> 00:49:20,416
I don't know, like...

1706
00:49:21,041 --> 00:49:22,000
Okay, let's just go up

1707
00:49:25,125 --> 00:49:26,791
200...

1708
00:49:27,125 --> 00:49:29,708
200,000 requests/second!

1709
00:49:31,000 --> 00:49:31,708
This is unreal.

1710
00:49:31,875 --> 00:49:33,750
I mean, you're basically limited

1711
00:49:33,750 --> 00:49:34,875
by your hardware, you know?

1712
00:49:34,875 --> 00:49:38,166
The only way to improve this number

1713
00:49:38,166 --> 00:49:39,083
anymore would be just

1714
00:49:39,083 --> 00:49:40,208
to get a better server.

1715
00:49:40,500 --> 00:49:42,083
Yeah, pretty much. I mean, look at that.

1716
00:49:42,083 --> 00:49:45,250
It's 0.00, the response time

1717
00:49:45,250 --> 00:49:47,041
was basically instant.

1718
00:49:47,041 --> 00:49:48,041
Nanoseconds, yeah.

1719
00:49:48,625 --> 00:49:49,541
Yeah, 99.99%

1720
00:49:49,541 --> 00:49:50,458
They finished within like...

1721
00:49:50,458 --> 00:49:51,958
So, this is basically local, right?

1722
00:49:52,375 --> 00:49:53,791
So, let's just push a lot more.

1723
00:49:54,708 --> 00:49:55,916
Let's see what's going to happen.

1724
00:49:55,916 --> 00:49:57,375
So, we're pushing quite a bit.

1725
00:49:57,750 --> 00:49:58,750
It's still too fast.

1726
00:49:59,791 --> 00:50:01,541
It's incomprehensibly fast!

1727
00:50:01,541 --> 00:50:02,166
We're pushing...

1728
00:50:02,708 --> 00:50:05,750
233,000 and it's still going.

1729
00:50:06,125 --> 00:50:07,666
What about the CPU and memory

1730
00:50:07,666 --> 00:50:08,666
during that time actually?

1731
00:50:08,666 --> 00:50:09,375
that'd be really interesting...

1732
00:50:09,375 --> 00:50:10,916
I'm just going to push, like, a billion,

1733
00:50:11,125 --> 00:50:11,875
and let's see what happens,

1734
00:50:11,875 --> 00:50:12,750
that will take a while.

1735
00:50:13,125 --> 00:50:14,958
So, this is the actual system,

1736
00:50:14,958 --> 00:50:16,041
but what I would like to do

1737
00:50:16,041 --> 00:50:17,833
is jump on the actual system.

1738
00:50:18,583 --> 00:50:19,791
So "h22",

1739
00:50:20,250 --> 00:50:21,166
let's do "htop".

1740
00:50:21,500 --> 00:50:22,791
Okay, so this is the actual system.

1741
00:50:23,041 --> 00:50:23,500
Yeah.

1742
00:50:23,833 --> 00:50:24,666
Let's just do "btop",

1743
00:50:24,666 --> 00:50:25,625
I think that will be better.

1744
00:50:26,416 --> 00:50:29,708
So, this is a Ryzen 7 5800X.

1745
00:50:29,708 --> 00:50:30,875
You can see that at this point,

1746
00:50:30,875 --> 00:50:32,583
the cores are fully maxed out.

1747
00:50:32,583 --> 00:50:33,083
Yeah.

1748
00:50:33,541 --> 00:50:35,083
Okay, and this is like all...

1749
00:50:35,083 --> 00:50:36,708
This is...

1750
00:50:36,708 --> 00:50:39,333
This is actually running in Dagger.

1751
00:50:39,666 --> 00:50:40,791
Yeah, yeah, it is.

1752
00:50:40,791 --> 00:50:41,791
It's running in Dagger,

1753
00:50:42,208 --> 00:50:43,375
and it's able to utilize

1754
00:50:43,375 --> 00:50:44,375
all of your hardware.

1755
00:50:44,708 --> 00:50:45,250
Everything.

1756
00:50:45,250 --> 00:50:46,500
That's also good.

1757
00:50:46,500 --> 00:50:47,583
Like, that's a good thing.

1758
00:50:47,750 --> 00:50:49,625
"oha" is using 5 cores

1759
00:50:50,000 --> 00:50:52,000
and Varnish is using 10 cores.

1760
00:50:52,750 --> 00:50:53,875
So, at this point

1761
00:50:53,875 --> 00:50:55,166
all my 16 cores

1762
00:50:55,166 --> 00:50:56,208
are fully maxed out.

1763
00:50:57,333 --> 00:50:58,375
And it's still going, right?

1764
00:50:58,375 --> 00:51:00,000
Like, it's still holding up.

1765
00:51:00,625 --> 00:51:02,708
I mean I did send a billion requests.

1766
00:51:04,708 --> 00:51:05,583
Right, so...

1767
00:51:05,583 --> 00:51:08,625
look, "Data" 23 GB/s

1768
00:51:08,625 --> 00:51:10,375
I think this is crazy.

1769
00:51:10,375 --> 00:51:11,625
I don't know if that's correct.

1770
00:51:12,208 --> 00:51:14,625
164 GB/s,

1771
00:51:15,291 --> 00:51:17,000
requests, this will take a while.

1772
00:51:17,000 --> 00:51:18,250
It's localhost to localhost,

1773
00:51:18,250 --> 00:51:19,583
so yeah, why not?

1774
00:51:20,083 --> 00:51:21,250
But this is like, again,

1775
00:51:21,500 --> 00:51:22,875
this is just literally pushing,

1776
00:51:23,458 --> 00:51:24,500
Let's just come back...

1777
00:51:24,500 --> 00:51:26,125
This is pushing what's possible

1778
00:51:26,125 --> 00:51:26,875
on the CPU.

1779
00:51:27,250 --> 00:51:29,000
At this point, the CPU is the bottleneck.

1780
00:51:29,458 --> 00:51:30,250
And of course,

1781
00:51:30,250 --> 00:51:31,458
everything's happening locally.

1782
00:51:32,291 --> 00:51:34,958
But if network was

1783
00:51:34,958 --> 00:51:36,041
infinitely fast,

1784
00:51:36,041 --> 00:51:36,666
which it isn't,

1785
00:51:36,666 --> 00:51:38,583
and if latency was...

1786
00:51:38,583 --> 00:51:39,500
I think that's what it means,

1787
00:51:39,500 --> 00:51:41,291
both throughput and latency,

1788
00:51:41,291 --> 00:51:41,916
this is what we would

1789
00:51:41,916 --> 00:51:43,166
expect to get from Varnish.

1790
00:51:43,625 --> 00:51:44,083
Yeah.

1791
00:51:44,375 --> 00:51:44,958
So...

1792
00:51:45,875 --> 00:51:46,833
Poul-Henning Kamp...

1793
00:51:48,750 --> 00:51:49,250
We agree.

1794
00:51:49,791 --> 00:51:50,875
Yeah, yeah, definitely.

1795
00:51:50,875 --> 00:51:52,166
We agree, no TLS!

1796
00:51:52,375 --> 00:51:53,458
Alright, well,

1797
00:51:53,458 --> 00:51:54,791
as we wait for this to finish,

1798
00:51:54,791 --> 00:51:55,583
what happens next?

1799
00:51:56,000 --> 00:51:57,333
What does happen next, yeah?

1800
00:51:59,791 --> 00:52:01,000
I don't know... ship it?

1801
00:52:01,541 --> 00:52:03,166
Yeah! Ship it! Exactly!

1802
00:52:04,041 --> 00:52:04,666
Exactly!

1803
00:52:05,250 --> 00:52:06,166
So yeah,

1804
00:52:06,166 --> 00:52:07,208
let's just finish this,

1805
00:52:07,625 --> 00:52:08,666
get everything merged.

1806
00:52:08,666 --> 00:52:09,875
So, pull request one,

1807
00:52:09,875 --> 00:52:11,250
pull request eight.

1808
00:52:12,375 --> 00:52:14,208
That will resolve the TLS issue.

1809
00:52:14,875 --> 00:52:16,583
If I go back like to just

1810
00:52:16,583 --> 00:52:17,916
keep popping back the stack,

1811
00:52:18,333 --> 00:52:20,541
we will have support for TLS origins.

1812
00:52:20,541 --> 00:52:21,333
Right?

1813
00:52:21,333 --> 00:52:22,291
Then the next one would be

1814
00:52:22,291 --> 00:52:24,625
really to add the "Feeds" backend.

1815
00:52:24,625 --> 00:52:26,333
So, start adding more backends,

1816
00:52:27,125 --> 00:52:29,708
and then send logs to Honeycomb.

1817
00:52:29,875 --> 00:52:30,916
Ah, yeah.

1818
00:52:31,083 --> 00:52:31,916
That'll be the next one.

1819
00:52:32,458 --> 00:52:34,125
Get the Varnish logs

1820
00:52:34,125 --> 00:52:34,916
and send them in

1821
00:52:34,916 --> 00:52:36,541
an efficient way to Honeycomb.

1822
00:52:38,000 --> 00:52:40,041
And then also to "S3" for stats.

1823
00:52:41,000 --> 00:52:42,375
And look at that,

1824
00:52:42,375 --> 00:52:44,583
we're almost at the end.

1825
00:52:44,916 --> 00:52:46,833
Ooh, "PURGE" is going to be interesting.

1826
00:52:47,708 --> 00:52:48,916
Yeah, that will be interesting.

1827
00:52:49,708 --> 00:52:51,416
Because all instances we need to

1828
00:52:51,416 --> 00:52:53,500
have like a worker, a distribution,

1829
00:52:53,833 --> 00:52:54,708
a bunch of things, but...

1830
00:52:55,125 --> 00:52:55,541
Yeah.

1831
00:52:55,541 --> 00:52:55,916
But, yeah.

1832
00:52:57,500 --> 00:52:58,083
That'll be cool.

1833
00:52:58,083 --> 00:52:59,583
Nice, so, let's see here.

1834
00:52:59,583 --> 00:53:00,791
You might want to pin

1835
00:53:00,791 --> 00:53:02,208
to the latest version

1836
00:53:02,208 --> 00:53:03,916
of tls-exterminator.

1837
00:53:03,916 --> 00:53:05,000
I just merged your PR

1838
00:53:05,000 --> 00:53:07,291
that you added this morning.

1839
00:53:07,666 --> 00:53:08,125
Okay,

1840
00:53:09,000 --> 00:53:11,083
so let's just quit this, right

1841
00:53:11,083 --> 00:53:13,250
we did two...

1842
00:53:14,166 --> 00:53:16,541
I know a lot, basically 5...

1843
00:53:16,541 --> 00:53:17,333
50 million.

1844
00:53:18,000 --> 00:53:19,541
And it's 200,000.

1845
00:53:19,541 --> 00:53:20,833
So, that seems to be...

1846
00:53:21,625 --> 00:53:22,500
the max,

1847
00:53:22,500 --> 00:53:25,000
over a long period of time.

1848
00:53:26,375 --> 00:53:28,500
We have the distribution 12 ms

1849
00:53:29,125 --> 00:53:30,125
Right, so that's

1850
00:53:30,125 --> 00:53:31,083
basically, like, when it's

1851
00:53:31,083 --> 00:53:32,625
fully maxed out, it could go faster.

1852
00:53:32,916 --> 00:53:33,500
Cool.

1853
00:53:33,708 --> 00:53:34,791
So, let's do that.

1854
00:53:34,791 --> 00:53:36,583
Let's just like merge a couple of things

1855
00:53:36,916 --> 00:53:38,916
and let's just get out of this.

1856
00:53:38,916 --> 00:53:39,750
So, this is all running.

1857
00:53:39,750 --> 00:53:40,166
Boom.

1858
00:53:40,166 --> 00:53:42,166
I'm just back from the container.

1859
00:53:43,208 --> 00:53:44,250
That's the actual host.

1860
00:53:44,250 --> 00:53:44,916
We can see how

1861
00:53:44,916 --> 00:53:46,125
everything dropped. Cool.

1862
00:53:46,416 --> 00:53:48,458
So, you mentioned to merge...

1863
00:53:51,083 --> 00:53:53,791
the latest tls-exterminator.

1864
00:53:53,791 --> 00:53:55,541
So, we have the "tlsExterminatorVersion",

1865
00:53:55,541 --> 00:53:56,708
which is declared here

1866
00:53:56,708 --> 00:53:57,833
as a default that

1867
00:53:57,833 --> 00:53:59,041
takes basically the git SHA.

1868
00:53:59,625 --> 00:54:00,791
I could do "latest",

1869
00:54:00,791 --> 00:54:02,333
but, I'm not a big fan of that.

1870
00:54:02,333 --> 00:54:04,000
I always like pinning, version pinning.

1871
00:54:04,333 --> 00:54:05,916
Yeah, I agree as well.

1872
00:54:06,333 --> 00:54:07,708
Yeah, when you will have something,

1873
00:54:07,708 --> 00:54:09,166
for example, like semver,

1874
00:54:09,500 --> 00:54:10,333
whatever it is, I think that

1875
00:54:10,333 --> 00:54:11,000
will be better.

1876
00:54:11,375 --> 00:54:12,708
But for now, this is good.

1877
00:54:12,916 --> 00:54:13,458
This works.

1878
00:54:13,791 --> 00:54:15,875
So, if we go to...

1879
00:54:15,875 --> 00:54:16,333
where was it?

1880
00:54:16,333 --> 00:54:17,541
tls-exterminator

1881
00:54:18,333 --> 00:54:20,333
1 hour ago, so, let's click on this one,

1882
00:54:20,333 --> 00:54:21,333
as we were recording.

1883
00:54:21,791 --> 00:54:22,625
You did this, cool.

1884
00:54:22,625 --> 00:54:23,333
So, that's the one.

1885
00:54:23,875 --> 00:54:25,041
So I'm just going to put it...

1886
00:54:25,041 --> 00:54:25,916
dropping it here.

1887
00:54:28,833 --> 00:54:29,833
Okay, there we go.

1888
00:54:29,833 --> 00:54:30,791
So, that's changed.

1889
00:54:31,500 --> 00:54:32,375
And let's run again.

1890
00:54:32,791 --> 00:54:34,666
If I run "debug", of course,

1891
00:54:34,666 --> 00:54:35,916
I have like a shortcut

1892
00:54:35,916 --> 00:54:37,291
to do that and I can tab it.

1893
00:54:37,500 --> 00:54:39,291
That's the other thing, auto completion.

1894
00:54:39,833 --> 00:54:41,166
And there you go, it's just picking up

1895
00:54:41,166 --> 00:54:42,125
the latest version of

1896
00:54:42,125 --> 00:54:43,250
tls-exterminator,

1897
00:54:43,250 --> 00:54:44,250
it's doing a "go install"

1898
00:54:45,416 --> 00:54:46,083
from that version.

1899
00:54:46,750 --> 00:54:47,708
And let's see it

1900
00:54:47,708 --> 00:54:48,708
assemble everything else.

1901
00:54:48,708 --> 00:54:51,375
By the way, as a side note on the

1902
00:54:51,375 --> 00:54:53,791
philosophy of tls-exterminator as well,

1903
00:54:54,541 --> 00:54:56,708
a couple of weeks ago I decided to let

1904
00:54:56,708 --> 00:54:57,666
tls-exterminator

1905
00:54:57,666 --> 00:54:59,291
support multiple backends,

1906
00:54:59,541 --> 00:55:01,166
so, you could give it multiple ports

1907
00:55:01,166 --> 00:55:02,958
to listen to and multiple destinations.

1908
00:55:03,750 --> 00:55:04,875
But then I got to thinking...

1909
00:55:05,208 --> 00:55:06,541
I'm adding more complexity.

1910
00:55:06,541 --> 00:55:07,666
I'll have to add tests

1911
00:55:07,666 --> 00:55:08,875
for all of this as well.

1912
00:55:09,375 --> 00:55:11,000
And so I just stripped it back out.

1913
00:55:11,291 --> 00:55:11,916
You know...

1914
00:55:12,250 --> 00:55:12,875
I like that.

1915
00:55:12,875 --> 00:55:15,458
So essentially, if you want multiple...

1916
00:55:15,458 --> 00:55:18,166
if you need multiple TLS terminations,

1917
00:55:18,166 --> 00:55:20,875
just run another instance of it, you know?

1918
00:55:21,416 --> 00:55:22,375
And that's just another

1919
00:55:22,375 --> 00:55:23,833
line in your Goreman file,

1920
00:55:23,833 --> 00:55:24,541
in your Procfile.

1921
00:55:25,041 --> 00:55:25,333
Yeah.

1922
00:55:26,000 --> 00:55:27,000
How about we do that now?

1923
00:55:28,041 --> 00:55:29,291
Like, you know, it's there.

1924
00:55:29,500 --> 00:55:29,958
Yeah

1925
00:55:30,208 --> 00:55:31,083
Why don't we do that now?

1926
00:55:31,083 --> 00:55:32,583
So let's do that.

1927
00:55:33,541 --> 00:55:36,208
So, we have tls-exterminator.

1928
00:55:36,208 --> 00:55:38,208
So, this will be tls-exterminator.

1929
00:55:38,500 --> 00:55:39,708
So, rather than tls-exterminator,

1930
00:55:39,708 --> 00:55:40,958
I'm going to call the backend.

1931
00:55:41,500 --> 00:55:42,250
or the origin.

1932
00:55:43,000 --> 00:55:45,416
So, I'll say "changelog".

1933
00:55:46,708 --> 00:55:47,333
For example,

1934
00:55:47,791 --> 00:55:48,583
Yeah.

1935
00:55:49,291 --> 00:55:49,750
You see?

1936
00:55:49,750 --> 00:55:50,750
And then that's the...

1937
00:55:50,750 --> 00:55:52,041
whatever the process needs to be,

1938
00:55:52,833 --> 00:55:53,833
the process that it runs.

1939
00:55:54,958 --> 00:55:56,500
That's the tls-exterminator proxy,

1940
00:55:56,500 --> 00:55:57,750
so, let me remind myself...

1941
00:55:57,750 --> 00:55:59,208
oh I see, okay, so this...

1942
00:55:59,208 --> 00:56:01,291
the idea was that it only supports one.

1943
00:56:02,125 --> 00:56:04,458
Yeah, so you just run a second instance

1944
00:56:04,458 --> 00:56:05,458
on a different port

1945
00:56:05,458 --> 00:56:06,500
with a different destination.

1946
00:56:06,916 --> 00:56:07,458
And I mean,

1947
00:56:08,000 --> 00:56:08,416
you don't have to

1948
00:56:08,416 --> 00:56:09,208
build anything new,

1949
00:56:09,666 --> 00:56:10,583
it's just that same binary

1950
00:56:10,583 --> 00:56:11,083
that you're just

1951
00:56:11,083 --> 00:56:12,000
running multiple times.

1952
00:56:12,000 --> 00:56:13,416
Yeah, I see, I see.

1953
00:56:13,833 --> 00:56:14,541
So I think for this,

1954
00:56:14,541 --> 00:56:15,208
I would like to use

1955
00:56:15,208 --> 00:56:16,458
like something like enums.

1956
00:56:16,458 --> 00:56:17,666
I know they're supported.

1957
00:56:18,416 --> 00:56:18,916
I would just need to

1958
00:56:18,916 --> 00:56:20,250
look at the documentation.

1959
00:56:20,916 --> 00:56:22,375
This can actually be provided

1960
00:56:22,375 --> 00:56:23,916
like a comma separated string,

1961
00:56:25,125 --> 00:56:25,958
and

1962
00:56:26,458 --> 00:56:28,041
I would take that,

1963
00:56:28,041 --> 00:56:29,541
I would loop over that,

1964
00:56:29,541 --> 00:56:31,916
and I would basically put it in here.

1965
00:56:32,750 --> 00:56:33,708
I mean, how many backends

1966
00:56:33,708 --> 00:56:34,541
do you expect to have?

1967
00:56:34,833 --> 00:56:35,333
3

1968
00:56:37,041 --> 00:56:37,875
3 backends.

1969
00:56:38,500 --> 00:56:39,125
I don't know.

1970
00:56:39,125 --> 00:56:40,791
Is it worth like adding a loop,

1971
00:56:41,166 --> 00:56:42,333
that might have a bug in it?

1972
00:56:42,583 --> 00:56:43,125
Okay.

1973
00:56:43,625 --> 00:56:44,916
I see we're going with this.

1974
00:56:44,916 --> 00:56:45,541
All right, so

1975
00:56:46,083 --> 00:56:46,541
Let's do this,

1976
00:56:46,541 --> 00:56:48,208
let's do the "changelogProxy".

1977
00:56:48,958 --> 00:56:49,583
This will be now

1978
00:56:49,583 --> 00:56:52,291
very specific to changelog.

1979
00:56:52,291 --> 00:56:54,958
Yeah, which I honestly think that's fine. 

1980
00:56:54,958 --> 00:56:56,250
Cool, "changelogProxy",

1981
00:56:56,250 --> 00:56:57,041
Let's go for that.

1982
00:56:57,041 --> 00:56:58,291
So, this is the changelogProxy.

1983
00:56:59,250 --> 00:57:02,166
The next one is the "feedsProxy".

1984
00:57:06,458 --> 00:57:07,416
And we'll do the same thing

1985
00:57:07,416 --> 00:57:08,166
we'll add a default.

1986
00:57:08,625 --> 00:57:09,083
Yeah.

1987
00:57:09,833 --> 00:57:11,250
So...

1988
00:57:11,250 --> 00:57:12,750
what would you recommend here?

1989
00:57:12,750 --> 00:57:13,666
1 or 10?

1990
00:57:14,250 --> 00:57:15,333
What type of person are you?

1991
00:57:15,333 --> 00:57:16,416
Huh, I usually just

1992
00:57:16,416 --> 00:57:17,333
increment by 1,

1993
00:57:17,333 --> 00:57:18,458
but, I don't know.

1994
00:57:18,458 --> 00:57:19,375
What's the advantage of--

1995
00:57:19,375 --> 00:57:20,625
I like to leave space,

1996
00:57:20,625 --> 00:57:21,416
just in case you want to

1997
00:57:21,416 --> 00:57:22,458
sneak one in between.

1998
00:57:22,875 --> 00:57:24,541
This was, like, an old trick.

1999
00:57:24,541 --> 00:57:25,833
that we used to do...

2000
00:57:25,833 --> 00:57:27,875
Did you ever program in old school BASIC,

2001
00:57:27,875 --> 00:57:29,041
where you had to put in the

2002
00:57:29,041 --> 00:57:30,500
line number before every...

2003
00:57:31,083 --> 00:57:33,625
Not in BASIC, no, not in BASIC,

2004
00:57:34,083 --> 00:57:35,750
but I used to deal with configs

2005
00:57:36,166 --> 00:57:38,791
and config fragments.

2006
00:57:39,375 --> 00:57:40,500
when if you,

2007
00:57:40,500 --> 00:57:41,500
for example,

2008
00:57:41,500 --> 00:57:42,666
use this incrementally

2009
00:57:42,666 --> 00:57:43,500
and then you want to

2010
00:57:43,500 --> 00:57:44,875
put a config in between

2011
00:57:44,875 --> 00:57:46,000
because of precedence,

2012
00:57:46,625 --> 00:57:48,416
you had to reorder everything.

2013
00:57:49,291 --> 00:57:50,541
So, you'd always leave yourself

2014
00:57:50,541 --> 00:57:51,375
a bit of space

2015
00:57:51,375 --> 00:57:53,083
just in case like there's one,

2016
00:57:53,083 --> 00:57:53,833
like a weird one

2017
00:57:53,833 --> 00:57:55,666
that's needs to sneak in.

2018
00:57:55,666 --> 00:57:56,583
There's space to do that

2019
00:57:56,583 --> 00:57:57,375
and you don't have to change

2020
00:57:57,375 --> 00:57:58,333
anything else.

2021
00:57:58,625 --> 00:58:00,333
Yeah, yeah, that's definitely that.

2022
00:58:00,333 --> 00:58:01,791
That's the philosophy there for sure.

2023
00:58:03,833 --> 00:58:04,666
I've definitely I don't know.

2024
00:58:04,666 --> 00:58:05,916
It's like one of the very first, like

2025
00:58:05,916 --> 00:58:07,250
when I was a kid, there was a program.

2026
00:58:07,250 --> 00:58:08,458
I think it was BASIC like the...

2027
00:58:08,833 --> 00:58:09,958
there's a version of it where

2028
00:58:09,958 --> 00:58:11,458
you actually prefix

2029
00:58:11,458 --> 00:58:12,583
like, every line of code

2030
00:58:12,583 --> 00:58:14,250
you write, you put a number.

2031
00:58:14,250 --> 00:58:15,375
And so you can write all of

2032
00:58:15,375 --> 00:58:16,500
your commands out of order.

2033
00:58:16,500 --> 00:58:18,541
And then when you click compile run,

2034
00:58:18,541 --> 00:58:20,000
it sort of reorders

2035
00:58:20,000 --> 00:58:21,000
your lines in whatever...

2036
00:58:21,000 --> 00:58:23,791
And then if you do by 10s

2037
00:58:23,791 --> 00:58:25,291
then you can sneak things into the middle

2038
00:58:25,291 --> 00:58:26,500
very easily without having

2039
00:58:26,500 --> 00:58:27,833
to edit the whole file.

2040
00:58:28,833 --> 00:58:29,416
Makes sense.

2041
00:58:29,416 --> 00:58:29,958
So, this is the one

2042
00:58:29,958 --> 00:58:30,875
that we want to go to.

2043
00:58:31,500 --> 00:58:32,041
Feeds.

2044
00:58:32,041 --> 00:58:32,541
Yeah.

2045
00:58:33,083 --> 00:58:34,041
I know there's another one.

2046
00:58:35,375 --> 00:58:36,375
I don't know what it is now,

2047
00:58:36,666 --> 00:58:37,625
but, this is the one

2048
00:58:37,625 --> 00:58:38,583
that we're going to use now.

2049
00:58:39,125 --> 00:58:40,583
So, this one...

2050
00:58:42,291 --> 00:58:42,875
There you go,

2051
00:58:42,875 --> 00:58:44,000
that's the feedsProxy.

2052
00:58:46,166 --> 00:58:49,250
Okay, okay, so tls-exterminator,

2053
00:58:49,250 --> 00:58:52,333
this is the "changelogProxy"

2054
00:58:52,625 --> 00:58:54,041
and the next one is the "feedsProxy".

2055
00:58:54,625 --> 00:58:55,458
So, we take this,

2056
00:58:56,000 --> 00:58:56,583
we duplicate.

2057
00:58:57,208 --> 00:58:57,625
feeds

2058
00:58:58,291 --> 00:58:59,375
tls-exterminator.

2059
00:58:59,833 --> 00:59:00,291
Boom!

2060
00:59:00,666 --> 00:59:01,125
There we go.

2061
00:59:01,291 --> 00:59:02,000
Done, yeah.

2062
00:59:03,916 --> 00:59:05,166
We have the backend...

2063
00:59:05,166 --> 00:59:06,583
Let me think about this.

2064
00:59:07,333 --> 00:59:09,916
because now we have multiples

2065
00:59:09,916 --> 00:59:11,833
and now we need to carry this

2066
00:59:11,833 --> 00:59:13,583
through the Varnish config.

2067
00:59:13,875 --> 00:59:14,875
The Varnish file is going

2068
00:59:14,875 --> 00:59:16,083
to need another backend,

2069
00:59:16,083 --> 00:59:17,958
or unless it already has one, yeah.

2070
00:59:18,625 --> 00:59:20,375
Okay, so let's do "default.vcl"

2071
00:59:21,208 --> 00:59:23,791
So, we have the default one,

2072
00:59:23,791 --> 00:59:25,250
we have the new origin.

2073
00:59:26,208 --> 00:59:28,583
We have the BACKEND_FQDN.

2074
00:59:28,583 --> 00:59:30,500
Ah, I see.

2075
00:59:30,500 --> 00:59:35,583
So, this one is not going to work.

2076
00:59:35,583 --> 00:59:36,666
Okay, so this one starts

2077
00:59:36,666 --> 00:59:37,666
getting a bit complicated

2078
00:59:37,666 --> 00:59:38,875
because now what we need

2079
00:59:38,875 --> 00:59:41,458
to do is based on the route,

2080
00:59:42,041 --> 00:59:43,250
like, the request URL.

2081
00:59:43,833 --> 00:59:45,708
It needs to use different backends.

2082
00:59:45,708 --> 00:59:47,125
It can't use the same backend.

2083
00:59:47,125 --> 00:59:48,541
Oh, I see.

2084
00:59:48,958 --> 00:59:50,208
So, this is when we start,

2085
00:59:51,041 --> 00:59:52,750
now we need to start adding more

2086
00:59:52,750 --> 00:59:54,458
stuff into the "default.vcl"

2087
00:59:54,791 --> 00:59:56,250
to deal with the default backends,

2088
00:59:56,250 --> 00:59:57,708
because before we only had one,

2089
00:59:58,166 --> 00:59:59,625
now that we have multiple,

2090
00:59:59,625 --> 01:00:00,666
well, we have two, there's going

2091
01:00:00,666 --> 01:00:01,708
to be a third one,

2092
01:00:01,708 --> 01:00:02,750
they each need to...

2093
01:00:02,750 --> 01:00:03,583
based on the route,

2094
01:00:03,583 --> 01:00:05,375
it just needs to use a different backend.

2095
01:00:06,208 --> 01:00:07,083
Yeah, that sounds like it.

2096
01:00:07,083 --> 01:00:08,250
So I think this is a bigger refactoring.

2097
01:00:08,250 --> 01:00:09,125
That's probably not...

2098
01:00:09,833 --> 01:00:11,208
not something worth

2099
01:00:11,208 --> 01:00:12,250
doing live on video.

2100
01:00:12,250 --> 01:00:13,458
No, no, no, no,

2101
01:00:13,458 --> 01:00:15,000
we will leave this one for next time.

2102
01:00:15,000 --> 01:00:15,458
So, yeah.

2103
01:00:15,458 --> 01:00:16,791
We will leave this one for next time.

2104
01:00:16,791 --> 01:00:17,333
Nice.

2105
01:00:17,333 --> 01:00:19,083
This was incredibly helpful!

2106
01:00:20,166 --> 01:00:21,958
So I want to thank you very much,

2107
01:00:22,208 --> 01:00:23,833
you know, for giving your time,

2108
01:00:24,708 --> 01:00:26,083
with two little kids,

2109
01:00:27,375 --> 01:00:29,166
to a passion project

2110
01:00:29,166 --> 01:00:30,916
that I know is close to your heart.

2111
01:00:30,916 --> 01:00:32,583
TLS, SSL,

2112
01:00:32,583 --> 01:00:34,250
you just love living in that space.

2113
01:00:34,250 --> 01:00:37,375
Yeah, and I like building tools

2114
01:00:37,375 --> 01:00:38,958
for other developers as well,

2115
01:00:38,958 --> 01:00:39,583
in general.

2116
01:00:39,583 --> 01:00:42,208
And, so, that also fits in

2117
01:00:42,208 --> 01:00:44,625
definitely with my preferences and stuff.

2118
01:00:44,916 --> 01:00:46,458
We learned a bunch of things together.

2119
01:00:46,458 --> 01:00:47,166
We did!

2120
01:00:47,500 --> 01:00:48,083
Dagger.

2121
01:00:48,666 --> 01:00:49,958
SSL in Varnish.

2122
01:00:50,458 --> 01:00:52,333
That was quite the joyride.

2123
01:00:53,000 --> 01:00:54,000
Poul-Henning Kamp.

2124
01:00:54,583 --> 01:00:57,875
Poul-Henning?

2125
01:00:57,875 --> 01:00:58,875
Poul-Henning Kamp.

2126
01:00:59,041 --> 01:01:00,125
What I hope will happen

2127
01:01:00,125 --> 01:01:00,958
is that one day

2128
01:01:01,541 --> 01:01:03,083
we will get him to join

2129
01:01:03,625 --> 01:01:05,250
this little band of rebels.

2130
01:01:05,833 --> 01:01:07,541
and he will be able to correct us live.

2131
01:01:07,666 --> 01:01:08,291
So...

2132
01:01:09,000 --> 01:01:10,625
I will reach out to him,

2133
01:01:10,625 --> 01:01:12,458
see if he is curious,

2134
01:01:12,458 --> 01:01:13,625
just, like, to join the fun.

2135
01:01:13,625 --> 01:01:14,875
There's 4 of us now!

2136
01:01:15,166 --> 01:01:15,458
Yeah.

2137
01:01:15,458 --> 01:01:17,166
Really passionate about this.

2138
01:01:17,166 --> 01:01:18,041
You'll be contributor

2139
01:01:18,041 --> 01:01:19,416
number four to Pipely.

2140
01:01:19,916 --> 01:01:21,208
And I'm very curious

2141
01:01:21,208 --> 01:01:22,125
where it goes next.

2142
01:01:22,125 --> 01:01:23,583
Really, really curious.

2143
01:01:23,833 --> 01:01:25,041
Yeah, no, this has been really fun.

2144
01:01:25,041 --> 01:01:26,875
Like, it's nice to...

2145
01:01:27,416 --> 01:01:29,000
Yeah, to dabble in these...

2146
01:01:29,625 --> 01:01:30,916
Yeah, there's just a lot more...

2147
01:01:30,916 --> 01:01:32,375
less constraints, more flexibility

2148
01:01:32,375 --> 01:01:33,666
to just try and experiment

2149
01:01:33,666 --> 01:01:35,000
and things and yeah, it's really fun.

2150
01:01:35,583 --> 01:01:36,875
Thank you very much Nabeel,

2151
01:01:36,875 --> 01:01:38,083
I'm looking forward to the next one!

2152
01:01:38,083 --> 01:01:39,833
Yeah, yeah, me too!