1
00:00:03,080 --> 00:00:08,240
We're going live, everything is 
smooth so far. 

2
00:00:12,520 --> 00:00:17,640
Let's see. 
So yeah, link is on the link. 

3
00:00:18,000 --> 00:00:21,200
Yeah, it'll be another link. 
Unfortunately, that's the only 

4
00:00:21,200 --> 00:00:25,640
thing annoying with Restream, 
but all right, we are live. 

5
00:00:26,280 --> 00:00:28,200
All right, guys, I'm sorry about
that. 

6
00:00:28,280 --> 00:00:34,560
Something something with ODS 
switching from my intro video to

7
00:00:35,560 --> 00:00:38,280
these scenes. 
So what you see is just going to

8
00:00:38,280 --> 00:00:42,120
be Owen and I side by side. 
I won't be fancy and change 

9
00:00:42,120 --> 00:00:47,440
anything, but let me do my 
little introduction. 

10
00:00:48,640 --> 00:00:50,920
What's up? 
I'm Jacob Blitzo, your Elixir 

11
00:00:50,920 --> 00:00:53,920
mentor, and welcome to another 
exciting episode of the Elixir 

12
00:00:53,920 --> 00:00:56,120
Mentor Podcast. 
This is where we discuss 

13
00:00:56,120 --> 00:00:58,560
everything related to Elixir, 
from interviews with 

14
00:00:58,560 --> 00:01:02,680
enthusiasts, pioneers in the 
community, and to innovative 

15
00:01:02,680 --> 00:01:05,200
projects and library shaping. 
Elixir's future. 

16
00:01:05,480 --> 00:01:08,320
Today, I'm thrilled to welcome 
Owen Bickford, a software 

17
00:01:08,320 --> 00:01:11,920
engineer at Smart Logic and 
creator of web auth and 

18
00:01:11,920 --> 00:01:14,600
components. 
Welcome to the show, Owen. 

19
00:01:15,720 --> 00:01:19,560
Thank you for hanging in there 
with me as I struggled with 

20
00:01:19,600 --> 00:01:23,840
technical difficulties, but I 
think, I think we're good now. 

21
00:01:24,840 --> 00:01:28,720
OK, yeah, I'm glad it's not my 
fancy lights, you know, 

22
00:01:28,720 --> 00:01:31,280
destroying the stream. 
Yeah, they're good. 

23
00:01:31,280 --> 00:01:33,360
You couldn't turn those off. 
We need those. 

24
00:01:34,520 --> 00:01:37,840
Yeah, we are live streaming, so 
I thought it was like mandatory.

25
00:01:38,040 --> 00:01:41,520
Yeah, you have to like, see how 
I got my little purple hue back 

26
00:01:41,520 --> 00:01:43,040
there. 
You got to do it. 

27
00:01:45,400 --> 00:01:48,960
Why don't you start with just a 
brief introduction of who you 

28
00:01:48,960 --> 00:01:53,440
are and what you do? 
Well, yeah, so, yeah, again, I'm

29
00:01:53,520 --> 00:01:56,360
Owen Bickford. 
I've I write Elixir 

30
00:01:56,360 --> 00:01:59,440
professionally, I'm fortunate to
say so. 

31
00:01:59,440 --> 00:02:04,800
I've been at Smart Logic. 
It's a software consultancy, 

32
00:02:06,520 --> 00:02:14,440
been with them since October 
2022, no 2021, so three years 

33
00:02:14,440 --> 00:02:18,240
now. 
And before that I wrote a little

34
00:02:18,240 --> 00:02:22,640
bit of PHP for a couple years 
Before that I worked in customer

35
00:02:22,640 --> 00:02:27,680
service and tech support and 
like cable company tech support.

36
00:02:27,680 --> 00:02:32,840
So talking to people in their 
houses, getting things plugged 

37
00:02:32,840 --> 00:02:35,440
in to the TV, that was and. 
Probably getting yelled at a 

38
00:02:35,440 --> 00:02:38,960
lot. 
Oh no, Everyone was super polite

39
00:02:39,280 --> 00:02:43,120
and understanding and you know, 
you know, whenever things would 

40
00:02:43,120 --> 00:02:45,720
stop working, that would totally
be fine, you know? 

41
00:02:46,400 --> 00:02:49,920
Nice. 
So what's funny is I started, so

42
00:02:49,920 --> 00:02:53,640
2021 is when I first started 
learning Elixir and that's when 

43
00:02:53,640 --> 00:02:57,880
I caught the bug. 
So how long before that before 

44
00:02:57,880 --> 00:02:59,840
you got like a full time Elixir 
job? 

45
00:02:59,960 --> 00:03:02,440
Were you learning elixir and 
everything or did you learn it 

46
00:03:02,440 --> 00:03:06,400
on the job? 
So I I definitely learned before

47
00:03:06,400 --> 00:03:09,360
so I I want to say so I did not 
go to college. 

48
00:03:09,640 --> 00:03:13,120
So I dropped out of college 
after a semester just mostly 

49
00:03:13,120 --> 00:03:17,440
because I could not wake up in 
time for classes, maybe for some

50
00:03:17,440 --> 00:03:22,800
other reasons. 
So anyway, I, I and I didn't 

51
00:03:22,800 --> 00:03:25,880
learn to vacuum either. 
Like I learned a bunch of my 

52
00:03:25,880 --> 00:03:29,400
skills from people, you know, 
doing tutorials and sharing 

53
00:03:29,400 --> 00:03:31,560
stuff on the Internet. 
So. 

54
00:03:31,560 --> 00:03:35,000
But I think in earnest. 
So I had multiple attempts at 

55
00:03:35,000 --> 00:03:38,040
learning how to program and 
learning how to write code over 

56
00:03:38,040 --> 00:03:41,280
the years. 
But I think in earnest, the 

57
00:03:41,280 --> 00:03:45,120
first time I really where things
started to click and like kind 

58
00:03:45,120 --> 00:03:50,840
of set me up for my career was 
2014 or 15. 

59
00:03:52,160 --> 00:03:58,800
So I had kind of taken over this
small project which was all, you

60
00:03:58,800 --> 00:04:01,440
know, just written with HTML, 
CSS and JavaScript. 

61
00:04:01,440 --> 00:04:07,160
I knew HTML and CSS up to that 
point because I had learned that

62
00:04:07,160 --> 00:04:10,360
much over the years. 
But what we call programming, 

63
00:04:10,360 --> 00:04:13,280
you know, writing logic and 
stuff, it was all kind of new to

64
00:04:13,280 --> 00:04:15,240
me. 
Interacting with databases, that

65
00:04:15,240 --> 00:04:19,720
was also new. 
So from that small project, I 

66
00:04:19,720 --> 00:04:22,040
started watching more and more 
talks and reading more, more 

67
00:04:22,040 --> 00:04:25,000
blog articles. 
So around that time I was 

68
00:04:25,000 --> 00:04:29,320
getting introduced to. 
I started with jQuery, then was 

69
00:04:29,320 --> 00:04:32,480
getting introduced to React 
'cause that was just kind of 

70
00:04:32,480 --> 00:04:35,440
like blowing up a little bit 
around that era. 

71
00:04:35,440 --> 00:04:38,440
So 20/15/16 I feel. 
Like those are normal steps to 

72
00:04:38,440 --> 00:04:40,320
jQuery to the react. 
Exactly. 

73
00:04:40,520 --> 00:04:43,800
Yeah. 
So and then and, you know, Fast 

74
00:04:43,800 --> 00:04:46,560
forward today, I write as much 
vanilla JavaScript, right. 

75
00:04:46,680 --> 00:04:48,880
If I'm writing JavaScript, it's 
going to be as vanilla as 

76
00:04:48,880 --> 00:04:50,880
possible. 
Same same. 

77
00:04:51,280 --> 00:04:53,560
I. 
Struggle with remembering how to

78
00:04:53,560 --> 00:04:55,480
write a lot of JavaScript 
actually. 

79
00:04:55,480 --> 00:05:03,200
And I like for like 6 years I 
was like, no JSAPI developer, 

80
00:05:03,360 --> 00:05:05,360
yeah. 
Yeah, I the. 

81
00:05:05,560 --> 00:05:08,000
Elixir bug? 
Yeah, it's funny, sometimes I'll

82
00:05:08,000 --> 00:05:10,120
forget. 
Oh yeah, it's it's not do and 

83
00:05:10,120 --> 00:05:13,560
it's curly braces, that kind of 
thing. 

84
00:05:13,560 --> 00:05:16,760
Oh yeah, many commas between 
these things in this module. 

85
00:05:18,640 --> 00:05:22,640
But yeah, so like have a very 
zigzaggy kind of path to to 

86
00:05:22,640 --> 00:05:25,840
where I'm at today. 
But yeah. 

87
00:05:25,840 --> 00:05:30,680
And then So what I do now is, 
you know, client work. 

88
00:05:30,680 --> 00:05:35,560
So we we get projects that come 
in from a range of different bit

89
00:05:35,560 --> 00:05:37,440
types of businesses. 
Sometimes it's a startup, 

90
00:05:37,440 --> 00:05:39,360
sometimes it's a well 
established company. 

91
00:05:39,360 --> 00:05:42,880
You need to add a new product or
new features to a product. 

92
00:05:42,880 --> 00:05:47,360
So I get to kind of the nice 
thing about agency work and 

93
00:05:47,360 --> 00:05:50,480
freelance stuff is you get to 
work on a bunch like a wide 

94
00:05:50,480 --> 00:05:53,880
variety of applications. 
And so that helps you build up a

95
00:05:53,880 --> 00:05:55,400
lot of skills, I think, pretty 
quickly. 

96
00:05:55,560 --> 00:05:58,840
Yeah, and you don't get bored 
working in your silo. 

97
00:05:58,840 --> 00:06:03,840
I've like, I have a lot of, I 
have trouble like I always have 

98
00:06:03,840 --> 00:06:06,800
to have at least side projects 
going because I think that's the

99
00:06:06,960 --> 00:06:09,000
like, yeah, like you were 
saying, you learn so much 

100
00:06:09,000 --> 00:06:11,760
quicker because you run into so 
many different problems and 

101
00:06:12,440 --> 00:06:15,400
things to solve or just even 
using maybe different frameworks

102
00:06:15,400 --> 00:06:19,320
and libraries to like if one 
client needs like video 

103
00:06:19,320 --> 00:06:25,520
streaming another. 
So like I'm guessing web auth 

104
00:06:25,520 --> 00:06:29,760
and your components library was 
built as an internal tool, 

105
00:06:29,920 --> 00:06:34,760
probably for password auth. 
No, this was a side project. 

106
00:06:36,600 --> 00:06:39,160
Yeah. 
I forget exactly what the 

107
00:06:39,160 --> 00:06:41,720
impetus was. 
I think I had. 

108
00:06:42,440 --> 00:06:45,360
OK, so let's go back a little 
bit. 

109
00:06:45,360 --> 00:06:51,360
I think one thing I skipped over
in my personal history was as I 

110
00:06:51,360 --> 00:06:54,040
was learning, you know, this 
code and starting to think of 

111
00:06:54,040 --> 00:06:58,640
myself as, you know, a future 
software developer, you know, 

112
00:06:58,640 --> 00:07:01,360
eventually the Snowden leaks 
happened, right? 

113
00:07:01,760 --> 00:07:06,360
And so now I think a lot of 
folks who had maybe not 

114
00:07:06,440 --> 00:07:09,440
prioritized security, suddenly 
it was kind of like front of 

115
00:07:09,440 --> 00:07:11,880
mind. 
And so I remember around that 

116
00:07:11,880 --> 00:07:15,880
time I started subscribing to, 
you know, podcast and reading 

117
00:07:15,880 --> 00:07:22,560
more security content. 
So, so that kind of shaped my 

118
00:07:22,560 --> 00:07:26,920
thinking about like how things I
want to learn going in and then 

119
00:07:26,920 --> 00:07:31,880
also how I prioritize, you know,
the ways to solve problems. 

120
00:07:32,840 --> 00:07:38,080
And so, you know, something that
had happened, you know, many 

121
00:07:38,080 --> 00:07:40,560
times over the past few decades 
is data breaches. 

122
00:07:41,320 --> 00:07:44,720
And as someone who is now 
writing applications where 

123
00:07:44,960 --> 00:07:47,200
people are putting their real 
information and, you know, it's 

124
00:07:47,560 --> 00:07:52,520
very sensitive sometimes, I did 
not like the the idea that I was

125
00:07:52,520 --> 00:07:55,640
going to have a database full of
passwords that might be 

126
00:07:55,840 --> 00:08:00,040
compromised someday. 
And I had a side project that 

127
00:08:00,040 --> 00:08:04,440
was working on and wanted to, 
you know, because it's just kind

128
00:08:04,440 --> 00:08:06,920
of a solo side project. 
I was like, well, I can actually

129
00:08:06,920 --> 00:08:09,760
just try out this new thing I 
keep hearing about web 

130
00:08:09,760 --> 00:08:13,040
authentication. 
And I think around the time that

131
00:08:13,040 --> 00:08:16,800
I was really going in on this is
whenever the, the term passkey 

132
00:08:16,800 --> 00:08:20,080
started to surface. 
So. 

133
00:08:20,080 --> 00:08:23,960
I'm going to be honest, like I 
know what it is and I know how 

134
00:08:24,120 --> 00:08:28,000
good and secure it is, but I 
haven't done any work with like 

135
00:08:28,000 --> 00:08:33,960
password list stuff. 
Like if you were just to explain

136
00:08:33,960 --> 00:08:38,280
it from like a maybe a macro 
level for everyone, you kind of,

137
00:08:38,280 --> 00:08:40,720
it's kind of like like 
cryptocurrency, right? 

138
00:08:40,720 --> 00:08:43,760
You have like a public key and 
like a private key or a device 

139
00:08:43,760 --> 00:08:45,640
key, right? 
Yeah. 

140
00:08:45,640 --> 00:08:49,960
So there's, I think how I how I 
describe this to like a non 

141
00:08:49,960 --> 00:08:52,640
developer and then how I'd 
describe it to a developer. 

142
00:08:53,040 --> 00:08:53,960
There's a couple ways to do 
that. 

143
00:08:53,960 --> 00:08:58,240
So I think if I'm explaining 
pass keys to like an end user 

144
00:08:58,240 --> 00:09:02,080
who's not writing code and not a
security researcher, I would say

145
00:09:02,080 --> 00:09:06,200
it's kind of like, you know, we 
don't really go to banks 

146
00:09:06,200 --> 00:09:08,680
anymore. 
At least I don't I don't haven't

147
00:09:08,680 --> 00:09:10,200
gone to a inside of a building. 
I. 

148
00:09:10,360 --> 00:09:12,560
Have to go to a bank. 
Right. 

149
00:09:13,360 --> 00:09:16,280
But I remember when I was a kid,
you know, you'd go to the bank 

150
00:09:16,440 --> 00:09:19,600
and you'll see this in movies 
sometimes there's a safe, right?

151
00:09:19,920 --> 00:09:23,200
And inside the safe, there's a 
bunch of, what are they called 

152
00:09:23,200 --> 00:09:27,320
safety deposit boxes, or they're
boxes that each like an 

153
00:09:27,320 --> 00:09:31,360
individual people basically rent
or own or whatever inside the 

154
00:09:31,360 --> 00:09:34,680
bank. 
And in order to get into your, 

155
00:09:34,680 --> 00:09:39,000
your box, you, you have a key 
that you bring in, but you can't

156
00:09:39,000 --> 00:09:41,760
just go in by yourself. 
The someone at the bank needs to

157
00:09:41,760 --> 00:09:44,680
have a key. 
So there's a bank key, then 

158
00:09:44,680 --> 00:09:47,920
yours, there's your key. 
And the only way to open the box

159
00:09:47,920 --> 00:09:50,880
is to combine the keys, put them
both in and turn at the same 

160
00:09:50,880 --> 00:09:53,400
time. 
Then you get access to all the 

161
00:09:53,400 --> 00:09:58,600
stuff inside the box. 
So web authen or what we call 

162
00:09:58,600 --> 00:10:01,480
pass keys now kind of works the 
same way. 

163
00:10:01,480 --> 00:10:05,280
There's a key that that a like a
web service will have. 

164
00:10:05,480 --> 00:10:09,200
That could be Google, it could 
be GitHub, could be your, you 

165
00:10:09,200 --> 00:10:11,000
know, your product that you're 
building. 

166
00:10:11,680 --> 00:10:13,840
You're going to have a version 
of a key. 

167
00:10:13,840 --> 00:10:16,240
And then your users are going to
have a separate version of the 

168
00:10:16,240 --> 00:10:20,160
key that whenever they're 
combined, they allow access to 

169
00:10:20,680 --> 00:10:25,320
that person's account or access 
to the system, depending on, you

170
00:10:25,360 --> 00:10:33,120
know, your requirements. 
OK, so I was completely off then

171
00:10:33,160 --> 00:10:37,080
with a public and private key. 
No, that's so you're a 

172
00:10:37,080 --> 00:10:39,360
developer. 
So now I can tell you how it 

173
00:10:39,360 --> 00:10:42,840
works in developer terms. 
And I'm so I'm not a security 

174
00:10:42,840 --> 00:10:45,840
researcher myself. 
I can tell you kind of as a, as 

175
00:10:45,840 --> 00:10:48,680
a person who's built a library, 
my, you know, my understanding 

176
00:10:48,680 --> 00:10:51,760
here. 
So if you've ever signed into a 

177
00:10:51,760 --> 00:10:55,080
machine with SSH or set up your 
GitHub account, it's using a 

178
00:10:55,080 --> 00:10:57,120
very similar type of protocol, 
right? 

179
00:10:57,560 --> 00:10:59,040
You have a public and private 
key. 

180
00:11:00,080 --> 00:11:04,880
So the bank things like a 
metaphor like, yeah. 

181
00:11:04,880 --> 00:11:08,760
So like in order to access your 
GitHub account, if you set it up

182
00:11:08,760 --> 00:11:12,320
with web authent or pass keys, 
then basically under the hood 

183
00:11:12,320 --> 00:11:15,920
what's happening is, you know, 
you're registering a key, which 

184
00:11:15,920 --> 00:11:18,840
is your, your phone or your 
laptop. 

185
00:11:18,840 --> 00:11:22,040
It has a secure, you know, 
trusted platform module where 

186
00:11:22,040 --> 00:11:26,080
it, it does all this kind of 
hashing and, and it generates 

187
00:11:26,080 --> 00:11:29,800
secrets. 
So your machine is actually 

188
00:11:29,800 --> 00:11:34,520
responsible for generating this 
data, which to your human eyes 

