In this episode of the Elixir Mentor Podcast, I'm joined by Owen Bickford, a Software Engineer at SmartLogic and co-host of the Elixir Wizards podcast. Owen shares his journey developing webauthn_components, an innovative library that brings passwordless authentication to Phoenix applications using WebAuthn standards. We dive deep into the technical challenges of implementing secure, passwordless login flows, and how Phoenix LiveView makes it possible to create seamless user experiences. Owen explains the benefits of WebAuthn over traditional authentication methods, common implementation pitfalls, and best practices for deploying passwordless auth in production. Our conversation also explores his experiences in the broader Elixir community, insights gained from co-hosting Elixir Wizards, and his perspective on the evolution of authentication in web applications. This episode offers practical knowledge for developers interested in modern authentication solutions and the growing ecosystem of security-focused libraries in Elixir. #ElixirLang #WebAuthn #PhoenixLiveView #Authentication #SecurityEngineering Connect with Owen: X: https://x.com/owenbickford webauthn_components GitHub: https://github.com/liveshowy/webauthn_components SUPPORT ELIXIR MENTOR Elixir Mentor: https://elixirmentor.com/ siteBrains: https://sitebrains.io ππNEED HELP?? Join the Discord Server: https://discord.gg/HcnjPsWATg ππAll my Links: https://linktr.ee/jacob_luetzow
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
We're going live, everything is smooth so far. Let's see. So yeah, link is on the link. Yeah, it'll be another link. Unfortunately, that's the only thing annoying with Restream, but all right, we are live. All right, guys, I'm sorry about that. Something something with ODS switching from my intro video to
these scenes. So what you see is just going to be Owen and I side by side. I won't be fancy and change anything, but let me do my little introduction. What's up? I'm Jacob Blitzo, your Elixir mentor, and welcome to another exciting episode of the Elixir Mentor Podcast. This is where we discuss everything related to Elixir, from interviews with enthusiasts, pioneers in the community, and to innovative projects and library shaping. Elixir's future. Today, I'm thrilled to welcome Owen Bickford, a software
engineer at Smart Logic and creator of web auth and components. Welcome to the show, Owen. Thank you for hanging in there with me as I struggled with technical difficulties, but I think, I think we're good now. OK, yeah, I'm glad it's not my fancy lights, you know, destroying the stream. Yeah, they're good. You couldn't turn those off. We need those. Yeah, we are live streaming, so I thought it was like mandatory. Yeah, you have to like, see how I got my little purple hue back
there. You got to do it. Why don't you start with just a brief introduction of who you are and what you do? Well, yeah, so, yeah, again, I'm Owen Bickford. I've I write Elixir professionally, I'm fortunate to say so. I've been at Smart Logic. It's a software consultancy, been with them since October 2022, no 2021, so three years
now. And before that I wrote a little bit of PHP for a couple years Before that I worked in customer service and tech support and like cable company tech support. So talking to people in their houses, getting things plugged in to the TV, that was and. Probably getting yelled at a lot. Oh no, Everyone was super polite and understanding and you know, you know, whenever things would stop working, that would totally be fine, you know?
Nice. So what's funny is I started, so 2021 is when I first started learning Elixir and that's when I caught the bug. So how long before that before you got like a full time Elixir job? Were you learning elixir and everything or did you learn it on the job? So I I definitely learned before so I I want to say so I did not go to college. So I dropped out of college after a semester just mostly because I could not wake up in time for classes, maybe for some
other reasons. So anyway, I, I and I didn't learn to vacuum either. Like I learned a bunch of my skills from people, you know, doing tutorials and sharing stuff on the Internet. So. But I think in earnest. So I had multiple attempts at learning how to program and learning how to write code over the years. But I think in earnest, the first time I really where things started to click and like kind of set me up for my career was 2014 or 15.
So I had kind of taken over this small project which was all, you know, just written with HTML, CSS and JavaScript. I knew HTML and CSS up to that point because I had learned that much over the years. But what we call programming, you know, writing logic and stuff, it was all kind of new to me. Interacting with databases, that was also new. So from that small project, I started watching more and more talks and reading more, more blog articles. So around that time I was
getting introduced to. I started with jQuery, then was getting introduced to React 'cause that was just kind of like blowing up a little bit around that era. So 20/15/16 I feel. Like those are normal steps to jQuery to the react. Exactly. Yeah. So and then and, you know, Fast forward today, I write as much vanilla JavaScript, right. If I'm writing JavaScript, it's going to be as vanilla as possible. Same same. I. Struggle with remembering how to write a lot of JavaScript actually.
And I like for like 6 years I was like, no JSAPI developer, yeah. Yeah, I the. Elixir bug? Yeah, it's funny, sometimes I'll forget. Oh yeah, it's it's not do and it's curly braces, that kind of thing. Oh yeah, many commas between these things in this module. But yeah, so like have a very zigzaggy kind of path to to where I'm at today. But yeah.
And then So what I do now is, you know, client work. So we we get projects that come in from a range of different bit types of businesses. Sometimes it's a startup, sometimes it's a well established company. You need to add a new product or new features to a product. So I get to kind of the nice thing about agency work and freelance stuff is you get to work on a bunch like a wide variety of applications. And so that helps you build up a lot of skills, I think, pretty quickly. Yeah, and you don't get bored working in your silo.
I've like, I have a lot of, I have trouble like I always have to have at least side projects going because I think that's the like, yeah, like you were saying, you learn so much quicker because you run into so many different problems and things to solve or just even using maybe different frameworks and libraries to like if one client needs like video streaming another. So like I'm guessing web auth and your components library was built as an internal tool,
probably for password auth. No, this was a side project. Yeah. I forget exactly what the impetus was. I think I had. OK, so let's go back a little bit. I think one thing I skipped over in my personal history was as I was learning, you know, this code and starting to think of myself as, you know, a future software developer, you know, eventually the Snowden leaks happened, right?
And so now I think a lot of folks who had maybe not prioritized security, suddenly it was kind of like front of mind. And so I remember around that time I started subscribing to, you know, podcast and reading more security content. So, so that kind of shaped my thinking about like how things I want to learn going in and then also how I prioritize, you know, the ways to solve problems.
And so, you know, something that had happened, you know, many times over the past few decades is data breaches. And as someone who is now writing applications where people are putting their real information and, you know, it's very sensitive sometimes, I did not like the the idea that I was going to have a database full of passwords that might be compromised someday. And I had a side project that was working on and wanted to, you know, because it's just kind
of a solo side project. I was like, well, I can actually just try out this new thing I keep hearing about web authentication. And I think around the time that I was really going in on this is whenever the, the term passkey started to surface. So. I'm going to be honest, like I know what it is and I know how good and secure it is, but I haven't done any work with like password list stuff. Like if you were just to explain it from like a maybe a macro level for everyone, you kind of,
it's kind of like like cryptocurrency, right? You have like a public key and like a private key or a device key, right? Yeah. So there's, I think how I how I describe this to like a non developer and then how I'd describe it to a developer. There's a couple ways to do that. So I think if I'm explaining pass keys to like an end user who's not writing code and not a security researcher, I would say it's kind of like, you know, we don't really go to banks anymore. At least I don't I don't haven't
gone to a inside of a building. I. Have to go to a bank. Right. But I remember when I was a kid, you know, you'd go to the bank and you'll see this in movies sometimes there's a safe, right? And inside the safe, there's a bunch of, what are they called safety deposit boxes, or they're boxes that each like an individual people basically rent or own or whatever inside the bank. And in order to get into your, your box, you, you have a key that you bring in, but you can't
just go in by yourself. The someone at the bank needs to have a key. So there's a bank key, then yours, there's your key. And the only way to open the box is to combine the keys, put them both in and turn at the same time. Then you get access to all the stuff inside the box. So web authen or what we call pass keys now kind of works the same way. There's a key that that a like a web service will have. That could be Google, it could be GitHub, could be your, you
know, your product that you're building. You're going to have a version of a key. And then your users are going to have a separate version of the key that whenever they're combined, they allow access to that person's account or access to the system, depending on, you know, your requirements. OK, so I was completely off then with a public and private key. No, that's so you're a developer. So now I can tell you how it
works in developer terms. And I'm so I'm not a security researcher myself. I can tell you kind of as a, as a person who's built a library, my, you know, my understanding here. So if you've ever signed into a machine with SSH or set up your GitHub account, it's using a very similar type of protocol, right? You have a public and private key. So the bank things like a metaphor like, yeah. So like in order to access your GitHub account, if you set it up with web authent or pass keys, then basically under the hood
what's happening is, you know, you're registering a key, which is your, your phone or your laptop. It has a secure, you know, trusted platform module where it, it does all this kind of hashing and, and it generates secrets. So your machine is actually responsible for generating this data, which to your human eyes will look like a bunch of random numbers and letters, but it will a. Very long string, right?
Right, right. And So what happens? Device. Right. So whenever you register, let's, let's imagine we go to example.com and we're going to register a new account. So Jacob, you built example.com, I'm going to go in as a user and I want to create a new account. So I'm going to go, you know, create account, hit register, whatever. And then it's going to ask probably for an e-mail, maybe for a username, depending on what your, you know, what example.com wants to use as its identifier.
And then instead of having a password field with pass keys, you could, you could do this with just an e-mail or just a username. Technically, you can do it without either one of those and you can kind of derive something else. But I think practically speaking, you're typically going to provide a username or e-mail and then you're going to click a register button and your computer's going to, your browser's going to pop up and say, do you want to register with this site? I'm kind of paraphrasing here, and if you use your Touch ID,
your Face ID, or whichever mechanism you use to authenticate on your operating system, then it's going to proceed and it will generate a private key which is stored on the device. And then a public key that goes up to the to theserviceexample.com. Soexample.com gets this public key and that's what goes in the database along with the key ID and some meta information. And then, you know, it's also, it's under the hood. It's going to start a session so that you can go on about, you know, using the actual site. But whenever you come back later
on, you're going to use the same device. You're going to sign in. And whenever you go to authenticate or sign in, your device is going to submit something called the challenge. There's a whole cycle of challenge and at a station basically where you're kind of Long story short, you're kind of checking whether these two things provide a valid signaturesodoesexample.com's public key match the private key that you're providing to produce
a valid signature. And then yeah, so that's I'm like hand waving a little bit like some of the details here, but that's at A at a high level basically. No, I think that's good because like the off end protocols of it's complicated. I haven't looked into it that much, but I know enough that it's it's difficult. So it's awesome that you created a library. You want to explain what your library is and how it works. Yes, yeah, it is complicated. So this is the one of the first,
not the only time, maybe not the first time, but like this is maybe the deepest I've gone into like W3C docs for a feature. So like MDN is like my preferred resource now for like browser AP is, but I had to go into like the actual specs to understand what are the options, like what are the types going in and out in a couple cases. So anyway, yeah, so the the project that I have is called Web Authen Components and what it is, it's just a collection of that's a few things. So it's a collection of live components that you can use
inside of a Phoenix live view. And it also has some mixed tasks for generating code. So if you run the mixed task, it's a whack, you know, mix, whack dot install, WAC dot install. And for now it's just a, you know, plain Elixir mixed tasks. I might come back and update this with Igniter. We could talk about that, but what what the install task will do is it will generate a migration for your users table, user sessions, user token.
So it's kind of like an alternative to the Phoenix Gen. auth mixed task because that one's going to give you, you know, a lot of code. It's going to give you essentially a a user authentication system that is still password based and it's going to be secure as as much as like that can be. But we can talk about like why passwords are not great, maybe in a moment, but web auth and components will do is it will generate that migration. It will generate a couple of live views, I think for
registration, registrating and authenticating. And it kind of like writes a lot of the boilerplate code for you. So the things that are under your control are the live view, the schema, the migration. Once you generate that, you can make whatever changes you like. And then anytime I push an update to the package, you would update the package in your, you know, mixed file or run mixed steps dot update and the components will be self-contained so those can
continue evolving and updating. And then you know, assuming there's no breaking changes, you know, basically you should have to make minimal changes to your application as the components get updated. Yes, that's great. Do you do you now do you allow full CSS or tailwind and class changes through your component? Or is it like the core component library where you have to go and alter everything to make it
work? So it in this case the the basically there's two visible components. There's a register button and an authenticate button and so you can override the text that appears inside of those. You can pass in Tailwind classes and override the defaults. So they have kind of like a semi opinionated. It's just like a Gray box basically. I don't even remember now if they support dark mode by default. I think it maybe I did write light and dark variance. So it may be the only thing on
your on your site that does support light and dark, which might be a problem. But yeah, so whatever overrides you want to pass in, you would just add a class attribute and it will kind of merge those in and overwrite. Like if I use a certain padding amount and you want to increase or decrease that. I'm using a package called Tails from Zach Daniel that intelligently merges new classes. So whatever class is going to
conflict with the class further up the list, the the original class will get. Oh. I'm going to have to check that out. But. How is that he has so much time? I think he, I feel like he builds so many things. Yes. Oh, that's funny. All right, so Tails, I'm going to check. That yeah, that's like that's an early install on every project that I do I'm like, I'm going to need tails because you know, otherwise you're you might pigeon your hole yourself on what classes OK like you want customization most of the time
so. Nice. Yeah, I'm going to check that out. I also need to check out your, your library because I'm, I'm building out a new site called site Brands and all it is is just a collection of web design. So you can, you know, filter by color, industry type and just kind of get design ideas. But I want to do I started doing just like the built in Phoenix password authentication. But I feel like password list is
just so nice when you don't have to worry about password. And like one of my early experiences when I was a young naive developer was a man in the middle, middle attack. And I'm sure like that's one of the concerns with password based off right You can you can grab the the readable password before it gets to your server. Right. So yeah, that I think that's a good thing to hit on is like, why, why, why is web auth in a thing?
What's wrong with passwords? So there, there are many, many challenges here. And this is like a big evolution. You know, it goes back to the start of, you know, computers and, you know, passwords are literally a thing that existed even long before, you know, centuries ago. Like if you were going to go to a place that that did not just allow anyone off the street, you would have to have some kind of code word to get in, right? That would be a shared code word where like you, once you know it, you know you get in. But if too many people have it,
then you got a problem. So anyway, just to like narrow it down to the scope of computer passwords, you know, the most naive approach would be, you know, a user sets up an account, they give, they give an e-mail address and a password, you put that e-mail address, then you put that password in the database just as it came through, right? I can't remember. What could go wrong? I think it was Uber. Was it Uber that they were storing? They weren't hashing passwords,
they were storing the actual readable passwords. And then somehow it also entered into their GitHub code base. It happens so frequently. It's this is this is one of those problems where it's just really hard for everyone who needs to get it right to get it right because you've got, you know, so many people involved with the company. So I don't know if it was Uber. I mean at this point I think almost every everyone was start. Up with a lot of funding. That's all I remember. But it's it's also a pattern.
So like, This is why I wouldn't really blame. Yeah, the whoever made that mistake should probably have some accountability. But also it's just hard to do the right thing sometimes. So you've seen a lot of data reaches where passwords were stored in plain text. This happens sometimes on Internet of Security devices or an Internet of Things devices. So like a lot of those devices sometimes just don't encrypt things going back and forth. That could even be passwords. You know, typically banks have
really great security. I think there might have been some examples of banks where, you know, secrets are not being encrypted correctly. There's password secrets for like accounts. There's also like your application secrets, which is kind of like a separate topic. But yeah, it's. So that's one problem with passwords is like you, you need to either use some tools you're really not supposed to like, just handwrite your own tools. For this, you're supposed to use something like. I'll always say like, if there's one thing you use a library for, it is currency things and authentication.
Probably time zones too. Yeah, time zones, yeah, if you care, right? But yeah, time. Zones are hard. Yes, yeah, let that let someone else solve these problems because you don't want to be getting bug reports about those types of problems. You know, you got features build. So so yeah, like Phoenix, the the Phoenix Gen. auth will do a good job of giving you I think it's using bcrypt. So there have been a like a yeah, there's been an evolution
of algorithms for kind of encrypting a password that a user provides you. So that whenever I, I go in as on@example.com and I register an account and give it a password or change my password later on, it's going to use salting and hashing algorithms so that it in the database, it just looks like a bunch of different letters. It's not what I actually typed in. So whenever I go back, then you've got to say, all right, you got to check whatever password the person puts into the site, You've got to run it back through those algorithms to compare it to the decrypted
password on the database and. One thing we should say here is like the difference between hashing and encrypting is you can't undo it, so you can't unhash a a hash password to get the readable plain text password again. It's true, there is. Well, I guess theoretically you shouldn't be able to. Yeah, the I think security is like just a continuous like cycle of we've solved this and oh, oops, look, there's a surprise like this wasn't this
didn't quite work. So one thing that happens is there's something called a rainbow table where eventually, like after enough data breaches, you find that people reuse their passwords across multiple sites. And you can like once you know that a password works on one site, you can kind of determine that this password looks like the one you've seen before. So I'm like really mingling what a rainbow table actually means. But like so but. Probably just a collection of
like all my hashes from different organizations, right? Right. And then maybe not. That I use the same password. Right. So if you yeah, for any passwords that have been compromised before where you know, like when it was encrypted, it looks like this, when it decrypted looks like this, then you have a table that can just say, all right, we found this this encrypted password in a database. Does it exist in an? Do we have it in an unencrypted format? If so, then we know how to get
into that person's account on this newly breached site, so. I always got so I always tell people that I recommend if you're doing password off that I always will hash it before it leaves my front end and then rehash it on the back end. And I did not realize how controversial saying that was. So many people tell me told me how pointless and useless doing that is. It doesn't make any sense. And I was like, well it does because it means that no one can
grab a plain text password because I don't need to know that. I just have to always make sure it's hashing the same way before it gets to my back end, but maybe I'm not even. Maybe it is silly to do that. I don't know, I, I, I would like to live in a world where we don't even have to think about that anymore. So that's, that's the future that I'm trying to, to help, you know, pave the way for. So that's, that's why web auth and components exist. So even just getting password
encryption decryption right is hard. But even when you do that, we have more problems to solve, right? So, OK, so we've encrypted and decrypted passwords, but now we know that like even those can be reused because of this rainbow table and, you know, algorithm sometimes turn out not to be secure. Also, computers are just more capable of cracking these things than they used to be. So that will always continue to be true. So there are other ways that the industry has tried to solve these problems before.
So these will sound familiar. Sometimes you sign into it, you sign into a site and it's it needs to send you a verification code. It can do that through your phone, through an SMSA message. You can do that through e-mail, you can do that through a one time password application, or it might even like pop up like Mac OS will like show a code somewhere on another device you've already authenticated with. I think the Apple one's actually pretty secure. The other ones have problems.
So with SMS codes, the problem is that someone can impersonate you whenever they call your cell phone provider and cell phone provider doesn't always have a great way of knowing who they're talking to on the phone. So that person can activate a different SIM card and start intercepting all of your SMS messages. I learned it. Happened to one of my old bosses, he got like a bunch of crypto wallets hacked because yeah someone duplicated his SIM card and mobile networks don't know a duplicate exists for like
quite a few hours so they can just hammer all your accounts with with everything. Yeah. And, and getting out of that once it happens, like recovering from that is it's kind of like identity theft, right? Because like, there's such a mess, you have to, it can take weeks or months. Oh yeah, it's a nightmare. At least you know you. Definitely want to use authentication apps it like either like Google or like I I'm a fan of 1 password anything like. That so those work really well. There's they're still not
foolproof or, you know, they can, there's still a compromises there. So, you know, an e-mail can be compromised. I think that's going to be clear to anyone who listens to this. Like, yeah, someone can take over your e-mail account. If it's not secure, they can start intercepting your security codes there. The I think 1 surprising thing is that with one time password codes, I think it's actually been demonstrated out in the real world that it's not just a theoretical vulnerability, but you get a one time password code for let's say google.com.
And you go to something that's like Google, but has an extra O in the middle. And it looks like Google and you type in your validation code after entering your password because they sent you an e-mail that looked legit. And so you click the link, then you entered all this information, you entered the 110 password code and now they have access to your account. So that's that's the vulnerability there is like. Whoever gets that code has full access, essentially. So, right, because they're basically kind of like men in in the middle, if I remember how
this works. So they're another man in the middle attack where they're kind of like passing this information to Google and getting a response. Once they have that that session, then they have access to your account. They can change your password. Yeah, I. Feel like that would be more I I don't know though we we should have Michael Lubis on but that would be more like a fishing exposition expedition, right? Because man in the middle is usually when someone is on the same network as you and they can intercept your connection they
like they. Can alter. Your packets and your Http://requests and things but. I think the man can be in the middle of a lot of places. So there may be like flavors of man in the metal, right, Right. Yeah. So yeah, I think there's it's just the you know, the the world is a dangerous place. So it's really hard to to get these things right. And I think that's just a kind of bring us back to pass keys. That does seem to be the beautiful thing about pass keys
as like the customer like user facing technology is that it's one of those rare security improvements that actually I think is actually going to be easier for end users at the end of the day. Like once it's, you know, widely supported, it's already supported by all the operating systems and browsers, I think. But once like. It basically ties you're off to your specific devices as well, right? So it adds that extra security versus just having a code emailed to you, right?
Right. So here's some benefits to the end user. They never have to think about their password again. If, if passkey is your primary authentication method. So if, if I am running example.com and we only support passkey authentication, that for now, that might mean that we're, we're not like appealing or like accessible to some users because they don't, they don't understand pass keys or get it or whatever. So maybe this is the thing that you would just do for a certain
audience. But I think once it's ubiquitous enough, the benefit is that your users never have to come up with the password or change the password. They don't have to worry about whether the password meets a certain requirements, has certain characters because those requirements are different for every single site. Sometimes the requirements that are on the screen like you meet those requirements and the site which checks your password anyway you're like why? Sorry. Guys, I suck at Rag X. Yeah.
So those kind of problems, those kind of like user facing challenges go away. There is one one trade off with pass keys which is mitigated, but you know, something worth considering. So yes, whenever you register a pass key, it is registered to the device. So the laptop or phone that you created it on. Now, practically speaking, everyone's going to have a cloud account backing up their credentials. So if you're on a Mac or iPhone, you're going to be using
probably the the new passwords app or iCloud Keychain or 1 password or I think keepasses a few other password managers out there. So if you're doing that and your credentials are synced to the cloud, then you can actually, you know, sign into that cloud account from any device and then authenticate to all of your passkey accounts using that like
your your cloud account kind of acts as the device in that in that scenario. And then you're relying on Apple or whatever, whoever is in control of your cloud devices. Right. So isn't, isn't. There a vulnerability in the in the the silicon in the M series, something with maybe it's not pass key, I don't know, I'm just rambling. Well, the short answer is yes,
there's always vulnerabilities, nothing's ever bulletproof. So, and what we're describing here is just like getting into the account. There's still, as a developer, you still have a bunch of work and thought about, you know, how are you going to securely store all the other information? Because you've got names, addresses, you know, potentially credit card numbers and stuff that you hopefully you're storing as little as possible. But whatever you do store needs to be secure in some way so that, you know, pass keys are
just like the opening the box to the account. As an engineer, you know, you got to think about disk encryption, HTPSTLS, all this other stuff as well. But this is like a little slice of the the pie that that we can actually work. You probably authenticate almost anyone to your system right? So you have to make sure your data doesn't cross contaminate either. That's another like especially with a lot of multi tenancy systems right? You have to be very careful about sharing the wrong information.
Right, we could. How many tangents do you want to go on? We just go on all. These things, yes, just the the show of well, what's what's nice with pass keys. So I think for the average user, like the average person I know, I don't know how many conversations I've had where like password hygiene is a is a favorite word of mine. I like to use that. But how bad? Like if you talk to your parents or like most of your friends that aren't computer savvy people, they use readable the same password on all their
things, right? They have their banking password that they use on all their banking systems and then they have. Their hosted note on their on their laptop so anyone at the airport can see it right? It's like I wanted to access your account. You look over sometimes and someones got a laptop open, they're doing stuff and you see their passwords on a poster and you're like. I like everyone I talked to, I was like, please just use a password manager please. But like it like you were saying, like passkey kind of solves that. You don't have to even think about it anymore. I guess like my biggest question
with it, it where do vulnerabilities lie for like adding a new device? How does that normally work? Like let's say I have an Android phone and an Apple phone. So like different ecosystems, they can't share the device key between, you know, other devices. How does like adding a new device work? Does it have to go through an already authenticated device? Yeah. So there's a few kind of angles on this. So let's say you you registered
forexample.com on your MacBook. So you're, if you're using iCloud Keychain, then your pass key is in the Apple ecosystem. When you're on your Android phone, assuming there's, I don't know if the, if they released a password like an Apple passwords app for Android. Let's assume no for the moment. There's a few ways to authenticate devices outside of that ecosystem. So whenever you go to example.com and it asks you to register or to authenticate, let's say you type in your your e-mail address and you hit
authenticate, it's going to prompt you and say I don't see a passkey registered for the site. Scan this QR code from your other device. So you could pull over your laptop, your iPhone, whatever, scan AQR code and it will ask, do you want to authenticate to this site that's making this request? If you hit yes, then that site will. It's kind of magical. It's bizarre that actually works like this. But once you approve on your authenticated device then that
other device would you know be authenticated as well. Magic Black Box. Right now, that's just signing into an account. Now if you wanted to actually add a separate credential the way this would work, and this is something I want to build into. So that wasn't assigned like a key to that device just doing that. That's like temporary. This could be a public computer. Think it was like a token, right? Like you're you're getting a token, you're establishing a session so you can operate on that device, but it's not like
you would have to do that again if you went back to the site later on. OK, got. You after the session ended. So now if you do want to create maybe a backup key or you want to register another pass key and another password manager or like say you're on Apple and you also have an Android device. Then something you would do is like example.com would would have like from your user profile, you would say like once you sign into your account, you
might have a section on your profile that, you know, list the first key that was created whenever you created your account. And then there might be a button that says add a credential or add a passkey or whatever, whatever you want to use, you know, to describe that. And then once you click on that, then you would go through the process of registering a second credential for the same user account on that service. OK, nice. Yeah, I like that. I feel like. I like, would you? Recommend only doing
passwordless off on on platforms that you build? Or do you always also offer e-mail and password? It I think it's really up to the your audience and your user base. So if you're building something very broad for like a social platform, maybe you just practically can't require pass keys yet because that might just create a bunch of customer support issues.
People like, well, I where do I put my password? Like you have to like be able to like message on the screen, like why is there new password? So that's something that the that the web auth and components generator does it, you know, on this on this live view has a little details element that says where's my password? And it tries to explain in a couple of sentences. This site uses pass keys for authentication and why it does that and links to read more. But if you're building something that's like just for developers
or maybe it's a bank or something where like, you know, your security environment is just like this, things are more critical than maybe. Then maybe you do have a a better case for just supporting pass keys or strongly nudging the users towards pass keys. I think if you need an escape hatch so that people can add can sign up with passwords, you're making trade-offs at that point. Because then as, as soon as you support passwords, then you're, you're back to potentially being
compromised or having people who are compromised allowing access to their accounts because there's the forget password. It's really hard to get password resets right, You know, if you're not using this something that's battle tested. So yeah, it's, it's not quite, it's not as black and white as I would like it to be. Maybe in a few years it will be just everyone's using pass keys and everyone gets it. But I think just progress tends to be kind of slow when it comes
to that. So we'll, we'll see. Yeah, well, I mean like I like my passwords, but I see the benefit to pass keys for sure. Do you enjoy typing your passwords? I prefer, well, you know, you have the one password plug insurance for everything. So I just like, you know, auto fills usually. But I hate using like Google and Facebook off, like I hate using previously created accounts for off. That annoys me because then you forget which one you used.
Like I don't know how many Gmail accounts I have and I'm like shoot which one did I actually auth in with? Right, Yeah, I, I see that sometimes I'm, you know, you owe off. I have to use owe off a lot for work. And sometimes I'm scrolling through a long list of Gmail accounts or like I've the same account that had different passwords over time and somehow that wind up with three separate entries in my password manager. So like, yeah, I've got some hygiene and some clean up.
I could do it on that. But but you know, there are people who have multiple accounts for for shady reasons or for totally valid, you know, personal or business. Reasons really shady. I just have a lot. Of. Hacker one at known. Black Hat Jacob at Gmail. Exactly. Just too many. I start too many companies. I think that's the problem. Yeah.
Well, and it's just this might be a tangent, like I just occurred to me that one other type of password less authentication. So another alternative to passwords other than passkeys is magic links. So this is something you get with Slack. There are actually some really nice packages in the Elixir ecosystem for this, where maybe I don't want to support passwords on example.com. I'm not quite totally sold on pass keys yet, but in the meantime I want to be able to
make sign in easy for my users. So one option is this magic link type of thing where someone enters their e-mail address whenever they're registering or coming back to the site. And then in order to validate the e-mail and also to give them a token, you send an e-mail to that to that address. And then they click the link or copy and paste it into the browser. And then you know, your system validates the token. And unless they man, if they're, you know, if everything's. And for anyone out there that's
developing or has developed like ATV app, if you don't use like magic links or you know like the. QR code. Dude, no one's no one wants like I will. I won't use an app on my TV if I have to put a password in because it's such a pain in the butt. I will say this. So this is something I wish I'd learned sooner. When you have an Apple TV nowadays, so you have an iPhone now I have an Apple TVI used to use all the apps just natively
on my TV. The magical thing about Apple TV is that anytime you're on a text box, it will pop up on your phone and say, would you like to use your keyboard? Oh, that's nice. So or you can use your, you know, the microphone button if you're just doing a search, but if you're entering a password or something that you need to actually do need to type in, you can just switch to your phone, type it in and it will populate that for the. TV Magic links are so easy to implement on that stuff, especially if you're writing a an app or a Apple TV app.
You know what? I'm at a prototype of a thing. So I was at a venue and we wanted to make it easy to connect to this app on the local network. And instead of showing the Wi-Fi, you know, name and password, I just generated a QR code. So you would scan the QR code, it would on your phone, it would ask do you want to connect to this Wi-Fi network? And if you did that, it would, you'd be on the network. Then you could go to my my local URL. And that was really, it was really nice. That's awesome. That was a package in the Elixir ecosystem, so. Awesome, so you could just you
just had like a local host app running for the event? Yeah. So you go on your Mac and you say, what's the local device name you want to use? And so it would be like Jacob's, Jacob's Party dot Local. Yeah. And then anyone who's on your Wi-Fi or local network can access Jacob's Party dot local. I do have that. So if you guys are ever on my Wi-Fi, it's a party. Yeah. No, that's a good idea. I love that it's definitely it
beats entering a password. I think I'd be more annoyed with e-mail and password off if I didn't have one password automatically entering my passwords 'cause I hate typing my password. Like I'm always annoyed when my touch ID has like when I have to use my password 'cause it's been 30 days or whatever. Yeah, that's all. Yeah, my I regret my password choice 'cause I use a pass phrase for a couple devices and some of the letters are just in the in the right arrangement where I always typo so it takes
ME3 attempts to get into that device. So I need to go back and maybe update that. But now I've got muscle memory. My what? My main password for entering for my password manager I always it's. It's 3 typos and then I get in SO. I thought you were about to announce it. I was like. Oh yeah. What's that password? Jacob's party. Jacob. 'S Party 123. I will say for one password they
added passkey support last year. So whenever I go to a a site that I've registered a passkey, as soon as I'm on the authentication page, if they've if the site has set this up right then automatically pass one password will prompt up and say do you want to sign in with your passkey? I don't have to type anything, I just hit enter or click the the nice purple button and I'm. Not like I always see it pop up, but I haven't been brave enough to start using it. I would say maybe try it on GitHub first because you know,
GitHub has all the flavors of authentication you could want. You can try it there and then if you don't like it or or whatever, like you make changes. But yeah, that's like that's like the first one that comes to mind is because I'm in GitHub all the time and anytime I need to re authenticate, it's just a simple button press. Yeah, that is nice. All right, I'll try it. You talked. To me that is something that so the web auth and components package is a set of components in a generator, so it will do the same thing if you added this to your site.
Whenever a person goes to the registry registration or authentication live view, it will their password manager may prompt them automatically. Do you want to sign in with this existing pass key? Also, I've got a web auth and components demo that will show you like. Here's what the example code looks like if you were to run this in a fresh Phoenix app. I'm curious how how does it integrate with an existing like Let's say I have the phoenix auth in my app already and I want to add yours.
Is it going to create new tables or does it use my existing user table? How does it work? You I think practically you just can't use the installer. You would have to manually add support. So you would you could use the components that I built. Integration to my user table. You would probably add a separate table, You would add like a user keys table, whatever you want to call it. So like you've already got users, you've already got user tokens which has like session tokens and stuff. So you would, you would need to
like add web all think components to your application, you know, take a look at the docs. I tried to make everything, you know, developer friendly at least. And so the things you would need to do is you would maybe set up these components in your live views. And then there's a handful of messages that go back and forth between the components. There's a whole dance and ceremony that happens whenever you're registering or authenticating. So the components handles many of the messages as they can that are going back and forth between the browser and the server.
And then at the point that like we've registered a user or we need to validate a user, it sends a message to the parent live view. So you would have a handle info in your live view that looks for these specific messages. And then you would go into your database and and insert or fetch users based on the the key ID and that kind of thing. So it would be, it can be done it. I don't think it would be the most difficult thing you would do in a year for for features, but you know, it's probably not
like a 15 minute process like if you were just running the installer. Yeah, yeah. I mean I'll probably do it. It just will be after I launch it. Yeah, like open a branch, if whatever, whatever goes wrong, you just delete, delete the branch, right? So yeah. Exactly. Unless you're going straight to maintenance. Have I started where I've done that a lot? Yeah. You're like, you know, this isn't a feature people actually need. We're not for all those features. What's that?
You got to pour pour one out for. Oh yeah, for. Sure, features in everywhere. Oh sad plat platforms I've built and features that have died. There's a whole graveyard. Yeah, I, I've got a few. I don't have like a whole family sized graveyard yet, but you know, I've got a couple notable tombstones. Yeah. I'm going to resurrect one or two of those eventually, so. Nice. It's always good to bring them back from the dead. I, I built like a fitness marketplace that is in in the
grave grave site now. It was a cool, it was a really cool product. I it was basically a marketplace for personal trainers. They could upload workouts, sell them, and then people could buy them, go through like check things, complete track, track their progress and all that, and then communicate with the coach. The problem was, well, the fitness space is crazy to there's so many fitness apps out
there, but dealing with wannabe influencers was the worst part of it. And I was like, I can't do this anymore. I did, yeah. I, I regret to say that I'm not actively going to the gym frequently right now, but there were a couple years where I, I was and one of them had a, a fitness app. Those videos are crazy. There's 'cause they're like, there was some curated content that obviously came from like
the, the gym franchise, but then the rest of it was just like anything they could find on the Internet that was about a particular exercise. And the quality on those was, you know, not great. Yeah, Yeah, it's hard because it one, it was like the you have the two sided equation, right with with being a bootstrapped company, it's really hard to do that because 1 you have to onboard content creators and then you have. To the video's like the most
expensive thing, right Yeah and then you. Have to onboard content purchasers and so it's hard. It was it was a very difficult, it was not a wise choice. I learned a lot. Marketplaces are one of the most difficult platforms to build if you're not VC funded. Yeah, yeah, that we could Oh man. So this is actually something that's just to do a little bit of a shameless plug, you know, Co host of elixir Wizards. Oh yeah, we've did I forget to got a season going too.
I think you probably did. No, I mean, you probably mentioned it, but we so like we're in the middle of a season right now where we're talking to people who've created packages or you know, created things with Elixir. So actually a lot of those of our guests so far have been people running startups or businesses using Elixir to some degree. And yeah, the, I think the most interesting thing for me is someone who did kind of like toy with the idea of starting a business is the bootstrap versus VC decision. Because that's like bootstrap
gives you the most kind of like creative control and freedom to just build the thing you want to build. But VC gives you the maybe the opportunity to actually build it sooner, even if it's not exactly what you want. And there's a lot of trade-offs on both sides. But yeah, that's that's been a fun kind of thing we've been talking about a little bit. On this, yeah, that's cool. Yeah. I mean, it is hard. Like VC gets it done fast and lets you hire people that are good at what they do, but then you usually have to have some
sort of planned exit in five to six years where you can next your investors money. And I maybe it's just me, I think of this in terms of like, who's the boss? So if I'm bootstrapping, I'm the boss, but also my customers are basically my boss because like I'm going to have to build whatever they want. Otherwise something to last. If it's BC, then I've got like there's another boss in the equation and maybe multiple other bosses in the equation.
So it just complicates things. But it's totally legit to like get funny if you, I think, especially if you have clarity and like there's a market for the thing you need. You just need like just to like you need labor and money to get it out the door. It's totally legit to do that. I'm not against it, I'm just scared of it to be honest. Yes, yeah. Either way, it's you know it's not going to be easy no matter what, right? Yeah, for sure. Yeah, we.
No, go ahead. Well, I had a thought and it like the orange, you know, I don't know if you know the thing with orange cats, there's like what single brain cell in universe and only one gets it at a time. That's just my life story right there. Yeah, I just had an orange cat moment where I was like I lost my my brain cell. I do that all the time it's horrible. What Is there a road map or anything for authen or now? Why did I forget your?
Web Authen components. Authen components, Yeah, OK. Yeah, so web authen under score components if you're looking for it for it online. So, yeah, it's open source, it's the repos available. I've got a, I'd say a healthy list of issues. Eleven of those right now. I think the, the most urgent one that I want to tackle next is issue #85. So I want to review and improve security. So, you know, I, I got some
good, really good feedback from, I want to shout him out. Holden Olette is that one of our security researchers in the in the community. And I want to make sure that I, I think I implemented some of the feedback. I just want to make sure I, I got it right specifically with like session tokens, I want to make sure that those are as secure as possible. I want to make sure, you know, I'm not vulnerable like this package isn't vulnerable to cross site scripting or CSRF attacks. So I just want to go back and, you know, before I mark it as, you know, one dot OI want to make sure that I'm comfortable,
that it's secure. And also I just want to have more people using it and reporting back that everything's working or they found a problem on a just need to have more time of it out in the wild so that we can know that it's ready. The it's a chicken and egg problem though, because something like this is like really important and they're going to be a lot of people that just don't want to use it until it is one O So, you know, I mean. Security vulnerabilities, They're scary, right? Yeah. That's like, I know you're to be
scared of them, but I'm not smart enough to probably figure it all out on my own. You know, I depend on those smart security guys. Right. Yeah, that's, yeah. So I'm, I'm so glad that people way smarter than me came up with this API, that it's supported in all the browsers now. So Safari car blocks. How is cross browser compatibility? It's good or is it still an issue? You know what, let's take a look at Can I use so caniuse.com web
authen. All right, everyone supports it except for Internet Explorer and for many. So you're probably not targeting those anyway. I'm a big if you're a live view app, you're probably not a problem for you. I think there's a explorer. Still a used thing. Have have you ever worked in enterprise? Didn't know I avoided at all. Costs, yeah. So that's probably where the
bulk of it is. If it's still being used at all, it's probably where it's still being, you know, just people who never upgrade their computers or enterprise. I thought it just like got renamed to Edge and Internet Explorer died but. Oh yeah, so, well, kind of. So Edge is actually a Chromium browser. It does replace Internet Explorer, but they're not the same internals. Got it. That makes sense. Yeah, yeah.
So the browser support is ubiquitous. I think it, it took Microsoft a while to get support added to Windows, but that happened some, some months ago. So yeah, you can use it on Mac and Windows for sure. I haven't run Linux myself in a while, but I do believe you can use pass keys on Linux machines as well. I think when you're dealing with custom computers, I'm not honestly sure what the impact is if you don't have like ATPM or
trusted platform module. OK. You know, I'm not sure if there's maybe that's just in all the new computers now, I don't know. But is that when you buy a maximum? Level or what is that? Yeah. So it's like a separate component on the motherboard typically. OK. Or the system on a chip potentially that will it's, you know, responsible for creating and storing secrets. Cryptography is typically what it's responsible for.
And so it keeps that out of band from the actual CPU itself so that you know, whenever, if you're if someone's got access to your kernel on your CPU accessing what's happening in memory. And theoretically at least, I think this keeps it a little bit. Harder to hack into. I want to M chips. I want to see what the vulnerability was for that. I feel like security slows it. Flawed M series chip encryption.
What is the vulnerability? Go fetch a side channel flaw allows attackers to extract secret keys from Max when they perform widely used cryptographic operations. And I know it was like in the whole M series thing and it can't be corrected because it's. Oh boy. It's hardware level. So it's not like a specific M model like M1 or M2 is. I think it. Aldens. Oh, what is it says?
Let's see, M2 was it's possible that it's in the M3. It's definitely M1 and M2 unpatchable because it's present present in the silicon itself, which seems crazy to me. Yeah, there's. I'm gonna have to dig this up as well. Hit go fetch. Interesting. OK, so go fetch is the attack that they're describing here. Looks like it's been
demonstrated on M1. Yeah, I'll have to give this a read. So that what this means to anyone who's listening is, you know, at least theoretically, it's possible that any credentials, this includes your SSH keys, anything that would be kind of managed by the TPM module could be compromised. So not just pass keys, but kind of anything going through that, which also could extend to open
SSL and some other things. Again, I'm I'm going to quickly get out of my depth here 'cause I'm not the security researcher on on this stuff, but me neither. So. I think that's it was you. Well, it's a good, good thing to include in the conversation is like, you know, again, like pass keys are just one part of the equation. So, you know, there's many ways that you can be compromised. Not to like good nightmares, but yeah. For talking about like custom
built computers like something like this where you're controlling the hardware, you got to be aware of what hardware you're using. There's that. There's also, you know, we are, you know, all of us, even in the Elixir ecosystem are using packages that hopefully we're all looking at the source code and keeping track of what changes between versions. But practically, you know, that just doesn't happen. So we're there's a certain amount of trust that we have in the tools that we use, but
they're, you know, supply chain attacks are a real problem. You know, there's you've got your basement hackers, you've got your, you know, state sponsored hackers. So if there's ever a reason to not ever write software, it's because these are some really hard problems and, you know, it's just complicated. But on the other side, like at least there's a lot of effort and, you know, research happening to make make it easier for software developers to do the right thing and to be at least as secure as possible.
Yeah, for sure. Well, one thing like what I like more about like Phoenix Live view is you're only going to have like probably like total in a big application, right, like 100 dependencies that I mean you probably don't know of all. That would be a lot, yeah. Yeah, but if you build a like a React app or something, you're going to have thousands that you don't even know what you're using. 10s of thousands potentially yeah, yeah, a single dependency can add can bring a
lot, a lot yeah. That that is something I like about our community is you'll hear it described sometimes as like not built here syndrome, but we tend to bring in just the dependencies we need. It's kind of like our Moi think our modus operandi in order to. Develop that way too, Like you shouldn't just bring a package in for something you can simply like write a very small module for.
Look that and tag the JavaScript community and see what happens. I know. Yeah, everything's like we're, I need to build an app. So I like this. You start with like what dependencies you you need. Whereas like I think for us, we kind of work our way to what dependencies we need. Well, like 2 like I'll just, I'll start building something right? And then I'll usually look to see if there's a dependency or, you know, a library made to do what I'm doing. I'll look through it. But then I also check like if it's just an APII need access to.
If it's not, if it's a well documented API, you're better off writing your own code and handling your own API requests. Yeah, that's that's a point that. Oh, no, All right, I got to. I got to get. Brian Carter Cartarella here saying. Hello. Hey, howdy, Howdy, let's. See, I think like the you're just better off writing your own
API wrappers or whatever you need unless it's a very complicated thing which there are circum certain circumstances where a library makes sense. That's in. That's a good, good thing to tie into the conversation here about web auth and components. Look, I just wrote this to make it easier. The browser AP is are the JavaScript is just using the browser AP is it's really all it is. It's just some live view components, live components that have some JavaScript hooks that
handle the communication back and forth between the browser and send up some results to the to the server. Anyone could look at the source code and kind of replicate it or, or whatever you could have, anyone could have written this. Like there have been a few people who've tackled, I think or attempted to tackle web authen support previously. And like what I'm using is I'm using a web authen. What's it called? Wax is the name of the package
that I use. So even that is like kind of abstracting some of the stuff that I have, some of the problems I have to solve. So that deals with more of the challenge and attestation structures that you need. But I guess the point I was going to make was that anyone like you don't have to to support by pass keys, you don't have to use this package. It's just going to get you up, up and running much faster because this is one of those cases where it there is actually, you know, a lot of steps to get this. Thing working is complicated too. And this is what one thing you
just hope a lot of community eyes are on packages like this, right? Because for authentication, yeah, grab your package for like currency math. I don't want to think about it because you know, you have, you can't use floats. You can't, you know, I don't want to create my whole system to add either strings or binary values or integers together and then worry about moving the decimal to the right place. So like those two things I'll always be quick on grabbing a well used library that I know
has gone through it. But other than that I try to not do it and I do I agree with you. I think the Elixir community is really good at not writing unneeded things or pulling unneeded dependencies into your projects. And I really like so like Paraxial is an awesome company and I love that you can have like an app audit and it tells you all the dependencies that are in your project. And if there's any concerning what is, what's the word I'm
looking for right now? Vulnerabilities, yeah. Vulnerabilities. So if there's any vulnerabilities, that tells you that you need to update your current version and things like that. And now, even if you're not using something like paraxial, you should keep a list of all your dependencies and track that somewhere, especially if you have a production app. Yeah, there's there are some tools we have here. So Paraxial's great. I think it's a service. It's got some open support source tooling as well. We also have so for security checks, we have Sobolo which
covers a lot of ground. Doesn't, you know, check everything that you need to know about, but you know, covers a lot of ground for you. We have there's I think it's a separate package. There's a a mix audit package, so you can check for vulnerabilities and the packages you have. Think there's also this one might be deprecated now, but I think there was a hex audit task. Those have slightly different purposes. I don't remember off the top of my head now, but I have those in CI on any application that I
have going out into production. And then I think there's a new one which is really interesting. I think it's Phoenix to band. So I think Alex and Eater released this as a comic, a premium package. So you you pay once and you get to use this package from a private repo. And that's really interesting. So it'll also give you like a dashboard of which traffic is being kind of banned from your site. Oh, nice.
OK. Cause a lot, a lot of that is just like people trying to hit your WordPress admin if you have any kind of machine on the Internet. That is all my all my requests, right? It's just people trying to hit WordPress. It's insane honey how many blocked requests I have every day. That's so one of the the first time I ever spun up a digital ocean droplet and was following instructions and ran failed to ban. I was like, whoa. Yeah. That's. Crazy. Well, what's wild is I remember before I started using paraxial
in my project, I just had like my logs up my digital ocean logs of, you know, traffic coming in and out. I was like, Oh my gosh, just like after just having something live for like maybe two hours, you start getting crawled by all the bots looking for your WordPress admin dashboard and credentials. It's insane. So you definitely need something. You don't want to just let your poor server get attacked all day. Right, like you want to.
You want to shed that load on your machine so that you can actually serve the the legit users who are trying to like, you know, give you money or, you know, use the thing you built. Yeah, I, I one day I made a video I had like 7000 blocked requests on a very low trafficked site. So it's like out of nowhere and I it would just got hammered for like 2 hours straight and luckily they were all blocked
requests so. You know one thing we didn't. Oh no, go ahead. This is so going back up the stack back, you know, I'm not talking about the like actual network request, but like the the like the applications we build. One thing that I've also kind of got in the back of my mind is authorization. So I've seen I've seen small apps with like manageable
authorization and I've seen large apps with I don't know how any of this works. I hope it works the way it's supposed to. And you know, you know, a mess. So I don't, I'm just kind of curious if you've had to build authorization systems, whether you use like protocols, like Elixir protocols. I think it's not like a very good kind of tool in this toolbox. And another one I'm kind of curious about using is maybe fun with flags. So you can kind of like
configure feature flags and turn features on and off for either individual users or users with like some attribute like a roll I. Was going to ask how does that? Is that like plug based then and you're going off of user roles or how does that work? These are both I think super flexible and like how you implement them so. I want to look what is that? What is the flag one called? Fun with flags. So really that package is is
conceptually very simple. It's just essentially it's a migration on a database with has a database table of features that can be turned off and on for either actors like so, individuals, individuals in the app, groups or, you know, percentages of users or groups. Oh yeah. Perceive time groups, actors. Oh, that's cool. OK. So like I've built this on a prototype app and what was really nice is like I built my custom live view interface. So you could just go in and like
toggle features on and off like immediately for for the entire site globally or for individual users or for groups. This is and this. Actually solves. A problem I was. Just trying to solve and I didn't know what I was going to do. I need to start this library. Yeah, they they do have a phone with flags UI package which is separate. It is like a just a controller based implementation and it is very admin looking. So it's, you know, kind of
bootstrappy looking, but. I mean this is yeah for what I need. It will all be admin level anyways, so. Right, well, and like building a live view for this wasn't like the hardest thing I had to solve either. So 'cause you're basically like. I find it harder to rework components and dashboards than just writing them the way I want them. I'm the same way when it comes to like core components. I I kind of want those to be in separate modules. I've run into problems where they're imported so that
whenever you're working on components and you've already got a bunch of code, it takes a few minutes to recompile, which is weird in an Elixir rapid that that thing ever takes so long. So yeah, I one thing I do here, this is so yeah, we on the big project that I've worked on, we switched to using aliases. So instead of like we removed the import for core components and then I think in our live view macro and you know my app web, it just aliases all the component modules that we have,
which that works pretty well. It speeds up compilation so that whenever you are working on components, you're not waiting on all of your live use to recompile. Default it's imported in like the layouts or whatever, right? Yeah, and it's convenient because you just open a bracket and hit dot button or dot, simple form and stuff. But the trade off there is that like as soon as you have dozens or hundreds of live views and you need to make a change to a single component, then all of those alive views have to be recompiled. So if you're iterating and
tinkering on things, that really slows you down. But even even the aliases, like that's manageable. But I think where I've landed now is I just write the full module name in my templates so I don't have to worry about imports anywhere. The language server whenever you're using an alias, even if it's aliased inside the live view module, if you're in the template, sometimes it will just inject this alias in your HTML code, which isn't valid.
Yeah, maybe I've got misconfigured, but yeah, I know what you're talking. About. It's super annoying. So that's why I just started using full module names. I was like, I'll just write, you know, my app web dot buttons dot button and a like language server knows like how to give me auto complete when I do that and B it's just obvious when you look at it. Now, for anyone who's looking at this template for the first time, they know exactly which component. And they know. Where I'm using, where it comes from, if they don't know and they can command click and get
to it, right? So I think that's a little approach up there, guys. Like when I, I'm not a very, I'm getting better, but like front end dev was never really my strength and I've been doing it more and more, but I got so confused when I was like using core components. They're like kind of magical at first. And then when I had to finally I was like, OK, I need to alter these things and figure it out. It took me a while to find them. And then like I mean I now I know like the Phoenix layout and
I know where everything is, but at the time I it took me a while to dig it up and figure out how it was working. Yeah. The, the core components are, I think it's funny, I think they were intended just to be like a reference or like a starting point. There are some opinions in those components that I strongly, some of them I strongly disagree with. Some of them are like, well, I would prefer to do it a different way. But I think the thing to remember is that those are basically copied from Tailwind
UI, because I think Adam Wadden actually did contribute some of this for Phoenix. I think it's a great, It's a great. Yeah, I'm so happy that that they're. Reference to write your own components, right? Because I didn't know how to write a component at least well until you start digging through the core components. Yeah, there's some things like, like there's a lot of margins and text sizes and colors in there that I think should just be. They're a little hard then. Yeah, yeah, they're all hard.
Like. So yeah, you want to be able to override things and you don't want to have all those baked into the components necessarily. So I'm still trying to find like the right balance of like, what do I put in an actual CSS file, which for now I tend to put like forms and table styles just for elements. So I'm not adding new classes or utilities. I'm just adding like tables should always like use this type of adding on their cells and stuff because like getting that right in components is hard.
Yeah, and think. About your Tailwind classes if you do it that way. Right. And you can just write a table HTML tag and like it's going to look right. And then it comes out, right, Yeah. Yeah. So there's some reasons for that. I think the one pin point I have with the form components and or components is like the everything's an input and like selects and text areas are different and check boxes and radios, but they're all kind of like abstracted into this one thing. And then also they include the
label. So like if you're trying to do something like, it works if you're just like rendering a list of fields. But if you need to have like a table or some kind of grid where you got like labels up here and puts down here and error messages in a slightly different place, then those components don't work. You got to either, you know, refactor them or write some new ones or something. So I'm on kind of a back burner is like I'm excited to see we've got some new component packages surfacing in the community. So Fluxon is interesting to.
Me yeah. Very cool to see component packages popping up, especially if they work well. Yeah. So I think I've glanced at Fluxon. I think I'm going to try that sometime over the holidays and see how that goes. It looks at first glance like it's nicely customizable and like it's got a good baseline that you can kind of override. So we'll see in practice if it kind of like carries forward
certain patterns that I like or don't like it's. Very pretty. Yeah. So yeah, I'm, I'm happy to see that it's a another, I think premium package. So you, you pay depending on, you know, how you're going to use it and then you're kind of off to the races. So that's nice because I was planning on building kind of like an internal version of that for client projects. And now I can save a lot of time potentially. And if it works out, we can just use that. Yeah, there's another component
library and I'm blanking on it. I'm trying. To week or two ago. Yeah, I feel like it was a week or two ago. I think I tagged it recently. Mishka. Yeah, I remember seeing that one. Yeah, and that looks really promising too. It's a little, they're very early in their stage, but it it looks pretty good. So it's cool to see things like that pop up. Yeah, I think that one has a nice probably volume of
components. They looked a little bit Java Y to me, like a kind of a kind of enterprise Y maybe. So like, yeah, if if that's just like a starting point, you customize them, that's totally legit. Yeah, for. Sure. But yeah, I think for a component libraries, I think especially for people coming from outside of the Phoenix community, I think first impressions are super important. So like what's appealing about Fluxon is that like the
marketing site, the documentation examples are really nice. So that, you know, I think anyone who's Phoenix curious can if that if that's one of the first things they see, I think they could actually be more excited that they don't have to like build a bunch of components from scratch. Yeah, especially for us back end engineers, it's nice to have components. You know, it's funny as I, I kind of, I guess I kind of started one from the front end. So even though it wasn't like a
developer developer back in the Myspace days, I think I started getting CSS skills just from being able to write CSS on my Myspace page and like doing some. Dude, Myspace, that's hilarious. On stuff there, yeah. I remember trying to hack things together for that. I for whatever reason, like HTMLCSS, like all of that, it just hurts, hurts my brain. It just like like I can read it. I understand what it's doing, but I hate like sitting down and like, all right, I'm going to build out this whole view.
It's just like it's annoying to me. I'd much rather like work on back end things and just. That's why we have components. I know I love components. Get some good components and then you know what? I'll tell you this for layouts, flexbox and grid are your super powers. Oh yeah, that's. Yeah, and the space between, so like SpaceX space Y if you don't want to use flexbox and grid like those will get you a long way. That's pretty much all I use is. Yeah, that's, I think that's why it like just to like go back to
the one opinion I have about the core components. I think because they have margins that this is like a philosophical difference maybe that I have is like the component should have no margins around it. It's just just be the thing which might have padding inside of it. It's like a card is going to have some padding inputs going to have a little bit of padding potentially. But if you want space between your items, yeah right, that's what the layout layout does, and it uses flexbox. Yeah, exactly. To manage that, yeah. So yeah. Yeah, I like that. But yeah, seeing component
libraries is very exciting because I I'm a big fan. Like I'll just grab, you know, Tailwind components and then slightly modify them so they work in heaps. But that's usually how I go especially like an admin dashboard. I'm grabbing just like the dashboard theme and going. Right. Just the sidebar and just get done whatever you got to do. 100%. Yeah, well, Owen, I guess it was
awesome having you on and for everyone listening, go check out Web auth N under score components on GitHub. And it's awesome. I'm going to. I'm definitely checking it out and I think, you know, you might have talked me into starting to try out pass keys. We'll see. Nice. But I do agree simplifying logins with your platforms is super important, especially when there's it's more secure than
what most people are using like reusable. Like I love my dog passwords and things like that so. There's one nightmare you can save yourself from, right if If you're purely in pass key land as a developer, you don't have to worry about your database leaking passwords. That is true, you just have to worry about all the other data you can link. All the other data, that's all. That's it. Yeah, well, what's funny like I, I don't know, I might be a little paranoid, but I'll over
encrypt things I think that I don't want in the wrong hands. So any customer information I like I just throw in like a I I always have my little like encryption function that I throw in in my change set. So I don't even, it just encrypts and decrypts for me. And I always do that with probably more stuff than I should, but I feel like it's better safe than sorry. I don't want to. I don't want to be responsible for leaking my my customer or
user base data. Right. But. Yeah, there's so many more episodes you could have just about like database encryption. There's like this is an endless anyone who's security curious like yeah, there's so many different kind. Of I'm security curious. I'm not smart. Security. I rely on smart people to tell me what not to do. I feel like I'm just smart enough to like finally understand like the spec for a
thing. Yeah, I think I'm smart enough to know I shouldn't do something. I did feel super smart after. I was like I read the spec. I was like whoa, now I'm like I can grow my grey beard finally. Yeah, and get your black sweatshirt out. Yeah, I'm a hoodie. Yeah, you got a hacker mode. Hacker mode. This is my sweet new open sweatshirt. I came in the I came in the mail yesterday, so that's exciting. You got a love tech swag.
Yes, I I don't have my smart logic swag on today. Oh man. But the hoodies, nice. It's got too much Thai food on it right now, so it's due for a wash. Dude, something about good hoodies, everyone needs them. I think I have almost too many black hoodies, but that's all right. But all right, awesome. Thank you so much, Owen, and thank you everyone that has tuned in. And I hope you guys have a good weekend and I'll see you next week on the next podcast. See you guys.
Francesco Cesarini, founder of Erlang Solutions, and Allen Wyma, hosts of BEAM There, Done That, join Jacob for a live crossover of both podcasts. They trade origin stories, compare what the Erlang and Elixir...
Jason Cohen, founder of WP Engine and Smart Bear, joins Jacob to talk about his new book Hidden Multipliers. They dig into why engineers avoid marketing, the onboarding math behind SaaS trials, finding your ideal...
Filipe CabaΓ§o, team lead on Realtime at Supabase, returns after two years to talk about his side projects: Vitro, a browser for every AI agent with a replayable timeline of what each one did, and Ampoule, which packs an...
Peter Ullrich returns to talk about Pushin.eu, the European GitHub alternative he's building in Elixir. Five months in, it has about 700 confirmed registrations after going viral on Hacker News, and Peter walks through...
Nathan Hessler, organizer of ExMex and RBQ Conf, is back four weeks out from ExMex 2026 in Austin. We cover MCing Rails World, how he picks speakers and keynotes for a single track, what running a Ruby conference taught...