189
00:11:34,520 --> 00:11:39,800
will look like a bunch of random
numbers and letters, but it will

190
00:11:39,800 --> 00:11:41,600
a. 
Very long string, right? 

191
00:11:42,440 --> 00:11:44,400
Right, right. 
And So what happens? 

192
00:11:44,520 --> 00:11:45,880
Device. 
Right. 

193
00:11:45,880 --> 00:11:48,280
So whenever you register, let's,
let's imagine we go to 

194
00:11:48,280 --> 00:11:51,600
example.com and we're going to 
register a new account. 

195
00:11:52,120 --> 00:11:58,080
So Jacob, you built example.com,
I'm going to go in as a user and

196
00:11:58,080 --> 00:12:00,560
I want to create a new account. 
So I'm going to go, you know, 

197
00:12:00,880 --> 00:12:02,600
create account, hit register, 
whatever. 

198
00:12:03,040 --> 00:12:06,240
And then it's going to ask 
probably for an e-mail, maybe 

199
00:12:06,240 --> 00:12:09,400
for a username, depending on 
what your, you know, what 

200
00:12:09,400 --> 00:12:12,080
example.com wants to use as its 
identifier. 

201
00:12:13,040 --> 00:12:18,000
And then instead of having a 
password field with pass keys, 

202
00:12:18,280 --> 00:12:21,240
you could, you could do this 
with just an e-mail or just a 

203
00:12:21,240 --> 00:12:23,760
username. 
Technically, you can do it 

204
00:12:23,760 --> 00:12:26,240
without either one of those and 
you can kind of derive something

205
00:12:26,240 --> 00:12:28,400
else. 
But I think practically 

206
00:12:28,400 --> 00:12:31,280
speaking, you're typically going
to provide a username or e-mail 

207
00:12:31,760 --> 00:12:34,040
and then you're going to click a
register button and your 

208
00:12:34,040 --> 00:12:36,280
computer's going to, your 
browser's going to pop up and 

209
00:12:36,280 --> 00:12:40,360
say, do you want to register 
with this site? 

210
00:12:40,440 --> 00:12:44,200
I'm kind of paraphrasing here, 
and if you use your Touch ID, 

211
00:12:44,200 --> 00:12:48,200
your Face ID, or whichever 
mechanism you use to 

212
00:12:48,200 --> 00:12:51,480
authenticate on your operating 
system, then it's going to 

213
00:12:51,680 --> 00:12:55,320
proceed and it will generate a 
private key which is stored on 

214
00:12:55,320 --> 00:12:57,400
the device. 
And then a public key that goes 

215
00:12:57,400 --> 00:13:00,120
up to the to 
theserviceexample.com. 

216
00:13:00,680 --> 00:13:04,040
Soexample.com gets this public 
key and that's what goes in the 

217
00:13:04,040 --> 00:13:07,000
database along with the key ID 
and some meta information. 

218
00:13:08,560 --> 00:13:10,800
And then, you know, it's also, 
it's under the hood. 

219
00:13:10,960 --> 00:13:13,400
It's going to start a session so
that you can go on about, you 

220
00:13:13,400 --> 00:13:16,360
know, using the actual site. 
But whenever you come back later

221
00:13:16,360 --> 00:13:20,080
on, you're going to use the same
device. 

222
00:13:20,160 --> 00:13:23,920
You're going to sign in. 
And whenever you go to 

223
00:13:23,920 --> 00:13:28,680
authenticate or sign in, your 
device is going to submit 

224
00:13:28,680 --> 00:13:30,920
something called the challenge. 
There's a whole cycle of 

225
00:13:30,920 --> 00:13:34,120
challenge and at a station 
basically where you're kind of 

226
00:13:34,320 --> 00:13:36,960
Long story short, you're kind of
checking whether these two 

227
00:13:36,960 --> 00:13:43,560
things provide a valid 
signaturesodoesexample.com's 

228
00:13:43,840 --> 00:13:48,800
public key match the private key
that you're providing to produce

229
00:13:48,840 --> 00:13:53,560
a valid signature. 
And then yeah, so that's I'm 

230
00:13:53,680 --> 00:13:55,960
like hand waving a little bit 
like some of the details here, 

231
00:13:56,400 --> 00:13:58,600
but that's at A at a high level 
basically. 

232
00:13:58,880 --> 00:14:02,520
No, I think that's good because 
like the off end protocols of 

233
00:14:02,600 --> 00:14:05,240
it's complicated. 
I haven't looked into it that 

234
00:14:05,240 --> 00:14:08,240
much, but I know enough that 
it's it's difficult. 

235
00:14:08,240 --> 00:14:11,320
So it's awesome that you created
a library. 

236
00:14:12,760 --> 00:14:17,400
You want to explain what your 
library is and how it works. 

237
00:14:18,000 --> 00:14:22,920
Yes, yeah, it is complicated. 
So this is the one of the first,

238
00:14:23,000 --> 00:14:25,560
not the only time, maybe not the
first time, but like this is 

239
00:14:25,560 --> 00:14:29,560
maybe the deepest I've gone into
like W3C docs for a feature. 

240
00:14:29,560 --> 00:14:33,960
So like MDN is like my preferred
resource now for like browser AP

241
00:14:34,360 --> 00:14:38,160
is, but I had to go into like 
the actual specs to understand 

242
00:14:38,440 --> 00:14:41,800
what are the options, like what 
are the types going in and out 

243
00:14:42,240 --> 00:14:45,400
in a couple cases. 
So anyway, yeah, so the the 

244
00:14:45,400 --> 00:14:49,320
project that I have is called 
Web Authen Components and what 

245
00:14:49,320 --> 00:14:52,240
it is, it's just a collection of
that's a few things. 

246
00:14:52,240 --> 00:14:54,560
So it's a collection of live 
components that you can use 

247
00:14:54,560 --> 00:15:00,400
inside of a Phoenix live view. 
And it also has some mixed tasks

248
00:15:00,400 --> 00:15:03,720
for generating code. 
So if you run the mixed task, 

249
00:15:04,240 --> 00:15:08,200
it's a whack, you know, mix, 
whack dot install, WAC dot 

250
00:15:08,200 --> 00:15:12,160
install. 
And for now it's just a, you 

251
00:15:12,160 --> 00:15:16,160
know, plain Elixir mixed tasks. 
I might come back and update 

252
00:15:16,200 --> 00:15:18,640
this with Igniter. 
We could talk about that, but 

253
00:15:18,920 --> 00:15:22,440
what what the install task will 
do is it will generate a 

254
00:15:22,440 --> 00:15:25,600
migration for your users table, 
user sessions, user token. 

255
00:15:25,600 --> 00:15:28,920
So it's kind of like an 
alternative to the Phoenix Gen. 

256
00:15:28,920 --> 00:15:33,760
auth mixed task because that 
one's going to give you, you 

257
00:15:33,760 --> 00:15:35,240
know, a lot of code. 
It's going to give you 

258
00:15:36,920 --> 00:15:39,600
essentially a a user 
authentication system that is 

259
00:15:39,600 --> 00:15:44,920
still password based and it's 
going to be secure as as much as

260
00:15:44,920 --> 00:15:47,920
like that can be. 
But we can talk about like why 

261
00:15:48,240 --> 00:15:52,560
passwords are not great, maybe 
in a moment, but web auth and 

262
00:15:52,560 --> 00:15:55,200
components will do is it will 
generate that migration. 

263
00:15:55,520 --> 00:15:58,880
It will generate a couple of 
live views, I think for 

264
00:15:58,880 --> 00:16:01,920
registration, registrating and 
authenticating. 

265
00:16:02,480 --> 00:16:06,360
And it kind of like writes a lot
of the boilerplate code for you.

266
00:16:07,480 --> 00:16:10,720
So the things that are under 
your control are the live view, 

267
00:16:10,720 --> 00:16:13,840
the schema, the migration. 
Once you generate that, you can 

268
00:16:13,840 --> 00:16:18,320
make whatever changes you like. 
And then anytime I push an 

269
00:16:18,320 --> 00:16:22,600
update to the package, you would
update the package in your, you 

270
00:16:22,600 --> 00:16:26,960
know, mixed file or run mixed 
steps dot update and the 

271
00:16:26,960 --> 00:16:29,240
components will be 
self-contained so those can 

272
00:16:29,240 --> 00:16:33,600
continue evolving and updating. 
And then you know, assuming 

273
00:16:33,600 --> 00:16:38,200
there's no breaking changes, you
know, basically you should have 

274
00:16:38,200 --> 00:16:42,400
to make minimal changes to your 
application as the components 

275
00:16:42,400 --> 00:16:45,400
get updated. 
Yes, that's great. 

276
00:16:46,280 --> 00:16:52,200
Do you do you now do you allow 
full CSS or tailwind and class 

277
00:16:52,200 --> 00:16:56,680
changes through your component? 
Or is it like the core component

278
00:16:56,680 --> 00:16:59,920
library where you have to go and
alter everything to make it 

279
00:16:59,920 --> 00:17:05,400
work? 
So it in this case the the 

280
00:17:05,560 --> 00:17:07,480
basically there's two visible 
components. 

281
00:17:07,480 --> 00:17:12,359
There's a register button and an
authenticate button and so you 

282
00:17:12,359 --> 00:17:14,839
can override the text that 
appears inside of those. 

283
00:17:15,480 --> 00:17:19,079
You can pass in Tailwind classes
and override the defaults. 

284
00:17:19,560 --> 00:17:21,800
So they have kind of like a semi
opinionated. 

285
00:17:21,800 --> 00:17:23,680
It's just like a Gray box 
basically. 

286
00:17:24,720 --> 00:17:27,480
I don't even remember now if 
they support dark mode by 

287
00:17:27,480 --> 00:17:29,880
default. 
I think it maybe I did write 

288
00:17:29,880 --> 00:17:33,000
light and dark variance. 
So it may be the only thing on 

289
00:17:33,000 --> 00:17:35,440
your on your site that does 
support light and dark, which 

290
00:17:35,440 --> 00:17:39,000
might be a problem. 
But yeah, so whatever overrides 

291
00:17:39,000 --> 00:17:42,800
you want to pass in, you would 
just add a class attribute and 

292
00:17:42,800 --> 00:17:46,040
it will kind of merge those in 
and overwrite. 

293
00:17:46,600 --> 00:17:49,880
Like if I use a certain padding 
amount and you want to increase 

294
00:17:49,880 --> 00:17:54,680
or decrease that. 
I'm using a package called Tails

295
00:17:55,240 --> 00:18:01,040
from Zach Daniel that 
intelligently merges new 

296
00:18:01,040 --> 00:18:03,320
classes. 
So whatever class is going to 

297
00:18:03,320 --> 00:18:07,720
conflict with the class further 
up the list, the the original 

298
00:18:07,720 --> 00:18:08,680
class will get. 
Oh. 

299
00:18:08,680 --> 00:18:09,960
I'm going to have to check that 
out. 

300
00:18:10,880 --> 00:18:12,880
But. 
How is that he has so much time?

301
00:18:13,240 --> 00:18:15,720
I think he, I feel like he 
builds so many things. 

302
00:18:16,760 --> 00:18:18,360
Yes. 
Oh, that's funny. 

303
00:18:18,400 --> 00:18:20,280
All right, so Tails, I'm going 
to check. 

304
00:18:20,320 --> 00:18:23,920
That yeah, that's like that's an
early install on every project 

305
00:18:23,920 --> 00:18:26,960
that I do I'm like, I'm going to
need tails because you know, 

306
00:18:27,720 --> 00:18:31,080
otherwise you're you might 
pigeon your hole yourself on 

307
00:18:31,320 --> 00:18:37,120
what classes OK like you want 
customization most of the time 

308
00:18:37,120 --> 00:18:37,680
so. 
Nice. 

309
00:18:37,880 --> 00:18:39,160
Yeah, I'm going to check that 
out. 

310
00:18:39,680 --> 00:18:46,200
I also need to check out your, 
your library because I'm, I'm 

311
00:18:46,200 --> 00:18:50,840
building out a new site called 
site Brands and all it is is 

312
00:18:50,840 --> 00:18:55,880
just a collection of web design.
So you can, you know, filter by 

313
00:18:56,080 --> 00:19:00,000
color, industry type and just 
kind of get design ideas. 

314
00:19:00,680 --> 00:19:04,560
But I want to do I started doing
just like the built in Phoenix 

315
00:19:04,800 --> 00:19:09,280
password authentication. 
But I feel like password list is

316
00:19:09,280 --> 00:19:12,760
just so nice when you don't have
to worry about password. 

317
00:19:12,760 --> 00:19:16,280
And like one of my early 
experiences when I was a young 

318
00:19:16,280 --> 00:19:19,640
naive developer was a man in the
middle, middle attack. 

319
00:19:20,320 --> 00:19:25,040
And I'm sure like that's one of 
the concerns with password based

320
00:19:25,040 --> 00:19:30,640
off right You can you can grab 
the the readable password before

321
00:19:30,640 --> 00:19:32,960
it gets to your server. 
Right. 

322
00:19:32,960 --> 00:19:38,000
So yeah, that I think that's a 
good thing to hit on is like, 

323
00:19:38,000 --> 00:19:40,840
why, why, why is web auth in a 
thing? 

324
00:19:41,440 --> 00:19:45,360
What's wrong with passwords? 
So there, there are many, many 

325
00:19:45,360 --> 00:19:46,720
challenges here. 
And this is like a big 

326
00:19:46,800 --> 00:19:48,920
evolution. 
You know, it goes back to the 

327
00:19:48,920 --> 00:19:53,640
start of, you know, computers 
and, you know, passwords are 

328
00:19:53,640 --> 00:19:56,120
literally a thing that existed 
even long before, you know, 

329
00:19:56,120 --> 00:19:58,320
centuries ago. 
Like if you were going to go to 

330
00:19:58,320 --> 00:20:01,560
a place that that did not just 
allow anyone off the street, you

331
00:20:01,560 --> 00:20:04,600
would have to have some kind of 
code word to get in, right? 

332
00:20:05,280 --> 00:20:08,800
That would be a shared code word
where like you, once you know 

333
00:20:08,800 --> 00:20:12,840
it, you know you get in. 
But if too many people have it, 

334
00:20:12,840 --> 00:20:17,200
then you got a problem. 
So anyway, just to like narrow 

335
00:20:17,200 --> 00:20:22,400
it down to the scope of computer
passwords, you know, the most 

336
00:20:22,400 --> 00:20:25,440
naive approach would be, you 
know, a user sets up an account,

337
00:20:25,440 --> 00:20:28,200
they give, they give an e-mail 
address and a password, you put 

338
00:20:28,200 --> 00:20:30,440
that e-mail address, then you 
put that password in the 

339
00:20:30,440 --> 00:20:33,040
database just as it came 
through, right? 

340
00:20:33,040 --> 00:20:35,520
I can't remember. 
What could go wrong? 

341
00:20:35,920 --> 00:20:40,160
I think it was Uber. 
Was it Uber that they were 

342
00:20:40,160 --> 00:20:43,520
storing? 
They weren't hashing passwords, 

343
00:20:43,520 --> 00:20:46,880
they were storing the actual 
readable passwords. 

344
00:20:46,880 --> 00:20:50,880
And then somehow it also entered
into their GitHub code base. 

345
00:20:52,680 --> 00:20:55,680
It happens so frequently. 
It's this is this is one of 

346
00:20:55,680 --> 00:20:59,520
those problems where it's just 
really hard for everyone who 

347
00:20:59,520 --> 00:21:02,720
needs to get it right to get it 
right because you've got, you 

348
00:21:02,720 --> 00:21:04,360
know, so many people involved 
with the company. 

349
00:21:04,360 --> 00:21:07,200
So I don't know if it was Uber. 
I mean at this point I think 

350
00:21:07,400 --> 00:21:10,480
almost every everyone was start.
Up with a lot of funding. 

351
00:21:10,520 --> 00:21:13,760
That's all I remember. 
But it's it's also a pattern. 

352
00:21:13,760 --> 00:21:17,040
So like, This is why I wouldn't 
really blame. 

353
00:21:17,200 --> 00:21:19,600
Yeah, the whoever made that 
mistake should probably have 

354
00:21:19,600 --> 00:21:22,160
some accountability. 
But also it's just hard to do 

355
00:21:22,160 --> 00:21:26,160
the right thing sometimes. 
So you've seen a lot of data 

356
00:21:26,160 --> 00:21:29,040
reaches where passwords were 
stored in plain text. 

357
00:21:29,520 --> 00:21:32,320
This happens sometimes on 
Internet of Security devices or 

358
00:21:32,320 --> 00:21:35,400
an Internet of Things devices. 
So like a lot of those devices 

359
00:21:35,400 --> 00:21:38,920
sometimes just don't encrypt 
things going back and forth. 

360
00:21:39,080 --> 00:21:44,040
That could even be passwords. 
You know, typically banks have 

361
00:21:44,040 --> 00:21:45,480
really great security. 
I think there might have been 

362
00:21:45,480 --> 00:21:49,440
some examples of banks where, 
you know, secrets are not being 

363
00:21:49,440 --> 00:21:52,400
encrypted correctly. 
There's password secrets for 

364
00:21:52,400 --> 00:21:54,120
like accounts. 
There's also like your 

365
00:21:54,120 --> 00:21:56,520
application secrets, which is 
kind of like a separate topic. 

366
00:21:58,120 --> 00:22:00,600
But yeah, it's. 
So that's one problem with 

367
00:22:00,600 --> 00:22:04,520
passwords is like you, you need 
to either use some tools you're 

368
00:22:04,520 --> 00:22:06,920
really not supposed to like, 
just handwrite your own tools. 

369
00:22:06,920 --> 00:22:08,920
For this, you're supposed to use
something like. 

370
00:22:09,600 --> 00:22:12,600
I'll always say like, if there's
one thing you use a library for,

371
00:22:13,160 --> 00:22:18,120
it is currency things and 
authentication. 

372
00:22:19,080 --> 00:22:22,280
Probably time zones too. 
Yeah, time zones, yeah, if you 

373
00:22:22,280 --> 00:22:24,720
care, right? 
But yeah, time. 

374
00:22:24,760 --> 00:22:28,440
Zones are hard. 
Yes, yeah, let that let someone 

375
00:22:28,440 --> 00:22:32,320
else solve these problems 
because you don't want to be 

376
00:22:32,320 --> 00:22:34,600
getting bug reports about those 
types of problems. 

377
00:22:34,640 --> 00:22:35,800
You know, you got features 
build. 

378
00:22:37,800 --> 00:22:41,760
So so yeah, like Phoenix, the 
the Phoenix Gen. auth will do a 

379
00:22:41,760 --> 00:22:45,920
good job of giving you I think 
it's using bcrypt. 

380
00:22:45,920 --> 00:22:51,080
So there have been a like a 
yeah, there's been an evolution 

381
00:22:51,080 --> 00:22:55,000
of algorithms for kind of 
encrypting a password that a 

382
00:22:55,000 --> 00:22:57,960
user provides you. 
So that whenever I, I go in as 

383
00:22:58,120 --> 00:23:02,240
on@example.com and I register an
account and give it a password 

384
00:23:02,440 --> 00:23:06,680
or change my password later on, 
it's going to use salting and 

385
00:23:06,680 --> 00:23:09,880
hashing algorithms so that it in
the database, it just looks like

386
00:23:09,880 --> 00:23:11,680
a bunch of different letters. 
It's not what I actually typed 

387
00:23:11,680 --> 00:23:14,040
in. 
So whenever I go back, then 

388
00:23:14,040 --> 00:23:17,200
you've got to say, all right, 
you got to check whatever 

389
00:23:17,200 --> 00:23:20,120
password the person puts into 
the site, You've got to run it 

390
00:23:20,120 --> 00:23:24,000
back through those algorithms to
compare it to the decrypted 

391
00:23:24,360 --> 00:23:29,200
password on the database and. 
One thing we should say here is 

392
00:23:29,200 --> 00:23:32,600
like the difference between 
hashing and encrypting is you 

393
00:23:32,600 --> 00:23:38,320
can't undo it, so you can't 
unhash a a hash password to get 

394
00:23:38,320 --> 00:23:40,360
the readable plain text password
again. 

395
00:23:41,480 --> 00:23:45,800
It's true, there is. 
Well, I guess theoretically you 

396
00:23:45,800 --> 00:23:50,880
shouldn't be able to. 
Yeah, the I think security is 

397
00:23:50,880 --> 00:23:54,320
like just a continuous like 
cycle of we've solved this and 

398
00:23:54,320 --> 00:23:57,200
oh, oops, look, there's a 
surprise like this wasn't this 

399
00:23:57,200 --> 00:24:00,400
didn't quite work. 
So one thing that happens is 

400
00:24:00,400 --> 00:24:03,760
there's something called a 
rainbow table where eventually, 

401
00:24:03,760 --> 00:24:07,000
like after enough data breaches,
you find that people reuse their

402
00:24:07,000 --> 00:24:11,560
passwords across multiple sites.
And you can like once you know 

403
00:24:11,560 --> 00:24:15,960
that a password works on one 
site, you can kind of determine 

404
00:24:16,600 --> 00:24:20,840
that this password looks like 
the one you've seen before. 

405
00:24:21,480 --> 00:24:24,880
So I'm like really mingling what
a rainbow table actually means. 

406
00:24:24,880 --> 00:24:28,640
But like so but. 
Probably just a collection of 

407
00:24:28,720 --> 00:24:32,240
like all my hashes from 
different organizations, right? 

408
00:24:33,080 --> 00:24:34,320
Right. 
And then maybe not. 

409
00:24:34,640 --> 00:24:37,480
That I use the same password. 
Right. 

410
00:24:37,480 --> 00:24:41,240
So if you yeah, for any 
passwords that have been 

411
00:24:41,840 --> 00:24:44,960
compromised before where you 
know, like when it was 

412
00:24:44,960 --> 00:24:46,920
encrypted, it looks like this, 
when it decrypted looks like 

413
00:24:46,920 --> 00:24:50,920
this, then you have a table that
can just say, all right, we 

414
00:24:50,920 --> 00:24:54,160
found this this encrypted 
password in a database. 

415
00:24:54,520 --> 00:24:57,720
Does it exist in an? 
Do we have it in an unencrypted 

416
00:24:57,720 --> 00:24:59,560
format? 
If so, then we know how to get 

417
00:24:59,560 --> 00:25:05,080
into that person's account on 
this newly breached site, so. 

418
00:25:05,920 --> 00:25:09,920
I always got so I always tell 
people that I recommend if 

419
00:25:09,920 --> 00:25:15,160
you're doing password off that I
always will hash it before it 

420
00:25:15,160 --> 00:25:18,280
leaves my front end and then 
rehash it on the back end. 

421
00:25:18,760 --> 00:25:22,920
And I did not realize how 
controversial saying that was. 

422
00:25:23,120 --> 00:25:27,200
So many people tell me told me 
how pointless and useless doing 

423
00:25:27,200 --> 00:25:28,680
that is. 
It doesn't make any sense. 

424
00:25:28,920 --> 00:25:33,000
And I was like, well it does 
because it means that no one can

425
00:25:33,000 --> 00:25:35,840
grab a plain text password 
because I don't need to know 

426
00:25:35,840 --> 00:25:37,840
that. 
I just have to always make sure 

427
00:25:37,840 --> 00:25:41,280
it's hashing the same way before
it gets to my back end, but 

428
00:25:41,480 --> 00:25:44,280
maybe I'm not even. 
Maybe it is silly to do that. 

429
00:25:46,320 --> 00:25:50,640
I don't know, I, I, I would like
to live in a world where we 

430
00:25:50,640 --> 00:25:52,400
don't even have to think about 
that anymore. 

431
00:25:52,400 --> 00:25:57,960
So that's, that's the future 
that I'm trying to, to help, you

432
00:25:57,960 --> 00:26:00,560
know, pave the way for. 
So that's, that's why web auth 

433
00:26:00,560 --> 00:26:05,000
and components exist. 
So even just getting password 

434
00:26:05,000 --> 00:26:07,200
encryption decryption right is 
hard. 

435
00:26:07,680 --> 00:26:10,320
But even when you do that, we 
have more problems to solve, 

436
00:26:10,320 --> 00:26:13,320
right? 
So, OK, so we've encrypted and 

437
00:26:13,320 --> 00:26:16,600
decrypted passwords, but now we 
know that like even those can be

438
00:26:17,000 --> 00:26:21,320
reused because of this rainbow 
table and, you know, algorithm 

439
00:26:21,320 --> 00:26:23,080
sometimes turn out not to be 
secure. 

440
00:26:23,840 --> 00:26:26,920
Also, computers are just more 
capable of cracking these things

441
00:26:26,920 --> 00:26:28,920
than they used to be. 
So that will always continue to 

442
00:26:28,920 --> 00:26:33,480
be true. 
So there are other ways that the

443
00:26:33,480 --> 00:26:36,000
industry has tried to solve 
these problems before. 

444
00:26:36,520 --> 00:26:39,240
So these will sound familiar. 
Sometimes you sign into it, you 

445
00:26:39,240 --> 00:26:42,760
sign into a site and it's it 
needs to send you a verification

446
00:26:42,760 --> 00:26:44,800
code. 
It can do that through your 

447
00:26:44,800 --> 00:26:49,680
phone, through an SMSA message. 
You can do that through e-mail, 

448
00:26:50,640 --> 00:26:55,480
you can do that through a one 
time password application, or it

449
00:26:55,480 --> 00:26:58,840
might even like pop up like Mac 
OS will like show a code 

450
00:26:58,840 --> 00:27:01,800
somewhere on another device 
you've already authenticated 

451
00:27:01,800 --> 00:27:04,640
with. 
I think the Apple one's actually

452
00:27:04,640 --> 00:27:06,880
pretty secure. 
The other ones have problems. 

453
00:27:06,880 --> 00:27:11,160
So with SMS codes, the problem 
is that someone can impersonate 

454
00:27:11,160 --> 00:27:14,400
you whenever they call your cell
phone provider and cell phone 

455
00:27:14,400 --> 00:27:16,840
provider doesn't always have a 
great way of knowing who they're

456
00:27:16,840 --> 00:27:19,960
talking to on the phone. 
So that person can activate a 

457
00:27:19,960 --> 00:27:22,560
different SIM card and start 
intercepting all of your SMS 

458
00:27:22,560 --> 00:27:24,720
messages. 
I learned it. 

459
00:27:25,360 --> 00:27:30,600
Happened to one of my old 
bosses, he got like a bunch of 

460
00:27:30,600 --> 00:27:34,640
crypto wallets hacked because 
yeah someone duplicated his SIM 

461
00:27:34,640 --> 00:27:40,160
card and mobile networks don't 
know a duplicate exists for like

462
00:27:40,480 --> 00:27:44,760
quite a few hours so they can 
just hammer all your accounts 

463
00:27:44,760 --> 00:27:48,520
with with everything. 
Yeah. 

464
00:27:48,520 --> 00:27:51,480
And, and getting out of that 
once it happens, like recovering

465
00:27:51,480 --> 00:27:54,240
from that is it's kind of like 
identity theft, right? 

466
00:27:54,240 --> 00:27:57,440
Because like, there's such a 
mess, you have to, it can take 

467
00:27:57,440 --> 00:27:59,680
weeks or months. 
Oh yeah, it's a nightmare. 

468
00:27:59,680 --> 00:28:01,680
At least you know you. 
Definitely want to use 

469
00:28:02,920 --> 00:28:07,560
authentication apps it like 
either like Google or like I I'm

470
00:28:07,560 --> 00:28:09,600
a fan of 1 password anything 
like. 

471
00:28:09,600 --> 00:28:15,240
That so those work really well. 
There's they're still not 

472
00:28:15,240 --> 00:28:18,600
foolproof or, you know, they 
can, there's still a compromises

473
00:28:18,600 --> 00:28:21,520
there. 
So, you know, an e-mail can be 

474
00:28:21,520 --> 00:28:24,280
compromised. 
I think that's going to be clear

475
00:28:24,280 --> 00:28:26,400
to anyone who listens to this. 
Like, yeah, someone can take 

476
00:28:26,400 --> 00:28:28,800
over your e-mail account. 
If it's not secure, they can 

477
00:28:28,800 --> 00:28:30,400
start intercepting your security
codes there. 

478
00:28:30,960 --> 00:28:33,640
The I think 1 surprising thing 
is that with one time password 

479
00:28:33,640 --> 00:28:39,480
codes, I think it's actually 
been demonstrated out in the 

480
00:28:39,480 --> 00:28:44,040
real world that it's not just a 
theoretical vulnerability, but 

481
00:28:44,920 --> 00:28:48,200
you get a one time password code
for let's say google.com. 

482
00:28:48,760 --> 00:28:53,000
And you go to something that's 
like Google, but has an extra O 

483
00:28:53,000 --> 00:28:55,840
in the middle. 
And it looks like Google and you

484
00:28:55,840 --> 00:28:59,640
type in your validation code 
after entering your password 

485
00:28:59,640 --> 00:29:01,640
because they sent you an e-mail 
that looked legit. 

486
00:29:02,280 --> 00:29:04,760
And so you click the link, then 
you entered all this 

487
00:29:04,760 --> 00:29:08,240
information, you entered the 110
password code and now they have 

488
00:29:08,240 --> 00:29:11,840
access to your account. 
So that's that's the 

489
00:29:11,840 --> 00:29:15,680
vulnerability there is like. 
Whoever gets that code has full 

490
00:29:15,680 --> 00:29:18,240
access, essentially. 
So, right, because they're 

491
00:29:18,320 --> 00:29:20,920
basically kind of like men in in
the middle, if I remember how 

492
00:29:20,920 --> 00:29:23,720
this works. 
So they're another man in the 

493
00:29:23,720 --> 00:29:25,920
middle attack where they're kind
of like passing this information

494
00:29:26,320 --> 00:29:27,680
to Google and getting a 
response. 

495
00:29:27,920 --> 00:29:30,640
Once they have that that 
session, then they have access 

496
00:29:30,640 --> 00:29:32,600
to your account. 
They can change your password. 

497
00:29:33,480 --> 00:29:35,480
Yeah, I. 
Feel like that would be more I I

498
00:29:35,720 --> 00:29:38,920
don't know though we we should 
have Michael Lubis on but that 

499
00:29:38,920 --> 00:29:43,320
would be more like a fishing 
exposition expedition, right? 

500
00:29:43,320 --> 00:29:46,360
Because man in the middle is 
usually when someone is on the 

501
00:29:46,360 --> 00:29:52,800
same network as you and they can
intercept your connection they 

502
00:29:52,920 --> 00:29:53,840
like they. 
Can alter. 

503
00:29:53,840 --> 00:29:57,520
Your packets and your 
Http://requests and things but. 

504
00:29:58,800 --> 00:30:01,320
I think the man can be in the 
middle of a lot of places. 

505
00:30:01,320 --> 00:30:05,040
So there may be like flavors of 
man in the metal, right, Right. 

506
00:30:05,080 --> 00:30:10,080
Yeah. 
So yeah, I think there's it's 

507
00:30:10,080 --> 00:30:13,280
just the you know, the the world
is a dangerous place. 

508
00:30:13,280 --> 00:30:15,760
So it's really hard to to get 
these things right. 

509
00:30:16,280 --> 00:30:19,760
And I think that's just a kind 
of bring us back to pass keys. 

510
00:30:20,440 --> 00:30:23,960
That does seem to be the 
beautiful thing about pass keys 

511
00:30:24,040 --> 00:30:28,520
as like the customer like user 
facing technology is that it's 

512
00:30:28,520 --> 00:30:32,680
one of those rare security 
improvements that actually I 

513
00:30:32,680 --> 00:30:36,760
think is actually going to be 
easier for end users at the end 

514
00:30:36,760 --> 00:30:40,000
of the day. 
Like once it's, you know, widely

515
00:30:40,000 --> 00:30:41,960
supported, it's already 
supported by all the operating 

516
00:30:41,960 --> 00:30:44,880
systems and browsers, I think. 
But once like. 

517
00:30:45,800 --> 00:30:49,560
It basically ties you're off to 
your specific devices as well, 

518
00:30:49,560 --> 00:30:51,440
right? 
So it adds that extra security 

519
00:30:51,440 --> 00:30:53,880
versus just having a code 
emailed to you, right? 

520
00:30:54,720 --> 00:30:57,120
Right. 
So here's some benefits to the 

521
00:30:57,120 --> 00:30:59,880
end user. 
They never have to think about 

522
00:30:59,880 --> 00:31:03,640
their password again. 
If, if passkey is your primary 

523
00:31:03,640 --> 00:31:08,240
authentication method. 
So if, if I am running 

524
00:31:08,240 --> 00:31:13,000
example.com and we only support 
passkey authentication, that for

525
00:31:13,000 --> 00:31:17,000
now, that might mean that we're,
we're not like appealing or like

526
00:31:17,000 --> 00:31:19,240
accessible to some users because
they don't, they don't 

527
00:31:20,720 --> 00:31:22,560
understand pass keys or get it 
or whatever. 

528
00:31:23,440 --> 00:31:26,080
So maybe this is the thing that 
you would just do for a certain 

529
00:31:26,080 --> 00:31:28,760
audience. 
But I think once it's ubiquitous

530
00:31:29,000 --> 00:31:32,800
enough, the benefit is that your
users never have to come up with

531
00:31:32,800 --> 00:31:34,520
the password or change the 
password. 

532
00:31:36,760 --> 00:31:40,680
They don't have to worry about 
whether the password meets a 

533
00:31:40,680 --> 00:31:43,080
certain requirements, has 
certain characters because those

534
00:31:43,080 --> 00:31:44,680
requirements are different for 
every single site. 

535
00:31:46,800 --> 00:31:49,600
Sometimes the requirements that 
are on the screen like you meet 

536
00:31:49,600 --> 00:31:51,960
those requirements and the site 
which checks your password 

537
00:31:51,960 --> 00:31:54,080
anyway you're like why? 
Sorry. 

538
00:31:54,600 --> 00:31:57,680
Guys, I suck at Rag X. 
Yeah. 

539
00:31:58,920 --> 00:32:02,360
So those kind of problems, those
kind of like user facing 

540
00:32:02,360 --> 00:32:07,680
challenges go away. 
There is one one trade off with 

541
00:32:07,680 --> 00:32:10,800
pass keys which is mitigated, 
but you know, something worth 

542
00:32:10,800 --> 00:32:13,960
considering. 
So yes, whenever you register a 

543
00:32:13,960 --> 00:32:16,800
pass key, it is registered to 
the device. 

544
00:32:16,880 --> 00:32:18,960
So the laptop or phone that you 
created it on. 

545
00:32:20,760 --> 00:32:24,840
Now, practically speaking, 
everyone's going to have a cloud

546
00:32:24,840 --> 00:32:26,960
account backing up their 
credentials. 

547
00:32:26,960 --> 00:32:29,560
So if you're on a Mac or iPhone,
you're going to be using 

548
00:32:29,560 --> 00:32:36,600
probably the the new passwords 
app or iCloud Keychain or 1 

549
00:32:36,600 --> 00:32:42,760
password or I think keepasses a 
few other password managers out 

550
00:32:42,760 --> 00:32:44,720
there. 
So if you're doing that and your

551
00:32:44,720 --> 00:32:48,520
credentials are synced to the 
cloud, then you can actually, 

552
00:32:48,520 --> 00:32:52,440
you know, sign into that cloud 
account from any device and then

553
00:32:52,440 --> 00:32:59,880
authenticate to all of your 
passkey accounts using that like

554
00:32:59,880 --> 00:33:03,280
your your cloud account kind of 
acts as the device in that in 

555
00:33:03,280 --> 00:33:07,120
that scenario. 
And then you're relying on Apple

556
00:33:07,120 --> 00:33:10,560
or whatever, whoever is in 
control of your cloud devices. 

557
00:33:12,120 --> 00:33:13,840
Right. 
So isn't, isn't. 

558
00:33:14,120 --> 00:33:21,080
There a vulnerability in the in 
the the silicon in the M series,

559
00:33:22,440 --> 00:33:27,680
something with maybe it's not 
pass key, I don't know, I'm just

560
00:33:28,000 --> 00:33:30,600
rambling. 
Well, the short answer is yes, 

561
00:33:30,600 --> 00:33:33,520
there's always vulnerabilities, 
nothing's ever bulletproof. 

562
00:33:33,520 --> 00:33:37,960
So, and what we're describing 
here is just like getting into 

563
00:33:37,960 --> 00:33:40,080
the account. 
There's still, as a developer, 

564
00:33:40,080 --> 00:33:44,080
you still have a bunch of work 
and thought about, you know, how

565
00:33:44,080 --> 00:33:46,200
are you going to securely store 
all the other information? 

566
00:33:46,200 --> 00:33:51,080
Because you've got names, 
addresses, you know, potentially

567
00:33:51,080 --> 00:33:54,000
credit card numbers and stuff 
that you hopefully you're 

568
00:33:54,320 --> 00:33:57,640
storing as little as possible. 
But whatever you do store needs 

569
00:33:57,640 --> 00:34:01,120
to be secure in some way so 
that, you know, pass keys are 

570
00:34:01,120 --> 00:34:03,680
just like the opening the box to
the account. 

571
00:34:05,160 --> 00:34:07,240
As an engineer, you know, you 
got to think about disk 

572
00:34:07,240 --> 00:34:10,840
encryption, HTPSTLS, all this 
other stuff as well. 

573
00:34:10,920 --> 00:34:15,239
But this is like a little slice 
of the the pie that that we can 

574
00:34:15,239 --> 00:34:18,239
actually work. 
You probably authenticate almost

575
00:34:18,239 --> 00:34:20,960
anyone to your system right? 
So you have to make sure your 

576
00:34:20,960 --> 00:34:23,239
data doesn't cross contaminate 
either. 

577
00:34:23,239 --> 00:34:25,960
That's another like especially 
with a lot of multi tenancy 

578
00:34:25,960 --> 00:34:28,280
systems right? 
You have to be very careful 

579
00:34:28,360 --> 00:34:30,800
about sharing the wrong 
information. 

580
00:34:31,719 --> 00:34:35,080
Right, we could. 
How many tangents do you want to

581
00:34:35,080 --> 00:34:36,280
go on? 
We just go on all. 

582
00:34:36,280 --> 00:34:41,320
These things, yes, just the the 
show of well, what's what's nice

583
00:34:41,320 --> 00:34:44,000
with pass keys. 
So I think for the average user,

584
00:34:44,000 --> 00:34:46,280
like the average person I know, 
I don't know how many 

585
00:34:46,280 --> 00:34:50,400
conversations I've had where 
like password hygiene is a is a 

586
00:34:50,400 --> 00:34:52,320
favorite word of mine. 
I like to use that. 

587
00:34:53,000 --> 00:34:56,239
But how bad? 
Like if you talk to your parents

588
00:34:56,239 --> 00:34:58,680
or like most of your friends 
that aren't computer savvy 

589
00:34:58,680 --> 00:35:03,880
people, they use readable the 
same password on all their 

590
00:35:03,880 --> 00:35:06,640
things, right? 
They have their banking password

591
00:35:06,640 --> 00:35:09,560
that they use on all their 
banking systems and then they 

592
00:35:09,600 --> 00:35:11,120
have. 
Their hosted note on their on 

593
00:35:11,120 --> 00:35:14,400
their laptop so anyone at the 
airport can see it right? 

594
00:35:14,440 --> 00:35:16,520
It's like I wanted to access 
your account. 

595
00:35:16,520 --> 00:35:18,960
You look over sometimes and 
someones got a laptop open, 

596
00:35:19,320 --> 00:35:21,720
they're doing stuff and you see 
their passwords on a poster and 

597
00:35:21,720 --> 00:35:24,240
you're like. 
I like everyone I talked to, I 

598
00:35:24,240 --> 00:35:26,760
was like, please just use a 
password manager please. 

599
00:35:27,880 --> 00:35:30,000
But like it like you were 
saying, like passkey kind of 

600
00:35:30,000 --> 00:35:32,040
solves that. 
You don't have to even think 

601
00:35:32,040 --> 00:35:35,880
about it anymore. 
I guess like my biggest question

602
00:35:35,880 --> 00:35:39,520
with it, it where do 
vulnerabilities lie for like 

603
00:35:39,560 --> 00:35:41,920
adding a new device? 
How does that normally work? 

604
00:35:41,920 --> 00:35:45,000
Like let's say I have an Android
phone and an Apple phone. 

605
00:35:45,000 --> 00:35:49,560
So like different ecosystems, 
they can't share the device key 

606
00:35:49,560 --> 00:35:52,080
between, you know, other 
devices. 

607
00:35:52,360 --> 00:35:54,480
How does like adding a new 
device work? 

608
00:35:54,480 --> 00:35:57,360
Does it have to go through an 
already authenticated device? 

609
00:35:59,360 --> 00:36:01,880
Yeah. 
So there's a few kind of angles 

610
00:36:01,880 --> 00:36:06,440
on this. 
So let's say you you registered 

611
00:36:06,800 --> 00:36:11,280
forexample.com on your MacBook. 
So you're, if you're using 

612
00:36:11,280 --> 00:36:15,760
iCloud Keychain, then your pass 
key is in the Apple ecosystem. 

613
00:36:16,400 --> 00:36:19,080
When you're on your Android 
phone, assuming there's, I don't

614
00:36:19,080 --> 00:36:22,600
know if the, if they released a 
password like an Apple passwords

615
00:36:22,720 --> 00:36:24,600
app for Android. 
Let's assume no for the moment. 

616
00:36:25,640 --> 00:36:28,920
There's a few ways to 
authenticate devices outside of 

617
00:36:28,920 --> 00:36:31,120
that ecosystem. 
So whenever you go to 

618
00:36:31,120 --> 00:36:34,560
example.com and it asks you to 
register or to authenticate, 

619
00:36:35,520 --> 00:36:39,600
let's say you type in your your 
e-mail address and you hit 

620
00:36:39,600 --> 00:36:44,600
authenticate, it's going to 
prompt you and say I don't see a

621
00:36:44,600 --> 00:36:49,680
passkey registered for the site.
Scan this QR code from your 

622
00:36:49,680 --> 00:36:51,880
other device. 
So you could pull over your 

623
00:36:51,880 --> 00:36:55,440
laptop, your iPhone, whatever, 
scan AQR code and it will ask, 

624
00:36:55,440 --> 00:36:59,160
do you want to authenticate to 
this site that's making this 

625
00:36:59,160 --> 00:37:01,840
request? 
If you hit yes, then that site 

626
00:37:01,840 --> 00:37:03,880
will. 
It's kind of magical. 

627
00:37:04,040 --> 00:37:05,560
It's bizarre that actually works
like this. 

628
00:37:05,560 --> 00:37:11,040
But once you approve on your 
authenticated device then that 

629
00:37:11,560 --> 00:37:14,600
other device would you know be 
authenticated as well. 

630
00:37:14,600 --> 00:37:20,080
Magic Black Box. 
Right now, that's just signing 

631
00:37:20,080 --> 00:37:22,400
into an account. 
Now if you wanted to actually 

632
00:37:22,400 --> 00:37:26,080
add a separate credential the 
way this would work, and this is

633
00:37:26,080 --> 00:37:29,280
something I want to build into. 
So that wasn't assigned like a 

634
00:37:29,280 --> 00:37:31,360
key to that device just doing 
that. 

635
00:37:31,360 --> 00:37:34,320
That's like temporary. 
This could be a public computer.

636
00:37:34,320 --> 00:37:35,880
Think it was like a token, 
right? 

637
00:37:35,880 --> 00:37:38,560
Like you're you're getting a 
token, you're establishing a 

638
00:37:38,560 --> 00:37:42,880
session so you can operate on 
that device, but it's not like 

639
00:37:42,880 --> 00:37:45,280
you would have to do that again 
if you went back to the site 

640
00:37:45,280 --> 00:37:46,520
later on. 
OK, got. 

641
00:37:47,080 --> 00:37:51,880
You after the session ended. 
So now if you do want to create 

642
00:37:51,880 --> 00:37:57,200
maybe a backup key or you want 
to register another pass key and

643
00:37:57,200 --> 00:38:02,640
another password manager or like
say you're on Apple and you also

644
00:38:02,640 --> 00:38:06,960
have an Android device. 
Then something you would do is 

645
00:38:07,200 --> 00:38:11,000
like example.com would would 
have like from your user 

646
00:38:11,000 --> 00:38:13,920
profile, you would say like once
you sign into your account, you 

647
00:38:13,920 --> 00:38:17,680
might have a section on your 
profile that, you know, list the

648
00:38:17,680 --> 00:38:19,560
first key that was created 
whenever you created your 

649
00:38:19,560 --> 00:38:22,240
account. 
And then there might be a button

650
00:38:22,240 --> 00:38:26,280
that says add a credential or 
add a passkey or whatever, 

651
00:38:26,400 --> 00:38:28,640
whatever you want to use, you 
know, to describe that. 

652
00:38:29,080 --> 00:38:32,640
And then once you click on that,
then you would go through the 

653
00:38:32,640 --> 00:38:36,440
process of registering a second 
credential for the same user 

654
00:38:36,440 --> 00:38:40,160
account on that service. 
OK, nice. 

655
00:38:41,440 --> 00:38:43,800
Yeah, I like that. 
I feel like. 

656
00:38:43,840 --> 00:38:48,000
I like, would you? 
Recommend only doing 

657
00:38:48,000 --> 00:38:52,160
passwordless off on on platforms
that you build? 

658
00:38:52,160 --> 00:38:55,320
Or do you always also offer 
e-mail and password? 

659
00:38:59,160 --> 00:39:03,720
It I think it's really up to the
your audience and your user 

660
00:39:03,720 --> 00:39:06,200
base. 
So if you're building something 

661
00:39:06,200 --> 00:39:12,080
very broad for like a social 
platform, maybe you just 

662
00:39:12,520 --> 00:39:17,360
practically can't require pass 
keys yet because that might just

663
00:39:17,360 --> 00:39:19,520
create a bunch of customer 
support issues. 

664
00:39:20,360 --> 00:39:23,080
People like, well, I where do I 
put my password? 

665
00:39:23,480 --> 00:39:25,960
Like you have to like be able to
like message on the screen, like

666
00:39:25,960 --> 00:39:28,320
why is there new password? 
So that's something that the 

667
00:39:28,520 --> 00:39:31,840
that the web auth and components
generator does it, you know, on 

668
00:39:31,840 --> 00:39:36,840
this on this live view has a 
little details element that says

669
00:39:36,880 --> 00:39:39,040
where's my password? 
And it tries to explain in a 

670
00:39:39,040 --> 00:39:43,800
couple of sentences. 
This site uses pass keys for 

671
00:39:43,800 --> 00:39:48,720
authentication and why it does 
that and links to read more. 

672
00:39:49,280 --> 00:39:53,080
But if you're building something
that's like just for developers 

673
00:39:53,840 --> 00:39:57,880
or maybe it's a bank or 
something where like, you know, 

674
00:39:58,280 --> 00:40:02,440
your security environment is 
just like this, things are more 

675
00:40:02,440 --> 00:40:04,920
critical than maybe. 
Then maybe you do have a a 

676
00:40:05,600 --> 00:40:09,800
better case for just supporting 
pass keys or strongly nudging 

677
00:40:09,800 --> 00:40:14,280
the users towards pass keys. 
I think if you need an escape 

678
00:40:14,280 --> 00:40:20,120
hatch so that people can add can
sign up with passwords, you're 

679
00:40:20,120 --> 00:40:23,480
making trade-offs at that point.
Because then as, as soon as you 

680
00:40:23,760 --> 00:40:28,280
support passwords, then you're, 
you're back to potentially being

681
00:40:28,280 --> 00:40:32,000
compromised or having people who
are compromised allowing access 

682
00:40:32,000 --> 00:40:35,000
to their accounts because 
there's the forget password. 

683
00:40:35,000 --> 00:40:39,160
It's really hard to get password
resets right, You know, if 

684
00:40:39,160 --> 00:40:41,800
you're not using this something 
that's battle tested. 

685
00:40:43,680 --> 00:40:50,000
So yeah, it's, it's not quite, 
it's not as black and white as I

686
00:40:50,000 --> 00:40:53,680
would like it to be. 
Maybe in a few years it will be 

687
00:40:53,680 --> 00:40:56,320
just everyone's using pass keys 
and everyone gets it. 

688
00:40:56,320 --> 00:41:02,080
But I think just progress tends 
to be kind of slow when it comes

689
00:41:02,080 --> 00:41:04,040
to that. 
So we'll, we'll see. 

690
00:41:04,400 --> 00:41:08,720
Yeah, well, I mean like I like 
my passwords, but I see the 

691
00:41:08,720 --> 00:41:11,480
benefit to pass keys for sure. 
Do you enjoy typing your 

692
00:41:11,480 --> 00:41:14,960
passwords? 
I prefer, well, you know, you 

693
00:41:14,960 --> 00:41:17,240
have the one password plug 
insurance for everything. 

694
00:41:17,240 --> 00:41:19,880
So I just like, you know, auto 
fills usually. 

695
00:41:20,880 --> 00:41:25,840
But I hate using like Google and
Facebook off, like I hate using 

696
00:41:25,920 --> 00:41:27,600
previously created accounts for 
off. 

697
00:41:27,600 --> 00:41:32,720
That annoys me because then you 
forget which one you used. 

698
00:41:32,720 --> 00:41:35,800
Like I don't know how many Gmail
accounts I have and I'm like 

699
00:41:35,880 --> 00:41:39,120
shoot which one did I actually 
auth in with? 

700
00:41:40,520 --> 00:41:43,640
Right, Yeah, I, I see that 
sometimes I'm, you know, you owe

701
00:41:43,640 --> 00:41:45,720
off. 
I have to use owe off a lot for 

702
00:41:45,720 --> 00:41:49,120
work. 
And sometimes I'm scrolling 

703
00:41:49,120 --> 00:41:52,280
through a long list of Gmail 
accounts or like I've the same 

704
00:41:52,280 --> 00:41:55,600
account that had different 
passwords over time and somehow 

705
00:41:55,600 --> 00:41:59,120
that wind up with three separate
entries in my password manager. 

706
00:41:59,840 --> 00:42:02,720
So like, yeah, I've got some 
hygiene and some clean up. 

707
00:42:02,720 --> 00:42:07,240
I could do it on that. 
But but you know, there are 

708
00:42:07,240 --> 00:42:11,920
people who have multiple 
accounts for for shady reasons 

709
00:42:11,920 --> 00:42:16,360
or for totally valid, you know, 
personal or business. 

710
00:42:16,360 --> 00:42:18,520
Reasons really shady. 
I just have a lot. 

711
00:42:18,520 --> 00:42:20,880
Of. 
Hacker one at known. 

712
00:42:22,400 --> 00:42:24,760
Black Hat Jacob at Gmail. 
Exactly. 

713
00:42:26,240 --> 00:42:29,200
Just too many. 
I start too many companies. 

714
00:42:29,200 --> 00:42:31,440
I think that's the problem. 
Yeah. 

715
00:42:33,720 --> 00:42:38,320
Well, and it's just this might 
be a tangent, like I just 

716
00:42:38,320 --> 00:42:41,520
occurred to me that one other 
type of password less 

717
00:42:41,520 --> 00:42:43,840
authentication. 
So another alternative to 

718
00:42:43,840 --> 00:42:47,800
passwords other than passkeys is
magic links. 

719
00:42:48,640 --> 00:42:50,400
So this is something you get 
with Slack. 

720
00:42:50,600 --> 00:42:52,800
There are actually some really 
nice packages in the Elixir 

721
00:42:52,800 --> 00:42:57,640
ecosystem for this, where maybe 
I don't want to support 

722
00:42:57,640 --> 00:43:03,280
passwords on example.com. 
I'm not quite totally sold on 

723
00:43:03,280 --> 00:43:07,840
pass keys yet, but in the 
meantime I want to be able to 

724
00:43:08,040 --> 00:43:13,200
make sign in easy for my users. 
So one option is this magic link

725
00:43:13,720 --> 00:43:16,600
type of thing where someone 
enters their e-mail address 

726
00:43:16,640 --> 00:43:19,040
whenever they're registering or 
coming back to the site. 

727
00:43:19,640 --> 00:43:22,760
And then in order to validate 
the e-mail and also to give them

728
00:43:22,760 --> 00:43:26,760
a token, you send an e-mail to 
that to that address. 

729
00:43:27,280 --> 00:43:29,920
And then they click the link or 
copy and paste it into the 

730
00:43:29,920 --> 00:43:32,320
browser. 
And then you know, your system 

731
00:43:32,320 --> 00:43:35,120
validates the token. 
And unless they man, if they're,

732
00:43:35,880 --> 00:43:39,760
you know, if everything's. 
And for anyone out there that's 

733
00:43:39,760 --> 00:43:44,240
developing or has developed like
ATV app, if you don't use like 

734
00:43:44,240 --> 00:43:45,880
magic links or you know like 
the. 

735
00:43:45,880 --> 00:43:50,400
QR code. 
Dude, no one's no one wants like

736
00:43:50,440 --> 00:43:53,440
I will. 
I won't use an app on my TV if I

737
00:43:53,440 --> 00:43:55,520
have to put a password in 
because it's such a pain in the 

738
00:43:55,520 --> 00:43:57,400
butt. 
I will say this. 

739
00:43:57,400 --> 00:44:00,840
So this is something I wish I'd 
learned sooner. 

740
00:44:01,560 --> 00:44:06,080
When you have an Apple TV 
nowadays, so you have an iPhone 

741
00:44:06,240 --> 00:44:09,920
now I have an Apple TVI used to 
use all the apps just natively 

742
00:44:09,920 --> 00:44:13,960
on my TV. 
The magical thing about Apple TV

743
00:44:13,960 --> 00:44:17,880
is that anytime you're on a text
box, it will pop up on your 

744
00:44:17,880 --> 00:44:19,640
phone and say, would you like to
use your keyboard? 

745
00:44:20,080 --> 00:44:23,120
Oh, that's nice. 
So or you can use your, you 

746
00:44:23,120 --> 00:44:24,920
know, the microphone button if 
you're just doing a search, but 

747
00:44:24,920 --> 00:44:28,600
if you're entering a password or
something that you need to 

748
00:44:28,720 --> 00:44:32,280
actually do need to type in, you
can just switch to your phone, 

749
00:44:32,280 --> 00:44:35,400
type it in and it will populate 
that for the. 

750
00:44:35,520 --> 00:44:39,000
TV Magic links are so easy to 
implement on that stuff, 

751
00:44:39,000 --> 00:44:43,080
especially if you're writing a 
an app or a Apple TV app. 

752
00:44:44,440 --> 00:44:47,120
You know what? 
I'm at a prototype of a thing. 

753
00:44:48,760 --> 00:44:51,360
So I was at a venue and we 
wanted to make it easy to 

754
00:44:51,360 --> 00:44:53,320
connect to this app on the local
network. 

755
00:44:53,920 --> 00:44:56,840
And instead of showing the 
Wi-Fi, you know, name and 

756
00:44:56,840 --> 00:44:59,440
password, I just generated a QR 
code. 

757
00:44:59,440 --> 00:45:02,960
So you would scan the QR code, 
it would on your phone, it would

758
00:45:02,960 --> 00:45:04,760
ask do you want to connect to 
this Wi-Fi network? 

759
00:45:04,960 --> 00:45:07,080
And if you did that, it would, 
you'd be on the network. 

760
00:45:07,080 --> 00:45:09,760
Then you could go to my my local
URL. 

761
00:45:09,760 --> 00:45:11,600
And that was really, it was 
really nice. 

762
00:45:11,960 --> 00:45:13,920
That's awesome. 
That was a package in the Elixir

763
00:45:13,920 --> 00:45:17,080
ecosystem, so. 
Awesome, so you could just you 

764
00:45:17,080 --> 00:45:20,000
just had like a local host app 
running for the event? 

765
00:45:20,400 --> 00:45:22,240
Yeah. 
So you go on your Mac and you 

766
00:45:22,240 --> 00:45:25,200
say, what's the local device 
name you want to use? 

767
00:45:25,720 --> 00:45:33,000
And so it would be like Jacob's,
Jacob's Party dot Local. 

768
00:45:33,560 --> 00:45:35,920
Yeah. 
And then anyone who's on your 

769
00:45:35,920 --> 00:45:39,960
Wi-Fi or local network can 
access Jacob's Party dot local. 

770
00:45:40,320 --> 00:45:42,600
I do have that. 
So if you guys are ever on my 

771
00:45:42,600 --> 00:45:45,880
Wi-Fi, it's a party. 
Yeah. 

772
00:45:46,480 --> 00:45:50,880
No, that's a good idea. 
I love that it's definitely it 

773
00:45:50,880 --> 00:45:54,680
beats entering a password. 
I think I'd be more annoyed with

774
00:45:54,680 --> 00:45:57,400
e-mail and password off if I 
didn't have one password 

775
00:45:57,480 --> 00:46:01,560
automatically entering my 
passwords 'cause I hate typing 

776
00:46:01,560 --> 00:46:04,000
my password. 
Like I'm always annoyed when my 

777
00:46:04,000 --> 00:46:07,840
touch ID has like when I have to
use my password 'cause it's been

778
00:46:07,840 --> 00:46:11,080
30 days or whatever. 
Yeah, that's all. 

779
00:46:11,080 --> 00:46:15,240
Yeah, my I regret my password 
choice 'cause I use a pass 

780
00:46:15,240 --> 00:46:19,360
phrase for a couple devices and 
some of the letters are just in 

781
00:46:19,360 --> 00:46:22,920
the in the right arrangement 
where I always typo so it takes 

782
00:46:22,920 --> 00:46:24,800
ME3 attempts to get into that 
device. 

783
00:46:25,480 --> 00:46:27,720
So I need to go back and maybe 
update that. 

784
00:46:27,720 --> 00:46:30,200
But now I've got muscle memory. 
My what? 

785
00:46:31,120 --> 00:46:36,160
My main password for entering 
for my password manager I always

786
00:46:36,240 --> 00:46:38,560
it's. 
It's 3 typos and then I get in 

787
00:46:38,560 --> 00:46:40,080
SO. 
I thought you were about to 

788
00:46:40,080 --> 00:46:41,120
announce it. 
I was like. 

789
00:46:41,320 --> 00:46:43,040
Oh yeah. 
What's that password? 

790
00:46:46,080 --> 00:46:47,440
Jacob's party. 
Jacob. 

791
00:46:47,720 --> 00:46:54,280
'S Party 123. 
I will say for one password they

792
00:46:54,280 --> 00:46:59,320
added passkey support last year.
So whenever I go to a a site 

793
00:46:59,320 --> 00:47:03,120
that I've registered a passkey, 
as soon as I'm on the 

794
00:47:03,120 --> 00:47:06,360
authentication page, if they've 
if the site has set this up 

795
00:47:06,360 --> 00:47:10,120
right then automatically pass 
one password will prompt up and 

796
00:47:10,120 --> 00:47:11,560
say do you want to sign in with 
your passkey? 

797
00:47:12,000 --> 00:47:15,240
I don't have to type anything, I
just hit enter or click the the 

798
00:47:15,240 --> 00:47:20,040
nice purple button and I'm. 
Not like I always see it pop up,

799
00:47:20,040 --> 00:47:22,400
but I haven't been brave enough 
to start using it. 

800
00:47:23,520 --> 00:47:26,320
I would say maybe try it on 
GitHub first because you know, 

801
00:47:26,320 --> 00:47:29,040
GitHub has all the flavors of 
authentication you could want. 

802
00:47:29,240 --> 00:47:32,080
You can try it there and then if
you don't like it or or 

803
00:47:32,080 --> 00:47:36,920
whatever, like you make changes.
But yeah, that's like that's 

804
00:47:36,920 --> 00:47:38,960
like the first one that comes to
mind is because I'm in GitHub 

805
00:47:38,960 --> 00:47:42,280
all the time and anytime I need 
to re authenticate, it's just a 

806
00:47:42,560 --> 00:47:44,320
simple button press. 
Yeah, that is nice. 

807
00:47:45,280 --> 00:47:46,760
All right, I'll try it. 
You talked. 

808
00:47:46,760 --> 00:47:49,560
To me that is something that so 
the web auth and components 

809
00:47:49,560 --> 00:47:54,960
package is a set of components 
in a generator, so it will do 

810
00:47:54,960 --> 00:47:56,840
the same thing if you added this
to your site. 

811
00:47:57,680 --> 00:48:00,800
Whenever a person goes to the 
registry registration or 

812
00:48:00,800 --> 00:48:04,520
authentication live view, it 
will their password manager may 

813
00:48:04,520 --> 00:48:06,680
prompt them automatically. 
Do you want to sign in with this

814
00:48:06,680 --> 00:48:12,400
existing pass key? 
Also, I've got a web auth and 

815
00:48:12,400 --> 00:48:14,520
components demo that will show 
you like. 

816
00:48:14,520 --> 00:48:17,800
Here's what the example code 
looks like if you were to run 

817
00:48:17,800 --> 00:48:21,960
this in a fresh Phoenix app. 
I'm curious how how does it 

818
00:48:21,960 --> 00:48:25,240
integrate with an existing like 
Let's say I have the phoenix 

819
00:48:25,240 --> 00:48:29,560
auth in my app already and I 
want to add yours. 

820
00:48:29,640 --> 00:48:34,280
Is it going to create new tables
or does it use my existing user 

821
00:48:34,280 --> 00:48:35,360
table? 
How does it work? 

822
00:48:36,200 --> 00:48:40,080
You I think practically you just
can't use the installer. 

823
00:48:40,440 --> 00:48:42,320
You would have to manually add 
support. 

824
00:48:42,320 --> 00:48:44,840
So you would you could use the 
components that I built. 

825
00:48:44,840 --> 00:48:48,680
Integration to my user table. 
You would probably add a 

826
00:48:48,680 --> 00:48:52,280
separate table, You would add 
like a user keys table, whatever

827
00:48:52,280 --> 00:48:54,120
you want to call it. 
So like you've already got 

828
00:48:54,120 --> 00:48:58,000
users, you've already got user 
tokens which has like session 

829
00:48:58,000 --> 00:49:01,200
tokens and stuff. 
So you would, you would need to 

830
00:49:01,200 --> 00:49:03,880
like add web all think 
components to your application, 

831
00:49:05,280 --> 00:49:06,360
you know, take a look at the 
docs. 

832
00:49:06,360 --> 00:49:09,920
I tried to make everything, you 
know, developer friendly at 

833
00:49:09,920 --> 00:49:12,520
least. 
And so the things you would need

834
00:49:12,520 --> 00:49:16,400
to do is you would maybe set up 
these components in your live 

835
00:49:16,400 --> 00:49:18,560
views. 
And then there's a handful of 

836
00:49:18,560 --> 00:49:21,400
messages that go back and forth 
between the components. 

837
00:49:21,720 --> 00:49:24,160
There's a whole dance and 
ceremony that happens whenever 

838
00:49:24,160 --> 00:49:25,640
you're registering or 
authenticating. 

839
00:49:26,240 --> 00:49:29,600
So the components handles many 
of the messages as they can that

840
00:49:29,600 --> 00:49:33,000
are going back and forth between
the browser and the server. 

841
00:49:33,360 --> 00:49:36,760
And then at the point that like 
we've registered a user or we 

842
00:49:36,760 --> 00:49:39,920
need to validate a user, it 
sends a message to the parent 

843
00:49:39,920 --> 00:49:42,360
live view. 
So you would have a handle info 

844
00:49:42,360 --> 00:49:45,360
in your live view that looks for
these specific messages. 

845
00:49:45,680 --> 00:49:50,200
And then you would go into your 
database and and insert or fetch

846
00:49:50,200 --> 00:49:52,600
users based on the the key ID 
and that kind of thing. 

847
00:49:53,360 --> 00:49:55,480
So it would be, it can be done 
it. 

848
00:49:55,480 --> 00:49:57,280
I don't think it would be the 
most difficult thing you would 

849
00:49:57,280 --> 00:50:05,080
do in a year for for features, 
but you know, it's probably not 

850
00:50:05,080 --> 00:50:07,640
like a 15 minute process like if
you were just running the 

851
00:50:07,880 --> 00:50:11,720
installer. 
Yeah, yeah. 

852
00:50:11,960 --> 00:50:14,840
I mean I'll probably do it. 
It just will be after I launch 

853
00:50:14,840 --> 00:50:18,000
it. 
Yeah, like open a branch, if 

854
00:50:18,000 --> 00:50:20,360
whatever, whatever goes wrong, 
you just delete, delete the 

855
00:50:20,360 --> 00:50:21,280
branch, right? 
So yeah. 

856
00:50:21,520 --> 00:50:23,280
Exactly. 
Unless you're going straight to 

857
00:50:23,280 --> 00:50:24,920
maintenance. 
Have I started where I've done 

858
00:50:24,920 --> 00:50:27,400
that a lot? 
Yeah. 

859
00:50:28,040 --> 00:50:30,080
You're like, you know, this 
isn't a feature people actually 

860
00:50:30,120 --> 00:50:32,640
need. 
We're not for all those 

861
00:50:32,640 --> 00:50:34,600
features. 
What's that? 

862
00:50:35,640 --> 00:50:37,280
You got to pour pour one out 
for. 

863
00:50:37,280 --> 00:50:39,160
Oh yeah, for. 
Sure, features in everywhere. 

864
00:50:41,080 --> 00:50:45,640
Oh sad plat platforms I've built
and features that have died. 

865
00:50:46,040 --> 00:50:50,600
There's a whole graveyard. 
Yeah, I, I've got a few. 

866
00:50:50,600 --> 00:50:54,400
I don't have like a whole family
sized graveyard yet, but you 

867
00:50:54,400 --> 00:50:56,800
know, I've got a couple notable 
tombstones. 

868
00:50:57,200 --> 00:50:59,560
Yeah. 
I'm going to resurrect one or 

869
00:50:59,560 --> 00:51:01,280
two of those eventually, so. 
Nice. 

870
00:51:01,840 --> 00:51:04,400
It's always good to bring them 
back from the dead. 

871
00:51:04,800 --> 00:51:09,560
I, I built like a fitness 
marketplace that is in in the 

872
00:51:09,560 --> 00:51:13,600
grave grave site now. 
It was a cool, it was a really 

873
00:51:13,600 --> 00:51:17,680
cool product. 
I it was basically a marketplace

874
00:51:17,680 --> 00:51:23,880
for personal trainers. 
They could upload workouts, sell

875
00:51:23,880 --> 00:51:27,120
them, and then people could buy 
them, go through like check 

876
00:51:27,120 --> 00:51:30,480
things, complete track, track 
their progress and all that, and

877
00:51:30,480 --> 00:51:35,680
then communicate with the coach.
The problem was, well, the 

878
00:51:35,680 --> 00:51:40,960
fitness space is crazy to 
there's so many fitness apps out

879
00:51:40,960 --> 00:51:46,600
there, but dealing with wannabe 
influencers was the worst part 

880
00:51:46,600 --> 00:51:47,960
of it. 
And I was like, I can't do this 

881
00:51:47,960 --> 00:51:50,840
anymore. 
I did, yeah. 

882
00:51:50,840 --> 00:51:58,040
I, I regret to say that I'm not 
actively going to the gym 

883
00:51:58,320 --> 00:52:01,560
frequently right now, but there 
were a couple years where I, I 

884
00:52:01,560 --> 00:52:03,960
was and one of them had a, a 
fitness app. 

885
00:52:05,320 --> 00:52:08,760
Those videos are crazy. 
There's 'cause they're like, 

886
00:52:08,760 --> 00:52:11,640
there was some curated content 
that obviously came from like 

887
00:52:11,640 --> 00:52:16,640
the, the gym franchise, but then
the rest of it was just like 

888
00:52:16,840 --> 00:52:19,920
anything they could find on the 
Internet that was about a 

889
00:52:19,920 --> 00:52:23,920
particular exercise. 
And the quality on those was, 

890
00:52:24,400 --> 00:52:28,480
you know, not great. 
Yeah, Yeah, it's hard because it

891
00:52:29,480 --> 00:52:33,120
one, it was like the you have 
the two sided equation, right 

892
00:52:33,120 --> 00:52:36,040
with with being a bootstrapped 
company, it's really hard to do 

893
00:52:36,040 --> 00:52:40,440
that because 1 you have to 
onboard content creators and 

894
00:52:40,440 --> 00:52:41,760
then you have. 
To the video's like the most 

895
00:52:41,760 --> 00:52:43,400
expensive thing, right Yeah and 
then you. 

896
00:52:43,440 --> 00:52:48,080
Have to onboard content 
purchasers and so it's hard. 

897
00:52:48,160 --> 00:52:51,360
It was it was a very difficult, 
it was not a wise choice. 

898
00:52:51,360 --> 00:52:55,520
I learned a lot. 
Marketplaces are one of the most

899
00:52:55,520 --> 00:52:59,960
difficult platforms to build if 
you're not VC funded. 

900
00:53:01,280 --> 00:53:04,480
Yeah, yeah, that we could Oh 
man. 

901
00:53:05,240 --> 00:53:08,440
So this is actually something 
that's just to do a little bit 

902
00:53:08,440 --> 00:53:10,800
of a shameless plug, you know, 
Co host of elixir Wizards. 

903
00:53:11,400 --> 00:53:13,680
Oh yeah, we've did I forget to 
got a season going too. 

904
00:53:14,280 --> 00:53:16,240
I think you probably did. 
No, I mean, you probably 

905
00:53:16,240 --> 00:53:20,840
mentioned it, but we so like 
we're in the middle of a season 

906
00:53:20,840 --> 00:53:23,240
right now where we're talking to
people who've created packages 

907
00:53:23,320 --> 00:53:24,840
or you know, created things with
Elixir. 

908
00:53:24,840 --> 00:53:28,120
So actually a lot of those of 
our guests so far have been 

909
00:53:28,720 --> 00:53:32,400
people running startups or 
businesses using Elixir to some 

910
00:53:32,400 --> 00:53:35,200
degree. 
And yeah, the, I think the most 

911
00:53:35,200 --> 00:53:38,480
interesting thing for me is 
someone who did kind of like toy

912
00:53:38,480 --> 00:53:42,680
with the idea of starting a 
business is the bootstrap versus

913
00:53:42,680 --> 00:53:46,160
VC decision. 
Because that's like bootstrap 

914
00:53:46,160 --> 00:53:48,800
gives you the most kind of like 
creative control and freedom to 

915
00:53:48,800 --> 00:53:50,240
just build the thing you want to
build. 

916
00:53:51,360 --> 00:53:55,360
But VC gives you the maybe the 
opportunity to actually build it

917
00:53:55,360 --> 00:53:58,000
sooner, even if it's not exactly
what you want. 

918
00:53:58,080 --> 00:54:00,600
And there's a lot of trade-offs 
on both sides. 

919
00:54:01,560 --> 00:54:04,680
But yeah, that's that's been a 
fun kind of thing we've been 

920
00:54:04,840 --> 00:54:07,240
talking about a little bit. 
On this, yeah, that's cool. 

921
00:54:07,880 --> 00:54:09,240
Yeah. 
I mean, it is hard. 

922
00:54:09,400 --> 00:54:13,920
Like VC gets it done fast and 
lets you hire people that are 

923
00:54:13,920 --> 00:54:18,760
good at what they do, but then 
you usually have to have some 

924
00:54:18,760 --> 00:54:23,800
sort of planned exit in five to 
six years where you can next 

925
00:54:23,800 --> 00:54:28,640
your investors money. 
And I maybe it's just me, I 

926
00:54:28,640 --> 00:54:30,720
think of this in terms of like, 
who's the boss? 

927
00:54:31,600 --> 00:54:35,840
So if I'm bootstrapping, I'm the
boss, but also my customers are 

928
00:54:36,160 --> 00:54:39,720
basically my boss because like 
I'm going to have to build 

929
00:54:39,720 --> 00:54:42,240
whatever they want. 
Otherwise something to last. 

930
00:54:42,800 --> 00:54:46,440
If it's BC, then I've got like 
there's another boss in the 

931
00:54:46,440 --> 00:54:49,120
equation and maybe multiple 
other bosses in the equation. 

932
00:54:49,120 --> 00:54:55,200
So it just complicates things. 
But it's totally legit to like 

933
00:54:55,320 --> 00:54:58,480
get funny if you, I think, 
especially if you have clarity 

934
00:54:58,480 --> 00:55:00,000
and like there's a market for 
the thing you need. 

935
00:55:00,200 --> 00:55:03,480
You just need like just to like 
you need labor and money to get 

936
00:55:03,480 --> 00:55:06,440
it out the door. 
It's totally legit to do that. 

937
00:55:06,720 --> 00:55:10,400
I'm not against it, I'm just 
scared of it to be honest. 

938
00:55:12,600 --> 00:55:14,680
Yes, yeah. 
Either way, it's you know it's 

939
00:55:14,680 --> 00:55:16,160
not going to be easy no matter 
what, right? 

940
00:55:16,560 --> 00:55:22,520
Yeah, for sure. 
Yeah, we. 

941
00:55:24,480 --> 00:55:28,920
No, go ahead. 
Well, I had a thought and it 

942
00:55:31,240 --> 00:55:33,400
like the orange, you know, I 
don't know if you know the thing

943
00:55:33,400 --> 00:55:35,800
with orange cats, there's like 
what single brain cell in 

944
00:55:35,800 --> 00:55:38,240
universe and only one gets it at
a time. 

945
00:55:40,240 --> 00:55:42,400
That's just my life story right 
there. 

946
00:55:42,560 --> 00:55:44,840
Yeah, I just had an orange cat 
moment where I was like I lost 

947
00:55:44,840 --> 00:55:47,880
my my brain cell. 
I do that all the time it's 

948
00:55:47,880 --> 00:55:53,320
horrible. 
What Is there a road map or 

949
00:55:53,320 --> 00:55:57,240
anything for authen or now? 
Why did I forget your? 

950
00:55:57,960 --> 00:56:00,440
Web Authen components. 
Authen components, Yeah, OK. 

951
00:56:00,840 --> 00:56:03,440
Yeah, so web authen under score 
components if you're looking for

952
00:56:03,440 --> 00:56:06,560
it for it online. 
So, yeah, it's open source, it's

953
00:56:06,640 --> 00:56:10,680
the repos available. 
I've got a, I'd say a healthy 

954
00:56:10,680 --> 00:56:12,600
list of issues. 
Eleven of those right now. 

955
00:56:13,320 --> 00:56:17,600
I think the, the most urgent one
that I want to tackle next is 

956
00:56:17,680 --> 00:56:22,200
issue #85. 
So I want to review and improve 

957
00:56:22,200 --> 00:56:28,120
security. 
So, you know, I, I got some 

958
00:56:28,120 --> 00:56:30,680
good, really good feedback from,
I want to shout him out. 

959
00:56:30,680 --> 00:56:34,640
Holden Olette is that one of our
security researchers in the in 

960
00:56:34,640 --> 00:56:36,760
the community. 
And I want to make sure that I, 

961
00:56:36,760 --> 00:56:38,640
I think I implemented some of 
the feedback. 

962
00:56:38,640 --> 00:56:41,760
I just want to make sure I, I 
got it right specifically with 

963
00:56:41,760 --> 00:56:44,040
like session tokens, I want to 
make sure that those are as 

964
00:56:44,040 --> 00:56:47,080
secure as possible. 
I want to make sure, you know, 

965
00:56:47,360 --> 00:56:51,040
I'm not vulnerable like this 
package isn't vulnerable to 

966
00:56:51,040 --> 00:56:54,360
cross site scripting or CSRF 
attacks. 

967
00:56:54,360 --> 00:56:57,480
So I just want to go back and, 
you know, before I mark it as, 

968
00:56:57,760 --> 00:57:01,040
you know, one dot OI want to 
make sure that I'm comfortable, 

969
00:57:01,040 --> 00:57:03,200
that it's secure. 
And also I just want to have 

970
00:57:03,200 --> 00:57:06,720
more people using it and 
reporting back that everything's

971
00:57:06,720 --> 00:57:10,440
working or they found a problem 
on a just need to have more time

972
00:57:10,560 --> 00:57:13,280
of it out in the wild so that we
can know that it's ready. 

973
00:57:13,920 --> 00:57:16,600
The it's a chicken and egg 
problem though, because 

974
00:57:16,720 --> 00:57:19,960
something like this is like 
really important and they're 

975
00:57:19,960 --> 00:57:22,000
going to be a lot of people that
just don't want to use it until 

976
00:57:22,000 --> 00:57:25,920
it is one O So, you know, I 
mean. 

977
00:57:26,080 --> 00:57:30,120
Security vulnerabilities, 
They're scary, right? 

978
00:57:30,920 --> 00:57:32,800
Yeah. 
That's like, I know you're to be

979
00:57:32,800 --> 00:57:37,280
scared of them, but I'm not 
smart enough to probably figure 

980
00:57:37,280 --> 00:57:40,640
it all out on my own. 
You know, I depend on those 

981
00:57:40,640 --> 00:57:43,280
smart security guys. 
Right. 

982
00:57:43,520 --> 00:57:48,600
Yeah, that's, yeah. 
So I'm, I'm so glad that people 

983
00:57:48,600 --> 00:57:52,280
way smarter than me came up with
this API, that it's supported in

984
00:57:52,280 --> 00:57:55,240
all the browsers now. 
So Safari car blocks. 

985
00:57:55,480 --> 00:57:57,640
How is cross browser 
compatibility? 

986
00:57:57,880 --> 00:58:00,120
It's good or is it still an 
issue? 

987
00:58:00,440 --> 00:58:07,760
You know what, let's take a look
at Can I use so caniuse.com web 

988
00:58:07,800 --> 00:58:13,160
authen. 
All right, everyone supports it 

989
00:58:14,120 --> 00:58:18,160
except for Internet Explorer and
for many. 

990
00:58:18,160 --> 00:58:20,400
So you're probably not targeting
those anyway. 

991
00:58:20,400 --> 00:58:24,720
I'm a big if you're a live view 
app, you're probably not a 

992
00:58:24,720 --> 00:58:26,440
problem for you. 
I think there's a explorer. 

993
00:58:26,680 --> 00:58:31,080
Still a used thing. 
Have have you ever worked in 

994
00:58:31,080 --> 00:58:34,080
enterprise? 
Didn't know I avoided at all. 

995
00:58:34,080 --> 00:58:38,840
Costs, yeah. 
So that's probably where the 

996
00:58:38,840 --> 00:58:41,240
bulk of it is. 
If it's still being used at all,

997
00:58:41,920 --> 00:58:44,960
it's probably where it's still 
being, you know, just people who

998
00:58:44,960 --> 00:58:48,440
never upgrade their computers or
enterprise. 

999
00:58:48,440 --> 00:58:51,960
I thought it just like got 
renamed to Edge and Internet 

1000
00:58:51,960 --> 00:58:56,920
Explorer died but. 
Oh yeah, so, well, kind of. 

1001
00:58:56,920 --> 00:58:59,920
So Edge is actually a Chromium 
browser. 

1002
00:59:01,360 --> 00:59:03,960
It does replace Internet 
Explorer, but they're not the 

1003
00:59:03,960 --> 00:59:05,720
same internals. 
Got it. 

1004
00:59:05,720 --> 00:59:09,440
That makes sense. 
Yeah, yeah. 

1005
00:59:09,440 --> 00:59:11,600
So the browser support is 
ubiquitous. 

1006
00:59:11,880 --> 00:59:16,760
I think it, it took Microsoft a 
while to get support added to 

1007
00:59:16,760 --> 00:59:19,160
Windows, but that happened some,
some months ago. 

1008
00:59:20,480 --> 00:59:23,320
So yeah, you can use it on Mac 
and Windows for sure. 

1009
00:59:24,160 --> 00:59:30,160
I haven't run Linux myself in a 
while, but I do believe you can 

1010
00:59:30,160 --> 00:59:32,960
use pass keys on Linux machines 
as well. 

1011
00:59:34,240 --> 00:59:37,280
I think when you're dealing with
custom computers, I'm not 

1012
00:59:37,280 --> 00:59:41,520
honestly sure what the impact is
if you don't have like ATPM or 

1013
00:59:41,520 --> 00:59:43,600
trusted platform module. 
OK. 

1014
00:59:44,040 --> 00:59:46,880
You know, I'm not sure if 
there's maybe that's just in all

1015
00:59:46,880 --> 00:59:48,040
the new computers now, I don't 
know. 

1016
00:59:48,080 --> 00:59:50,240
But is that when you buy a 
maximum? 

1017
00:59:50,600 --> 00:59:53,240
Level or what is that? 
Yeah. 

1018
00:59:53,240 --> 00:59:55,600
So it's like a separate 
component on the motherboard 

1019
00:59:55,680 --> 00:59:56,880
typically. 
OK. 

1020
00:59:57,400 --> 01:00:00,720
Or the system on a chip 
potentially that will it's, you 

1021
01:00:00,960 --> 01:00:05,520
know, responsible for creating 
and storing secrets. 

1022
01:00:07,680 --> 01:00:12,280
Cryptography is typically what 
it's responsible for. 

1023
01:00:12,840 --> 01:00:16,960
And so it keeps that out of band
from the actual CPU itself so 

1024
01:00:16,960 --> 01:00:20,120
that you know, whenever, if 
you're if someone's got access 

1025
01:00:20,120 --> 01:00:23,600
to your kernel on your CPU 
accessing what's happening in 

1026
01:00:23,600 --> 01:00:27,560
memory. 
And theoretically at least, I 

1027
01:00:27,560 --> 01:00:29,280
think this keeps it a little 
bit. 

1028
01:00:30,000 --> 01:00:36,840
Harder to hack into. 
I want to M chips. 

1029
01:00:37,160 --> 01:00:39,800
I want to see what the 
vulnerability was for that. 

1030
01:00:39,800 --> 01:00:53,080
I feel like security slows it. 
Flawed M series chip encryption.

1031
01:00:53,320 --> 01:00:57,640
What is the vulnerability? 
Go fetch a side channel flaw 

1032
01:00:57,640 --> 01:01:01,160
allows attackers to extract 
secret keys from Max when they 

1033
01:01:01,160 --> 01:01:04,880
perform widely used 
cryptographic operations. 

1034
01:01:08,400 --> 01:01:11,000
And I know it was like in the 
whole M series thing and it 

1035
01:01:11,000 --> 01:01:13,480
can't be corrected because it's.
Oh boy. 

1036
01:01:13,960 --> 01:01:18,560
It's hardware level. 
So it's not like a specific M 

1037
01:01:18,560 --> 01:01:21,160
model like M1 or M2 is. 
I think it. 

1038
01:01:21,320 --> 01:01:24,000
Aldens. 
Oh, what is it says? 

1039
01:01:24,040 --> 01:01:30,680
Let's see, M2 was it's possible 
that it's in the M3. 

1040
01:01:30,680 --> 01:01:35,840
It's definitely M1 and M2 
unpatchable because it's present

1041
01:01:35,880 --> 01:01:40,600
present in the silicon itself, 
which seems crazy to me. 

1042
01:01:42,760 --> 01:01:45,800
Yeah, there's. 
I'm gonna have to dig this up as

1043
01:01:45,800 --> 01:01:46,840
well. 
Hit go fetch. 

1044
01:01:47,920 --> 01:01:52,480
Interesting. 
OK, so go fetch is the attack 

1045
01:01:52,480 --> 01:01:56,040
that they're describing here. 
Looks like it's been 

1046
01:01:56,280 --> 01:02:02,960
demonstrated on M1. 
Yeah, I'll have to give this a 

1047
01:02:02,960 --> 01:02:05,200
read. 
So that what this means to 

1048
01:02:05,200 --> 01:02:09,240
anyone who's listening is, you 
know, at least theoretically, 

1049
01:02:09,720 --> 01:02:13,680
it's possible that any 
credentials, this includes your 

1050
01:02:13,680 --> 01:02:19,120
SSH keys, anything that would be
kind of managed by the TPM 

1051
01:02:19,120 --> 01:02:24,080
module could be compromised. 
So not just pass keys, but kind 

1052
01:02:24,080 --> 01:02:29,880
of anything going through that, 
which also could extend to open 

1053
01:02:29,880 --> 01:02:33,520
SSL and some other things. 
Again, I'm I'm going to quickly 

1054
01:02:33,520 --> 01:02:36,720
get out of my depth here 'cause 
I'm not the security researcher 

1055
01:02:36,720 --> 01:02:40,280
on on this stuff, but me 
neither. 

1056
01:02:40,920 --> 01:02:43,560
So. 
I think that's it was you. 

1057
01:02:44,520 --> 01:02:47,680
Well, it's a good, good thing to
include in the conversation is 

1058
01:02:47,680 --> 01:02:50,800
like, you know, again, like pass
keys are just one part of the 

1059
01:02:50,800 --> 01:02:54,720
equation. 
So, you know, there's many ways 

1060
01:02:54,720 --> 01:02:58,160
that you can be compromised. 
Not to like good nightmares, but

1061
01:02:58,160 --> 01:03:00,200
yeah. 
For talking about like custom 

1062
01:03:00,200 --> 01:03:03,920
built computers like something 
like this where you're 

1063
01:03:03,920 --> 01:03:07,520
controlling the hardware, you 
got to be aware of what hardware

1064
01:03:07,560 --> 01:03:09,400
you're using. 
There's that. 

1065
01:03:09,400 --> 01:03:14,320
There's also, you know, we are, 
you know, all of us, even in the

1066
01:03:14,320 --> 01:03:17,920
Elixir ecosystem are using 
packages that hopefully we're 

1067
01:03:17,920 --> 01:03:20,480
all looking at the source code 
and keeping track of what 

1068
01:03:20,480 --> 01:03:24,120
changes between versions. 
But practically, you know, that 

1069
01:03:24,120 --> 01:03:28,040
just doesn't happen. 
So we're there's a certain 

1070
01:03:28,040 --> 01:03:30,280
amount of trust that we have in 
the tools that we use, but 

1071
01:03:30,280 --> 01:03:33,360
they're, you know, supply chain 
attacks are a real problem. 

1072
01:03:34,640 --> 01:03:37,320
You know, there's you've got 
your basement hackers, you've 

1073
01:03:37,320 --> 01:03:40,800
got your, you know, state 
sponsored hackers. 

1074
01:03:41,240 --> 01:03:44,720
So if there's ever a reason to 
not ever write software, it's 

1075
01:03:44,720 --> 01:03:48,240
because these are some really 
hard problems and, you know, 

1076
01:03:49,040 --> 01:03:52,320
it's just complicated. 
But on the other side, like at 

1077
01:03:52,320 --> 01:03:55,440
least there's a lot of effort 
and, you know, research 

1078
01:03:55,600 --> 01:03:58,840
happening to make make it easier
for software developers to do 

1079
01:03:58,840 --> 01:04:03,200
the right thing and to be at 
least as secure as possible. 

1080
01:04:04,080 --> 01:04:09,000
Yeah, for sure. 
Well, one thing like what I like

1081
01:04:09,000 --> 01:04:12,600
more about like Phoenix Live 
view is you're only going to 

1082
01:04:12,600 --> 01:04:17,280
have like probably like total in
a big application, right, like 

1083
01:04:17,280 --> 01:04:21,560
100 dependencies that I mean you
probably don't know of all. 

1084
01:04:21,560 --> 01:04:25,480
That would be a lot, yeah. 
Yeah, but if you build a like a 

1085
01:04:25,480 --> 01:04:28,240
React app or something, you're 
going to have thousands that you

1086
01:04:28,240 --> 01:04:31,360
don't even know what you're 
using. 10s of thousands 

1087
01:04:31,360 --> 01:04:34,760
potentially yeah, yeah, a single
dependency can add can bring a 

1088
01:04:34,760 --> 01:04:38,640
lot, a lot yeah. 
That that is something I like 

1089
01:04:38,640 --> 01:04:43,160
about our community is you'll 
hear it described sometimes as 

1090
01:04:43,160 --> 01:04:51,400
like not built here syndrome, 
but we tend to bring in just the

1091
01:04:51,400 --> 01:04:55,240
dependencies we need. 
It's kind of like our Moi think 

1092
01:04:55,880 --> 01:05:01,000
our modus operandi in order to. 
Develop that way too, Like you 

1093
01:05:01,000 --> 01:05:03,560
shouldn't just bring a package 
in for something you can simply 

1094
01:05:03,560 --> 01:05:05,920
like write a very small module 
for. 

1095
01:05:07,360 --> 01:05:10,280
Look that and tag the JavaScript
community and see what happens. 

1096
01:05:10,760 --> 01:05:13,360
I know. 
Yeah, everything's like we're, I

1097
01:05:13,360 --> 01:05:15,720
need to build an app. 
So I like this. 

1098
01:05:15,920 --> 01:05:17,960
You start with like what 
dependencies you you need. 

1099
01:05:18,400 --> 01:05:22,320
Whereas like I think for us, we 
kind of work our way to what 

1100
01:05:22,320 --> 01:05:25,640
dependencies we need. 
Well, like 2 like I'll just, 

1101
01:05:25,640 --> 01:05:27,400
I'll start building something 
right? 

1102
01:05:27,400 --> 01:05:31,440
And then I'll usually look to 
see if there's a dependency or, 

1103
01:05:31,440 --> 01:05:33,880
you know, a library made to do 
what I'm doing. 

1104
01:05:34,240 --> 01:05:37,160
I'll look through it. 
But then I also check like if 

1105
01:05:37,160 --> 01:05:39,400
it's just an APII need access 
to. 

1106
01:05:39,400 --> 01:05:43,000
If it's not, if it's a well 
documented API, you're better 

1107
01:05:43,000 --> 01:05:47,280
off writing your own code and 
handling your own API requests. 

1108
01:05:48,280 --> 01:05:49,880
Yeah, that's that's a point 
that. 

1109
01:05:54,080 --> 01:05:59,720
Oh, no, All right, I got to. 
I got to get. 

1110
01:06:00,040 --> 01:06:04,000
Brian Carter Cartarella here 
saying. 

1111
01:06:04,040 --> 01:06:08,240
Hello. 
Hey, howdy, Howdy, let's. 

1112
01:06:08,240 --> 01:06:11,720
See, I think like the you're 
just better off writing your own

1113
01:06:11,720 --> 01:06:15,280
API wrappers or whatever you 
need unless it's a very 

1114
01:06:15,280 --> 01:06:19,440
complicated thing which there 
are circum certain circumstances

1115
01:06:19,440 --> 01:06:23,280
where a library makes sense. 
That's in. 

1116
01:06:23,280 --> 01:06:26,160
That's a good, good thing to tie
into the conversation here about

1117
01:06:26,160 --> 01:06:30,520
web auth and components. 
Look, I just wrote this to make 

1118
01:06:30,520 --> 01:06:34,120
it easier. 
The browser AP is are the 

1119
01:06:34,120 --> 01:06:36,720
JavaScript is just using the 
browser AP is it's really all it

1120
01:06:36,720 --> 01:06:39,160
is. 
It's just some live view 

1121
01:06:39,160 --> 01:06:43,600
components, live components that
have some JavaScript hooks that 

1122
01:06:43,880 --> 01:06:45,840
handle the communication back 
and forth between the browser 

1123
01:06:45,840 --> 01:06:48,800
and send up some results to the 
to the server. 

1124
01:06:50,160 --> 01:06:54,440
Anyone could look at the source 
code and kind of replicate it 

1125
01:06:54,440 --> 01:06:57,600
or, or whatever you could have, 
anyone could have written this. 

1126
01:06:57,600 --> 01:07:00,960
Like there have been a few 
people who've tackled, I think 

1127
01:07:00,960 --> 01:07:06,240
or attempted to tackle web 
authen support previously. 

1128
01:07:06,640 --> 01:07:10,160
And like what I'm using is I'm 
using a web authen. 

1129
01:07:11,960 --> 01:07:15,880
What's it called? 
Wax is the name of the package 

1130
01:07:16,000 --> 01:07:18,120
that I use. 
So even that is like kind of 

1131
01:07:18,120 --> 01:07:19,800
abstracting some of the stuff 
that I have, some of the 

1132
01:07:19,800 --> 01:07:22,920
problems I have to solve. 
So that deals with more of the 

1133
01:07:22,920 --> 01:07:26,040
challenge and attestation 
structures that you need. 

1134
01:07:27,080 --> 01:07:30,040
But I guess the point I was 
going to make was that anyone 

1135
01:07:30,800 --> 01:07:33,440
like you don't have to to 
support by pass keys, you don't 

1136
01:07:33,440 --> 01:07:36,200
have to use this package. 
It's just going to get you up, 

1137
01:07:36,360 --> 01:07:39,360
up and running much faster 
because this is one of those 

1138
01:07:39,360 --> 01:07:42,600
cases where it there is 
actually, you know, a lot of 

1139
01:07:42,880 --> 01:07:45,560
steps to get this. 
Thing working is complicated 

1140
01:07:45,560 --> 01:07:47,360
too. 
And this is what one thing you 

1141
01:07:47,360 --> 01:07:51,040
just hope a lot of community 
eyes are on packages like this, 

1142
01:07:51,040 --> 01:07:52,880
right? 
Because for authentication, 

1143
01:07:53,240 --> 01:07:57,240
yeah, grab your package for like
currency math. 

1144
01:07:58,280 --> 01:08:00,720
I don't want to think about it 
because you know, you have, you 

1145
01:08:00,720 --> 01:08:03,200
can't use floats. 
You can't, you know, I don't 

1146
01:08:03,200 --> 01:08:07,440
want to create my whole system 
to add either strings or binary 

1147
01:08:07,440 --> 01:08:11,600
values or integers together and 
then worry about moving the 

1148
01:08:11,600 --> 01:08:14,800
decimal to the right place. 
So like those two things I'll 

1149
01:08:14,800 --> 01:08:19,800
always be quick on grabbing a 
well used library that I know 

1150
01:08:19,960 --> 01:08:25,240
has gone through it. 
But other than that I try to not

1151
01:08:25,240 --> 01:08:29,680
do it and I do I agree with you.
I think the Elixir community is 

1152
01:08:29,680 --> 01:08:33,319
really good at not writing 
unneeded things or pulling 

1153
01:08:33,319 --> 01:08:35,399
unneeded dependencies into your 
projects. 

1154
01:08:36,040 --> 01:08:40,960
And I really like so like 
Paraxial is an awesome company 

1155
01:08:41,520 --> 01:08:46,680
and I love that you can have 
like an app audit and it tells 

1156
01:08:46,680 --> 01:08:49,600
you all the dependencies that 
are in your project. 

1157
01:08:49,640 --> 01:08:55,640
And if there's any concerning 
what is, what's the word I'm 

1158
01:08:55,640 --> 01:08:58,560
looking for right now? 
Vulnerabilities, yeah. 

1159
01:08:58,600 --> 01:09:00,040
Vulnerabilities. 
So if there's any 

1160
01:09:00,040 --> 01:09:02,319
vulnerabilities, that tells you 
that you need to update your 

1161
01:09:02,319 --> 01:09:04,040
current version and things like 
that. 

1162
01:09:04,040 --> 01:09:07,920
And now, even if you're not 
using something like paraxial, 

1163
01:09:08,200 --> 01:09:12,479
you should keep a list of all 
your dependencies and track that

1164
01:09:12,479 --> 01:09:15,000
somewhere, especially if you 
have a production app. 

1165
01:09:15,840 --> 01:09:17,880
Yeah, there's there are some 
tools we have here. 

1166
01:09:17,880 --> 01:09:21,160
So Paraxial's great. 
I think it's a service. 

1167
01:09:21,160 --> 01:09:23,200
It's got some open support 
source tooling as well. 

1168
01:09:24,080 --> 01:09:29,080
We also have so for security 
checks, we have Sobolo which 

1169
01:09:29,560 --> 01:09:31,439
covers a lot of ground. 
Doesn't, you know, check 

1170
01:09:31,439 --> 01:09:34,000
everything that you need to know
about, but you know, covers a 

1171
01:09:34,000 --> 01:09:40,279
lot of ground for you. 
We have there's I think it's a 

1172
01:09:40,279 --> 01:09:44,120
separate package. 
There's a a mix audit package, 

1173
01:09:44,120 --> 01:09:47,560
so you can check for 
vulnerabilities and the packages

1174
01:09:47,560 --> 01:09:50,600
you have. 
Think there's also this one 

1175
01:09:50,600 --> 01:09:53,479
might be deprecated now, but I 
think there was a hex audit 

1176
01:09:53,720 --> 01:09:56,680
task. 
Those have slightly different 

1177
01:09:56,680 --> 01:09:57,960
purposes. 
I don't remember off the top of 

1178
01:09:57,960 --> 01:10:01,200
my head now, but I have those in
CI on any application that I 

1179
01:10:01,200 --> 01:10:07,640
have going out into production. 
And then I think there's a new 

1180
01:10:07,640 --> 01:10:10,600
one which is really interesting.
I think it's Phoenix to band. 

1181
01:10:10,600 --> 01:10:17,760
So I think Alex and Eater 
released this as a comic, a 

1182
01:10:17,760 --> 01:10:22,200
premium package. 
So you you pay once and you get 

1183
01:10:22,200 --> 01:10:24,240
to use this package from a 
private repo. 

1184
01:10:25,160 --> 01:10:27,480
And that's really interesting. 
So it'll also give you like a 

1185
01:10:27,480 --> 01:10:31,160
dashboard of which traffic is 
being kind of banned from your 

1186
01:10:31,160 --> 01:10:32,560
site. 
Oh, nice. 

1187
01:10:32,760 --> 01:10:34,200
OK. 
Cause a lot, a lot of that is 

1188
01:10:34,200 --> 01:10:37,720
just like people trying to hit 
your WordPress admin if you have

1189
01:10:37,760 --> 01:10:39,080
any kind of machine on the 
Internet. 

1190
01:10:39,600 --> 01:10:43,840
That is all my all my requests, 
right? 

1191
01:10:43,840 --> 01:10:45,720
It's just people trying to hit 
WordPress. 

1192
01:10:45,720 --> 01:10:49,520
It's insane honey how many 
blocked requests I have every 

1193
01:10:49,520 --> 01:10:52,280
day. 
That's so one of the the first 

1194
01:10:52,280 --> 01:10:55,920
time I ever spun up a digital 
ocean droplet and was following 

1195
01:10:55,920 --> 01:10:57,480
instructions and ran failed to 
ban. 

1196
01:10:57,480 --> 01:10:59,240
I was like, whoa. 
Yeah. 

1197
01:10:59,720 --> 01:11:00,280
That's. 
Crazy. 

1198
01:11:00,920 --> 01:11:05,560
Well, what's wild is I remember 
before I started using paraxial 

1199
01:11:05,560 --> 01:11:10,960
in my project, I just had like 
my logs up my digital ocean logs

1200
01:11:10,960 --> 01:11:13,120
of, you know, traffic coming in 
and out. 

1201
01:11:13,600 --> 01:11:17,680
I was like, Oh my gosh, just 
like after just having something

1202
01:11:17,680 --> 01:11:21,160
live for like maybe two hours, 
you start getting crawled by all

1203
01:11:21,160 --> 01:11:25,320
the bots looking for your 
WordPress admin dashboard and 

1204
01:11:25,520 --> 01:11:26,800
credentials. 
It's insane. 

1205
01:11:27,720 --> 01:11:29,240
So you definitely need 
something. 

1206
01:11:29,240 --> 01:11:32,920
You don't want to just let your 
poor server get attacked all 

1207
01:11:32,920 --> 01:11:36,000
day. 
Right, like you want to. 

1208
01:11:36,160 --> 01:11:40,680
You want to shed that load on 
your machine so that you can 

1209
01:11:40,680 --> 01:11:44,640
actually serve the the legit 
users who are trying to like, 

1210
01:11:44,640 --> 01:11:47,400
you know, give you money or, you
know, use the thing you built. 

1211
01:11:48,320 --> 01:11:54,120
Yeah, I, I one day I made a 
video I had like 7000 blocked 

1212
01:11:54,120 --> 01:11:57,920
requests on a very low 
trafficked site. 

1213
01:11:58,360 --> 01:12:02,080
So it's like out of nowhere and 
I it would just got hammered for

1214
01:12:02,080 --> 01:12:06,280
like 2 hours straight and 
luckily they were all blocked 

1215
01:12:06,280 --> 01:12:11,560
requests so. 
You know one thing we didn't. 

1216
01:12:12,520 --> 01:12:20,200
Oh no, go ahead. 
This is so going back up the 

1217
01:12:20,200 --> 01:12:23,640
stack back, you know, I'm not 
talking about the like actual 

1218
01:12:23,800 --> 01:12:27,360
network request, but like the 
the like the applications we 

1219
01:12:27,360 --> 01:12:31,160
build. 
One thing that I've also kind of

1220
01:12:31,160 --> 01:12:34,640
got in the back of my mind is 
authorization. 

1221
01:12:34,800 --> 01:12:40,000
So I've seen I've seen small 
apps with like manageable 

1222
01:12:40,000 --> 01:12:43,920
authorization and I've seen 
large apps with I don't know how

1223
01:12:43,920 --> 01:12:47,000
any of this works. 
I hope it works the way it's 

1224
01:12:47,000 --> 01:12:50,320
supposed to. 
And you know, you know, a mess. 

1225
01:12:51,640 --> 01:12:56,560
So I don't, I'm just kind of 
curious if you've had to build 

1226
01:12:56,560 --> 01:13:00,240
authorization systems, whether 
you use like protocols, like 

1227
01:13:00,240 --> 01:13:02,280
Elixir protocols. 
I think it's not like a very 

1228
01:13:02,280 --> 01:13:04,200
good kind of tool in this 
toolbox. 

1229
01:13:05,000 --> 01:13:08,840
And another one I'm kind of 
curious about using is maybe fun

1230
01:13:08,840 --> 01:13:11,000
with flags. 
So you can kind of like 

1231
01:13:11,000 --> 01:13:15,520
configure feature flags and turn
features on and off for either 

1232
01:13:15,520 --> 01:13:18,720
individual users or users with 
like some attribute like a roll 

1233
01:13:18,720 --> 01:13:20,640
I. 
Was going to ask how does that? 

1234
01:13:20,640 --> 01:13:25,040
Is that like plug based then and
you're going off of user roles 

1235
01:13:25,120 --> 01:13:30,480
or how does that work? 
These are both I think super 

1236
01:13:30,480 --> 01:13:32,720
flexible and like how you 
implement them so. 

1237
01:13:33,560 --> 01:13:35,840
I want to look what is that? 
What is the flag one called? 

1238
01:13:36,560 --> 01:13:43,080
Fun with flags. 
So really that package is is 

1239
01:13:43,800 --> 01:13:47,000
conceptually very simple. 
It's just essentially it's a 

1240
01:13:47,000 --> 01:13:50,680
migration on a database with has
a database table of features 

1241
01:13:50,680 --> 01:13:54,960
that can be turned off and on 
for either actors like so, 

1242
01:13:55,000 --> 01:13:59,240
individuals, individuals in the 
app, groups or, you know, 

1243
01:13:59,240 --> 01:14:02,280
percentages of users or groups. 
Oh yeah. 

1244
01:14:02,360 --> 01:14:06,320
Perceive time groups, actors. 
Oh, that's cool. 

1245
01:14:06,640 --> 01:14:08,960
OK. 
So like I've built this on a 

1246
01:14:08,960 --> 01:14:12,360
prototype app and what was 
really nice is like I built my 

1247
01:14:12,360 --> 01:14:15,200
custom live view interface. 
So you could just go in and like

1248
01:14:15,200 --> 01:14:20,680
toggle features on and off like 
immediately for for the entire 

1249
01:14:20,680 --> 01:14:24,280
site globally or for individual 
users or for groups. 

1250
01:14:25,120 --> 01:14:27,200
This is and this. 
Actually solves. 

1251
01:14:28,040 --> 01:14:30,040
A problem I was. 
Just trying to solve and I 

1252
01:14:30,040 --> 01:14:31,360
didn't know what I was going to 
do. 

1253
01:14:31,480 --> 01:14:36,320
I need to start this library. 
Yeah, they they do have a phone 

1254
01:14:36,320 --> 01:14:38,400
with flags UI package which is 
separate. 

1255
01:14:39,440 --> 01:14:44,360
It is like a just a controller 
based implementation and it is 

1256
01:14:44,360 --> 01:14:47,160
very admin looking. 
So it's, you know, kind of 

1257
01:14:47,160 --> 01:14:50,720
bootstrappy looking, but. 
I mean this is yeah for what I 

1258
01:14:50,720 --> 01:14:52,360
need. 
It will all be admin level 

1259
01:14:52,360 --> 01:14:54,600
anyways, so. 
Right, well, and like building a

1260
01:14:54,600 --> 01:14:57,680
live view for this wasn't like 
the hardest thing I had to solve

1261
01:14:57,680 --> 01:15:00,280
either. 
So 'cause you're basically like.

1262
01:15:01,000 --> 01:15:05,720
I find it harder to rework 
components and dashboards than 

1263
01:15:05,720 --> 01:15:08,120
just writing them the way I want
them. 

1264
01:15:10,280 --> 01:15:12,320
I'm the same way when it comes 
to like core components. 

1265
01:15:12,360 --> 01:15:15,160
I I kind of want those to be in 
separate modules. 

1266
01:15:16,040 --> 01:15:18,520
I've run into problems where 
they're imported so that 

1267
01:15:19,040 --> 01:15:21,360
whenever you're working on 
components and you've already 

1268
01:15:21,360 --> 01:15:24,360
got a bunch of code, it takes a 
few minutes to recompile, which 

1269
01:15:24,360 --> 01:15:28,240
is weird in an Elixir rapid that
that thing ever takes so long. 

1270
01:15:28,720 --> 01:15:33,520
So yeah, I one thing I do here, 
this is so yeah, we on the big 

1271
01:15:33,520 --> 01:15:37,920
project that I've worked on, we 
switched to using aliases. 

1272
01:15:39,480 --> 01:15:42,560
So instead of like we removed 
the import for core components 

1273
01:15:42,560 --> 01:15:49,000
and then I think in our live 
view macro and you know my app 

1274
01:15:49,000 --> 01:15:52,840
web, it just aliases all the 
component modules that we have, 

1275
01:15:54,400 --> 01:15:57,680
which that works pretty well. 
It speeds up compilation so that

1276
01:15:57,680 --> 01:15:59,960
whenever you are working on 
components, you're not waiting 

1277
01:15:59,960 --> 01:16:02,240
on all of your live use to 
recompile. 

1278
01:16:02,560 --> 01:16:05,960
Default it's imported in like 
the layouts or whatever, right? 

1279
01:16:06,120 --> 01:16:08,920
Yeah, and it's convenient 
because you just open a bracket 

1280
01:16:08,920 --> 01:16:11,560
and hit dot button or dot, 
simple form and stuff. 

1281
01:16:12,040 --> 01:16:16,960
But the trade off there is that 
like as soon as you have dozens 

1282
01:16:16,960 --> 01:16:19,120
or hundreds of live views and 
you need to make a change to a 

1283
01:16:19,120 --> 01:16:22,960
single component, then all of 
those alive views have to be 

1284
01:16:22,960 --> 01:16:26,120
recompiled. 
So if you're iterating and 

1285
01:16:26,120 --> 01:16:28,560
tinkering on things, that really
slows you down. 

1286
01:16:30,640 --> 01:16:34,160
But even even the aliases, like 
that's manageable. 

1287
01:16:34,640 --> 01:16:37,720
But I think where I've landed 
now is I just write the full 

1288
01:16:37,720 --> 01:16:41,680
module name in my templates so I
don't have to worry about 

1289
01:16:41,680 --> 01:16:46,320
imports anywhere. 
The language server whenever 

1290
01:16:46,320 --> 01:16:49,440
you're using an alias, even if 
it's aliased inside the live 

1291
01:16:49,440 --> 01:16:52,480
view module, if you're in the 
template, sometimes it will just

1292
01:16:52,560 --> 01:16:57,760
inject this alias in your HTML 
code, which isn't valid. 

1293
01:16:58,680 --> 01:17:01,120
Yeah, maybe I've got 
misconfigured, but yeah, I know 

1294
01:17:01,120 --> 01:17:02,000
what you're talking. 
About. 

1295
01:17:02,080 --> 01:17:05,360
It's super annoying. 
So that's why I just started 

1296
01:17:05,360 --> 01:17:07,720
using full module names. 
I was like, I'll just write, you

1297
01:17:07,720 --> 01:17:14,280
know, my app web dot buttons dot
button and a like language 

1298
01:17:14,280 --> 01:17:18,000
server knows like how to give me
auto complete when I do that and

1299
01:17:18,000 --> 01:17:22,040
B it's just obvious when you 
look at it. 

1300
01:17:22,040 --> 01:17:24,640
Now, for anyone who's looking at
this template for the first 

1301
01:17:24,640 --> 01:17:26,520
time, they know exactly which 
component. 

1302
01:17:26,920 --> 01:17:28,200
And they know. 
Where I'm using, where it comes 

1303
01:17:28,200 --> 01:17:31,040
from, if they don't know and 
they can command click and get 

1304
01:17:31,040 --> 01:17:33,600
to it, right? 
So I think that's a little 

1305
01:17:33,600 --> 01:17:37,040
approach up there, guys. 
Like when I, I'm not a very, I'm

1306
01:17:37,080 --> 01:17:40,040
getting better, but like front 
end dev was never really my 

1307
01:17:40,120 --> 01:17:45,680
strength and I've been doing it 
more and more, but I got so 

1308
01:17:45,680 --> 01:17:48,080
confused when I was like using 
core components. 

1309
01:17:48,120 --> 01:17:50,080
They're like kind of magical at 
first. 

1310
01:17:50,080 --> 01:17:53,840
And then when I had to finally I
was like, OK, I need to alter 

1311
01:17:53,840 --> 01:17:57,720
these things and figure it out. 
It took me a while to find them.

1312
01:17:57,720 --> 01:18:02,120
And then like I mean I now I 
know like the Phoenix layout and

1313
01:18:02,120 --> 01:18:06,120
I know where everything is, but 
at the time I it took me a while

1314
01:18:06,200 --> 01:18:08,800
to dig it up and figure out how 
it was working. 

1315
01:18:10,240 --> 01:18:14,600
Yeah. 
The, the core components are, I 

1316
01:18:14,600 --> 01:18:18,680
think it's funny, I think they 
were intended just to be like a 

1317
01:18:18,680 --> 01:18:20,240
reference or like a starting 
point. 

1318
01:18:21,960 --> 01:18:26,880
There are some opinions in those
components that I strongly, some

1319
01:18:26,880 --> 01:18:27,960
of them I strongly disagree 
with. 

1320
01:18:27,960 --> 01:18:29,960
Some of them are like, well, I 
would prefer to do it a 

1321
01:18:29,960 --> 01:18:31,760
different way. 
But I think the thing to 

1322
01:18:31,760 --> 01:18:35,840
remember is that those are 
basically copied from Tailwind 

1323
01:18:35,840 --> 01:18:40,240
UI, because I think Adam Wadden 
actually did contribute some of 

1324
01:18:40,240 --> 01:18:43,680
this for Phoenix. 
I think it's a great, It's a 

1325
01:18:43,680 --> 01:18:46,640
great. 
Yeah, I'm so happy that that 

1326
01:18:46,640 --> 01:18:48,720
they're. 
Reference to write your own 

1327
01:18:48,720 --> 01:18:50,920
components, right? 
Because I didn't know how to 

1328
01:18:50,920 --> 01:18:55,240
write a component at least well 
until you start digging through 

1329
01:18:55,240 --> 01:18:58,480
the core components. 
Yeah, there's some things like, 

1330
01:18:59,080 --> 01:19:01,960
like there's a lot of margins 
and text sizes and colors in 

1331
01:19:01,960 --> 01:19:03,440
there that I think should just 
be. 

1332
01:19:04,000 --> 01:19:06,600
They're a little hard then. 
Yeah, yeah, they're all hard. 

1333
01:19:06,720 --> 01:19:07,920
Like. 
So yeah, you want to be able to 

1334
01:19:07,920 --> 01:19:10,600
override things and you don't 
want to have all those baked 

1335
01:19:10,600 --> 01:19:14,480
into the components necessarily.
So I'm still trying to find like

1336
01:19:14,480 --> 01:19:17,640
the right balance of like, what 
do I put in an actual CSS file, 

1337
01:19:18,360 --> 01:19:23,440
which for now I tend to put like
forms and table styles just for 

1338
01:19:23,440 --> 01:19:26,000
elements. 
So I'm not adding new classes or

1339
01:19:26,000 --> 01:19:28,920
utilities. 
I'm just adding like tables 

1340
01:19:28,920 --> 01:19:32,480
should always like use this type
of adding on their cells and 

1341
01:19:32,480 --> 01:19:35,920
stuff because like getting that 
right in components is hard. 

1342
01:19:37,800 --> 01:19:40,360
Yeah, and think. 
About your Tailwind classes if 

1343
01:19:40,360 --> 01:19:42,080
you do it that way. 
Right. 

1344
01:19:42,080 --> 01:19:44,760
And you can just write a table 
HTML tag and like it's going to 

1345
01:19:44,760 --> 01:19:46,600
look right. 
And then it comes out, right, 

1346
01:19:46,680 --> 01:19:47,680
Yeah. 
Yeah. 

1347
01:19:47,960 --> 01:19:48,960
So there's some reasons for 
that. 

1348
01:19:49,200 --> 01:19:54,800
I think the one pin point I have
with the form components and or 

1349
01:19:54,800 --> 01:19:58,280
components is like the 
everything's an input and like 

1350
01:19:59,400 --> 01:20:03,120
selects and text areas are 
different and check boxes and 

1351
01:20:03,120 --> 01:20:05,920
radios, but they're all kind of 
like abstracted into this one 

1352
01:20:05,920 --> 01:20:08,880
thing. 
And then also they include the 

1353
01:20:08,880 --> 01:20:10,760
label. 
So like if you're trying to do 

1354
01:20:10,760 --> 01:20:13,320
something like, it works if 
you're just like rendering a 

1355
01:20:13,320 --> 01:20:16,200
list of fields. 
But if you need to have like a 

1356
01:20:16,200 --> 01:20:20,160
table or some kind of grid where
you got like labels up here and 

1357
01:20:20,160 --> 01:20:23,040
puts down here and error 
messages in a slightly different

1358
01:20:23,040 --> 01:20:26,160
place, then those components 
don't work. 

1359
01:20:26,160 --> 01:20:29,360
You got to either, you know, 
refactor them or write some new 

1360
01:20:29,360 --> 01:20:33,760
ones or something. 
So I'm on kind of a back burner 

1361
01:20:33,760 --> 01:20:37,640
is like I'm excited to see we've
got some new component packages 

1362
01:20:37,760 --> 01:20:42,000
surfacing in the community. 
So Fluxon is interesting to. 

1363
01:20:42,000 --> 01:20:44,640
Me yeah. 
Very cool to see component 

1364
01:20:44,640 --> 01:20:48,040
packages popping up, especially 
if they work well. 

1365
01:20:50,200 --> 01:20:52,240
Yeah. 
So I think I've glanced at 

1366
01:20:52,240 --> 01:20:54,440
Fluxon. 
I think I'm going to try that 

1367
01:20:54,520 --> 01:20:57,160
sometime over the holidays and 
see how that goes. 

1368
01:20:58,200 --> 01:21:03,160
It looks at first glance like 
it's nicely customizable and 

1369
01:21:03,600 --> 01:21:07,040
like it's got a good baseline 
that you can kind of override. 

1370
01:21:08,680 --> 01:21:13,360
So we'll see in practice if it 
kind of like carries forward 

1371
01:21:13,400 --> 01:21:15,000
certain patterns that I like or 
don't like it's. 

1372
01:21:15,480 --> 01:21:17,080
Very pretty. 
Yeah. 

1373
01:21:19,160 --> 01:21:22,480
So yeah, I'm, I'm happy to see 
that it's a another, I think 

1374
01:21:22,480 --> 01:21:26,120
premium package. 
So you, you pay depending on, 

1375
01:21:27,280 --> 01:21:30,840
you know, how you're going to 
use it and then you're kind of 

1376
01:21:30,840 --> 01:21:33,880
off to the races. 
So that's nice because I was 

1377
01:21:33,880 --> 01:21:36,680
planning on building kind of 
like an internal version of that

1378
01:21:37,640 --> 01:21:41,120
for client projects. 
And now I can save a lot of time

1379
01:21:41,160 --> 01:21:43,240
potentially. 
And if it works out, we can just

1380
01:21:43,240 --> 01:21:45,680
use that. 
Yeah, there's another component 

1381
01:21:45,680 --> 01:21:49,840
library and I'm blanking on it. 
I'm trying. 

1382
01:21:49,880 --> 01:21:53,080
To week or two ago. 
Yeah, I feel like it was a week 

1383
01:21:53,080 --> 01:21:58,040
or two ago. 
I think I tagged it recently. 

1384
01:22:00,160 --> 01:22:03,080
Mishka. 
Yeah, I remember seeing that 

1385
01:22:03,080 --> 01:22:05,680
one. 
Yeah, and that looks really 

1386
01:22:05,680 --> 01:22:08,640
promising too. 
It's a little, they're very 

1387
01:22:08,640 --> 01:22:11,080
early in their stage, but it it 
looks pretty good. 

1388
01:22:11,080 --> 01:22:13,560
So it's cool to see things like 
that pop up. 

1389
01:22:14,840 --> 01:22:17,200
Yeah, I think that one has a 
nice probably volume of 

1390
01:22:17,200 --> 01:22:21,280
components. 
They looked a little bit Java Y 

1391
01:22:21,280 --> 01:22:27,520
to me, like a kind of a kind of 
enterprise Y maybe. 

1392
01:22:28,240 --> 01:22:32,800
So like, yeah, if if that's just
like a starting point, you 

1393
01:22:32,800 --> 01:22:35,440
customize them, that's totally 
legit. 

1394
01:22:35,880 --> 01:22:36,640
Yeah, for. 
Sure. 

1395
01:22:36,680 --> 01:22:39,760
But yeah, I think for a 
component libraries, I think 

1396
01:22:39,920 --> 01:22:42,800
especially for people coming 
from outside of the Phoenix 

1397
01:22:43,200 --> 01:22:46,480
community, I think first 
impressions are super important.

1398
01:22:46,480 --> 01:22:51,040
So like what's appealing about 
Fluxon is that like the 

1399
01:22:51,040 --> 01:22:55,240
marketing site, the 
documentation examples are 

1400
01:22:55,240 --> 01:22:57,520
really nice. 
So that, you know, I think 

1401
01:22:57,520 --> 01:23:02,880
anyone who's Phoenix curious can
if that if that's one of the 

1402
01:23:02,880 --> 01:23:06,000
first things they see, I think 
they could actually be more 

1403
01:23:06,000 --> 01:23:08,520
excited that they don't have to 
like build a bunch of components

1404
01:23:08,520 --> 01:23:13,200
from scratch. 
Yeah, especially for us back end

1405
01:23:13,200 --> 01:23:15,240
engineers, it's nice to have 
components. 

1406
01:23:16,760 --> 01:23:19,200
You know, it's funny as I, I 
kind of, I guess I kind of 

1407
01:23:19,200 --> 01:23:24,160
started one from the front end. 
So even though it wasn't like a 

1408
01:23:24,160 --> 01:23:27,960
developer developer back in the 
Myspace days, I think I started 

1409
01:23:27,960 --> 01:23:32,400
getting CSS skills just from 
being able to write CSS on my 

1410
01:23:32,400 --> 01:23:34,040
Myspace page and like doing 
some. 

1411
01:23:34,160 --> 01:23:36,520
Dude, Myspace, that's hilarious.
On stuff there, yeah. 

1412
01:23:37,320 --> 01:23:39,680
I remember trying to hack things
together for that. 

1413
01:23:40,000 --> 01:23:46,080
I for whatever reason, like 
HTMLCSS, like all of that, it 

1414
01:23:46,080 --> 01:23:50,040
just hurts, hurts my brain. 
It just like like I can read it.

1415
01:23:50,040 --> 01:23:53,680
I understand what it's doing, 
but I hate like sitting down and

1416
01:23:53,680 --> 01:23:56,320
like, all right, I'm going to 
build out this whole view. 

1417
01:23:56,320 --> 01:23:57,880
It's just like it's annoying to 
me. 

1418
01:23:57,880 --> 01:24:02,240
I'd much rather like work on 
back end things and just. 

1419
01:24:02,320 --> 01:24:05,280
That's why we have components. 
I know I love components. 

1420
01:24:05,280 --> 01:24:07,520
Get some good components and 
then you know what? 

1421
01:24:07,520 --> 01:24:11,240
I'll tell you this for layouts, 
flexbox and grid are your super 

1422
01:24:11,240 --> 01:24:12,480
powers. 
Oh yeah, that's. 

1423
01:24:12,600 --> 01:24:17,520
Yeah, and the space between, so 
like SpaceX space Y if you don't

1424
01:24:17,520 --> 01:24:19,720
want to use flexbox and grid 
like those will get you a long 

1425
01:24:19,720 --> 01:24:21,920
way. 
That's pretty much all I use is.

1426
01:24:24,240 --> 01:24:28,440
Yeah, that's, I think that's why
it like just to like go back to 

1427
01:24:28,440 --> 01:24:30,840
the one opinion I have about the
core components. 

1428
01:24:31,120 --> 01:24:34,640
I think because they have 
margins that this is like a 

1429
01:24:34,640 --> 01:24:37,200
philosophical difference maybe 
that I have is like the 

1430
01:24:37,200 --> 01:24:39,320
component should have no margins
around it. 

1431
01:24:39,320 --> 01:24:42,120
It's just just be the thing 
which might have padding inside 

1432
01:24:42,120 --> 01:24:43,600
of it. 
It's like a card is going to 

1433
01:24:43,600 --> 01:24:45,760
have some padding inputs going 
to have a little bit of padding 

1434
01:24:46,000 --> 01:24:48,680
potentially. 
But if you want space between 

1435
01:24:48,680 --> 01:24:52,080
your items, yeah right, that's 
what the layout layout does, and

1436
01:24:52,080 --> 01:24:54,120
it uses flexbox. 
Yeah, exactly. 

1437
01:24:54,480 --> 01:24:56,960
To manage that, yeah. 
So yeah. 

1438
01:24:58,040 --> 01:25:00,760
Yeah, I like that. 
But yeah, seeing component 

1439
01:25:00,760 --> 01:25:04,440
libraries is very exciting 
because I I'm a big fan. 

1440
01:25:04,440 --> 01:25:07,960
Like I'll just grab, you know, 
Tailwind components and then 

1441
01:25:08,280 --> 01:25:10,440
slightly modify them so they 
work in heaps. 

1442
01:25:10,440 --> 01:25:14,160
But that's usually how I go 
especially like an admin 

1443
01:25:14,160 --> 01:25:17,040
dashboard. 
I'm grabbing just like the 

1444
01:25:17,040 --> 01:25:19,920
dashboard theme and going. 
Right. 

1445
01:25:20,800 --> 01:25:24,240
Just the sidebar and just get 
done whatever you got to do. 

1446
01:25:25,800 --> 01:25:31,920
100%. 
Yeah, well, Owen, I guess it was

1447
01:25:31,920 --> 01:25:36,400
awesome having you on and for 
everyone listening, go check out

1448
01:25:37,520 --> 01:25:40,720
Web auth N under score 
components on GitHub. 

1449
01:25:41,480 --> 01:25:43,880
And it's awesome. 
I'm going to. 

1450
01:25:43,960 --> 01:25:47,760
I'm definitely checking it out 
and I think, you know, you might

1451
01:25:47,760 --> 01:25:50,600
have talked me into starting to 
try out pass keys. 

1452
01:25:50,600 --> 01:25:51,920
We'll see. 
Nice. 

1453
01:25:52,320 --> 01:25:57,160
But I do agree simplifying 
logins with your platforms is 

1454
01:25:57,160 --> 01:26:02,240
super important, especially when
there's it's more secure than 

1455
01:26:02,240 --> 01:26:05,040
what most people are using like 
reusable. 

1456
01:26:05,600 --> 01:26:09,800
Like I love my dog passwords and
things like that so. 

1457
01:26:10,680 --> 01:26:14,680
There's one nightmare you can 
save yourself from, right if If 

1458
01:26:14,680 --> 01:26:17,960
you're purely in pass key land 
as a developer, you don't have 

1459
01:26:17,960 --> 01:26:21,080
to worry about your database 
leaking passwords. 

1460
01:26:21,520 --> 01:26:23,960
That is true, you just have to 
worry about all the other data 

1461
01:26:24,000 --> 01:26:26,160
you can link. 
All the other data, that's all. 

1462
01:26:26,160 --> 01:26:29,880
That's it. 
Yeah, well, what's funny like I,

1463
01:26:30,080 --> 01:26:33,520
I don't know, I might be a 
little paranoid, but I'll over 

1464
01:26:33,520 --> 01:26:37,880
encrypt things I think that I 
don't want in the wrong hands. 

1465
01:26:37,880 --> 01:26:44,720
So any customer information I 
like I just throw in like a I I 

1466
01:26:44,720 --> 01:26:48,120
always have my little like 
encryption function that I throw

1467
01:26:48,120 --> 01:26:50,520
in in my change set. 
So I don't even, it just 

1468
01:26:50,520 --> 01:26:54,080
encrypts and decrypts for me. 
And I always do that with 

1469
01:26:55,080 --> 01:26:58,720
probably more stuff than I 
should, but I feel like it's 

1470
01:26:58,720 --> 01:27:00,400
better safe than sorry. 
I don't want to. 

1471
01:27:00,440 --> 01:27:04,040
I don't want to be responsible 
for leaking my my customer or 

1472
01:27:04,040 --> 01:27:06,520
user base data. 
Right. 

1473
01:27:07,560 --> 01:27:11,080
But. 
Yeah, there's so many more 

1474
01:27:11,080 --> 01:27:14,840
episodes you could have just 
about like database encryption. 

1475
01:27:14,840 --> 01:27:19,360
There's like this is an endless 
anyone who's security curious 

1476
01:27:19,360 --> 01:27:21,320
like yeah, there's so many 
different kind. 

1477
01:27:21,320 --> 01:27:23,520
Of I'm security curious. 
I'm not smart. 

1478
01:27:23,520 --> 01:27:27,600
Security. 
I rely on smart people to tell 

1479
01:27:27,600 --> 01:27:32,240
me what not to do. 
I feel like I'm just smart 

1480
01:27:32,240 --> 01:27:35,800
enough to like finally 
understand like the spec for a 

1481
01:27:35,800 --> 01:27:38,000
thing. 
Yeah, I think I'm smart enough 

1482
01:27:38,000 --> 01:27:39,680
to know I shouldn't do 
something. 

1483
01:27:41,960 --> 01:27:44,640
I did feel super smart after. 
I was like I read the spec. 

1484
01:27:44,640 --> 01:27:48,880
I was like whoa, now I'm like I 
can grow my grey beard finally. 

1485
01:27:49,600 --> 01:27:51,640
Yeah, and get your black 
sweatshirt out. 

1486
01:27:52,720 --> 01:27:54,520
Yeah, I'm a hoodie. 
Yeah, you got a hacker mode. 

1487
01:27:55,200 --> 01:27:58,960
Hacker mode. 
This is my sweet new open 

1488
01:27:58,960 --> 01:28:01,600
sweatshirt. 
I came in the I came in the mail

1489
01:28:01,600 --> 01:28:04,680
yesterday, so that's exciting. 
You got a love tech swag. 

1490
01:28:06,040 --> 01:28:09,000
Yes, I I don't have my smart 
logic swag on today. 

1491
01:28:09,800 --> 01:28:12,040
Oh man. 
But the hoodies, nice. 

1492
01:28:12,720 --> 01:28:16,640
It's got too much Thai food on 
it right now, so it's due for a 

1493
01:28:16,640 --> 01:28:18,440
wash. 
Dude, something about good 

1494
01:28:18,440 --> 01:28:22,400
hoodies, everyone needs them. 
I think I have almost too many 

1495
01:28:22,400 --> 01:28:24,440
black hoodies, but that's all 
right. 

1496
01:28:25,960 --> 01:28:29,280
But all right, awesome. 
Thank you so much, Owen, and 

1497
01:28:29,280 --> 01:28:31,000
thank you everyone that has 
tuned in. 

1498
01:28:31,000 --> 01:28:35,080
And I hope you guys have a good 
weekend and I'll see you next 

1499
01:28:35,080 --> 01:28:38,480
week on the next podcast. 
See you guys. 

1500
01:28:39,600 --> 01:28:42,720
Thanks, Jacob. 
Testing.

