Code Story · Transcripts

S6 E18: Never Rebuild Permissions Again: Engineering Full-Stack Authorization and Policy-as-Code with Or Weis of Permit.io

May 17, 2022 · 34:35
Listen to the episode Download .txtDownload .vtt
Or Weis

So the idea is full-stack permissions. It's a solution you can bake into your software once and have it make your software elastic enough to meet the demands that come down the road. Just like you don't want to build your authentication from scratch, just like you don't want to build your analytics from scratch, just like you don't want to build billing from scratch. None of these things that I'm mentioning are new for you. You've seen them in a lot of applications. But every time you saw them, some poor schlep of a developer had to build them from scratch. The idea is really straightforward. It's easy, it's future-proof, and it enables you to focus on actually building your own product. My name is Or Weis, and I'm the co-founder and CEO of Permit.io.

Noah Labhart

This is Code Story, a podcast bringing you interviews with tech visionaries who share in the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host, Noah Labhart, and today I'll help Or Weis create the last solution you'll need to implement permissions in your application. All this and more on Code Story. Or Weis has been a programmer or engineer since the age of five. He started playing with DOS commands super early in his life, and he made a significant leap in his professional skills when he joined the IDF. Post that, he worked for a startup to build containers, before they were commonplace, followed by co-founding Rookout, a company who defined the production debugging space. You might recognize the name as I interviewed his co-founder earlier on. married to another software engineer, and dabbles in writing science fiction. He hopes to eventually write a book that overlaps with his professional interests as well, kind of like the Phoenix Project. While he was building his startups, he quickly found himself annoyed with having to build and rebuild permission sets or authorization into every solution he made. Since he couldn't find someone building something like this, he decided to create a permissions solution for the last time. This is the creation story of Permit.

Or Weis

I've been building applications for as far as I can remember myself. I kind of touched on that before. As part of that, I've been building access control roles, approval flows, APIs with management. A lot of those like a thousand times, if not more. And I was already kind of aware of how annoying that is and not wanting to do it at any point that I had to build a product. It was always the last thing I wanted to do, but I always had to. In my previous company at Rookout, it really brought it to a crescendo for me, because I ended up rebuilding access control five times for a company that wasn't even three years old at the time. And I also remember being surprised at every turn, like every time I had to rebuild this, I was I was firm in my belief in the previous iteration that, okay, now I've got this down to a bit. I've got this right. We won't have to rebuild this ever again. It's perfect. And then you get like a curveball from your customers or your compliance. Like the last time was when Cisco, they came in and said, we want our own back office. We want to be able to manage users on our own. And I was like, crap. ground. There's no technically feasible way that I can take this architecture and replicate the back office and access control for it. I have essentially, my only option is to chuck it out the window and start from scratch. And when I got together with my co-founder Asaf, who, by the way, used to be a student of mine back in the intelligence corps, and he worked at Microsoft, Clarity, and Facebook, he worked on their developer tools and platforms, and he got to see how it really invest in this. It's really about using AI to translate access control back into organizational flows. Like for example, if an employee queries the database too often, there's not a specific rule for that, but there's an anomaly detection model that would detect that. And then that translates to asking his team lead or her team lead if that makes sense or not. And if they They should escalate privileges or maybe put a stop to that. Just like you don't want to build your authentication from scratch, just like you don't want to build your analytics from scratch, just like you don't want to build billing from scratch. So the idea is full stack permissions. It's a solution you can bake into your software once and have it make your software elastic enough to meet the demands that come down the road. When I say full stack permissions, that includes essentially three parts. infrastructure so the basic capabilities to bake into your product so it's mostly a micro service for authorization an SDK that you can mix and match this into various points in your code or into your API gateway or elsewhere we've adopted a project called OPA, and we've created a project called Opal, which takes OPA, which is a generic purpose decision engine we bring it to the application layer by updating it in real time in an event-driven fashion. The two following parts are, one, a back office. The organization or organization behind the product you're building can manage it together in an easy way and enabling all the different stakeholders. So it obviously starts with developers, but it quickly escalates to other players in the organization. So when you're building a product, when you're an organization building a product, to at least participate in this critical experience called access. And lastly, the customer-facing interfaces themselves. So user management with the ability to assign roles, API key management, secrets management, audit logs, the ability to see who did what within the system, and the ability per tenant for each of those tenants to be able to see what they did within their silo. None of these things that I'm mentioning are probably new for you. You've seen them in a lot of applications. But every time you saw them, some poor schlep of a developer had to build them from scratch. The idea here is really straightforward. It's easy, it's future-proof, and it enables you to focus on actually building your own product.

Noah Labhart

Let's dive into the MVP. So tell me about that MVP. How long did it take to build and what sort of tools did you use to bring it to life?

Or Weis

We initially started with a few design partners, two kind of larger companies and a very small startup. that we can find that kind of overlap, that mutual space that both parties kind of suffer from. We just started building it. We really stuck to done is better than perfect. But I think in the end we over-engineered it a bit. The basic essence of the product was the same. But we created two main things. One, an interface where you can, through a UI, change the policies for your application. And we create a basic role-based access control interface. The other one is the ability to combine it into an application and assign user management within the application through the permit system. The demo would go something like this. You go to the back office, you define your policies, you connect this through an SDK to the customer or demo application. That application also embeds a user management interface that is provided by permit. I mentioned before a lot of interfaces, right? and audit logs and all of those. So we tried to pick the core features, the most basic ones that we thought that would bring value to the table. And that was, we felt, at least user management and the ability to create roles for them. When we built it, one of the most interesting things is that we faced challenges ourselves. We chose to adopt open source projects. Like I mentioned before, we adopted a project called OPA. But as we were adopting it, specific challenge working with it. OPA was really built or really grew to focus on Kubernetes. But when you take this to the application layer, the pace of change is a lot faster. Like a user inviting another user or creating a new role changes the world picture dramatically and impacts the data that is relevant for authorization and maybe even the policy that that is relevant for authorization. We had to find a way to make it run faster. So we created a microservice architecture within what's now called Permit that enables you to use OPA in an event-driven fashion. What was interesting is once we'd done that, we realized this sub-part of the problem is relevant for a lot of players. So we decided to export it out as open source. And that's what became Opal, Open Policy Administration Layer. We're really happy we did that because that really enriched and sped up our conversation with the market. Opal is not even a year old, but it's already used by dozens of companies and is in production in amazing companies like Tesla, Zapier, Accenture and others. And those companies also provided a lot of feedback, a lot of requirements that really enabled us to both mature Opal and by proxy permit itself. We wouldn't be able to move that quickly and get that feedback so quickly just focusing on the MVP and design partners. That was basically a stepping stone or an acceleration path to working with the open source and starting to work with the overall wider market.

Noah Labhart

So then you've got your product working and then you've open sourced Opal, right? How did you progress the product from there and how did you mature it? And I'm curious, you know, from that point where you're getting the acceleration from open source and you have MVP partners, how did you build your roadmap and how did you decide, okay, this is the next most important thing to build or to address?

Or Weis

In general, I'd say our go-to-market motion is really connected and really based on product-led growth. I'm really gung-ho about it. And with developers, it's doubly so. So product-led growth, maybe I should explain the term first. Product-led growth means you put the product up front and you reduce friction as much as possible, enabling people to get a taste and interact with your product as early as possible. and you only layer sales on top of that. You start with the bottom-ups motion, getting the product to the hands of people as soon as possible. With developers, that's key because if there's one thing developers hate is having their managers telling them what to do. They want to pick their tech stack on their own. So when they adopt it and bring it to their managers, to the decision makers, to the buyers, that's a very positive motion. if it goes the other way around it's a very negative notion but by the way we also explore this initially even before our design partners we talked to CISOs we there was a period we thought maybe this is a kind of a classic Israeli cybersecurity company selling to CISOs when we talked to them they were like yeah we care a lot about this but we're not the decision makers the ones making a decision about this is R&D we can only float requirements to them so we really developers, starting with developers and their impact on all the rest of their organization. To sum that up, so we focus on product-led growth and we decided that our market interaction would start with that. So we initially did most of our growth through that open source project. Opal doesn't include a UI, but it's quite often that we find that people ask about a UI for Opal. And we thought that's, okay, that's an interesting point for people to learn about Permit. provide some UI as part of Opal in the future, but we know that that's a point where more questions come in and enable us to kind of broaden the horizon and offer more things that we can bring to the table. But then really quickly, we moved to self-service. As I said, again, with product-led growth, it's really about putting the product up front. So we really early on built a self-service where you can try Permit.io on your own. And we initially onboarded people in a kind of a sort of beta program. People that sign up on our website, we would cherry pick or randomly pick a few of them and give them access to the solution. And then most importantly, we just opened it up as soon as we could for everyone. That's the main way we learn about how the product should evolve. Seeing people interact with it, seeing what doesn't work for them, seeing what they're excited about and what they're disappointed about. That really drives our strategy and our roadmap. map. So we automatically prioritize things that come from customers on top. There's like a specific echelon within the roadmap that is dedicated to that. Then there's another echelon dedicated specifically to improving the onboarding experience. So looking at how people interact with the product, even if they're not fully engaged yet, we constantly look at that and try how to think how we can improve this, how we can reduce friction around those interactions. And then we layer more strategic flows. So adding more interfaces, adding more capabilities, connecting this better to GitOps, connecting this better to the open source offering, creating more open source offering. And at the end of the day, if I have to completely sum it up, it's a balancing act between what we perceive as our strategy, which is constantly being updated with our interaction with the market, direct market requirements that we get from our most important source, the users and customers themselves.

Noah Labhart

Well, let's switch to team then. So how did you go about building your team? And what did you look for in those people that indicated to you that they were the winning horses to join you?

Or Weis

In general, in an early stage startup, I think at least what I'd want is people that can lead on their own. by the cultural patterns, the culture essentially in the unit I served in, in the military, you really get a sense of what I call being down in the trenches together. So it's a sense of we're side by side, we're shoulder to shoulder, we're running against our own goals and missions, but we always get each other's back. And there's no hierarchy, like anyone wants to say something can, but while we're working shoulder to shoulder, still each of us has his own goals and we run independently. It's like you need to get there, if you don't get there people would die and there's no one else that can do it besides you. You want those people that will flourish in that environment, people that can charge forward and pave the way and stick the flag at the objective and get it done while still having the back of their colleagues. It's part of that I'm looking for people that can be that, that can be team players, but can also move and charge on their own. I don't know of a single person who likes to be micromanaged. And as a manager, the thing that I dislike the most is micromanaging people. And I think especially in an early startup, if you need to micromanage someone, even a bit, it's basically doomed. It would be better for the both of you if you split up early. I even try to find people that have the ability to move more freely. really. And I constantly try to push their boundaries. I say, okay, this is what you feel comfortable with managing on your own. Next task I'm going to give you, I'm going to give you even more space that you can maneuver in and see how far you can take it and gradually enable those people. The easiest way I know of finding people like that is finding people that you already worked with. People that you know that will be a good cultural fit. Our own personal networks were one way we brought in our early employees. And another thing is, which I'm also, I'm always positive about it. I'm really positive about finding opportunities. My kind of philosophy on opportunities is you don't get to choose them. You can choose your preferred flavor, but you can't expect the opportunity to align with that. You can try and then, once you get an opportunity, you can see if you can adjust it to your flavor. and when I come across opportunities I like to dive into them and I think I had quite a bit of luck with that as well finding some people that are early on in their careers they don't have a lot of experience but it's clear that they have a lot of passion and they have a lot of the right empathy to kind of work with a team and kind of fake it until they make it and actually make it eventually

Noah Labhart

Let's flip to scalability. So did you build this to scale efficiently from day one? And I think I may have a, my gut says the answer is yes, based on your early responses, but I want to see where you go. So did you scale this efficiently from day one or are you fighting this as you grow?

Or Weis

I think we scaled it or build it to scale too much even. We knew that we were designing it maybe too well, but we still did it. we tried to keep it simple. It's definitely more simple than some initial designs that we had on paper. I think we kind of took it too far to the left. It was too built for scale. That being said, I do think that there are some best practices that are always good to stick with. Still start with microservices architecture, even if you have just one microservice. Use things like monitoring tools and use cloud deployments like Fargate or Lambda. So you'll have elasticity kind of built in even if you don't use it. Aside from adopting the right tools and best practices, we really built it with an architecture that is aligned for scale and with features that were really aligned for scale. And we could probably made it simpler.

Noah Labhart

Well, Or, as you step out on the balcony and you you look across all that you've built, what are you most proud of?

Or Weis

I think in both companies, both in Rookout and now in Permit, the thing I'm most proud about is the people. People that I'm excited to work with, people that I feel are excited to be here and find value and passion in what we do. And just, you know, most of the time as an entrepreneur, and I think I have a The constant flow of events and challenges that arise, they basically blind you to what you're actually building. It's really hard to stop and smell the roses. It's almost impossible for me. Like things are moving so fast and there's so much pressure. But every now and then I find myself like sipping a cup of coffee and just looking around, seeing people smiling, working, running jokes together, ever demonstrating a new feature or meeting with a customer and seeing the excitement in their eyes. And then just for like a few microseconds, I get this flash of understanding. And those are like the most amazing moments. I wish I knew how to grasp them for longer. And having those moments and seeing that other people are experiencing them with me, if it's people in the company or for customers too. When I have those moments, that's when I'm the most proud.

Noah Labhart

Well, let's flip the script a little bit. So tell me about a mistake you made and how you and your team responded to it.

Or Weis

Honestly, we haven't done a lot of mistakes so far. Like we're pretty early on. I think also there's like mistakes like the one I mentioned before with the overcomplicating the tech stack. I think trying to be aware that we have that tendency and try to nurture the let's move fast and not necessarily dilly-dally around having it perfect as much as possible. So we try to, both I and Michael Varner and other team members, we try to identify that and comment on, can we make this simpler? Can we make it quicker? Can we cut some corners here? I think there were cases where we didn't respond fast enough or we didn't promote the feature the customer wanted as fast enough. And I think it's still early to say if it was in those cases, if it was a mistake on our part, it's possibly a mistake. Like there were cases where we missed out on having another adapter or another user. and for some cases we didn't reshuffle the current sprint to adjust to that customer fast enough but it's really hard to say if the alternative cost to shifting the focus at that moment was worth it or not i do think there are some cases that i'm kind of more inclined to think that i feel like they're missed opportunities we could have done better but i think it's kind of a a constant struggle. Now we know that there are features like these that customers would want. Some of them would find these as deal breakers. Some of them would find these as just nice to have. And obviously, that's a spectrum. So recognizing these early on and having at least the estimation of how much effort you need to put in to actually meet the customer demand, enable us to react better and more quickly when a new requirement like that comes in because we don't need to actually process it from scratch when it arrives because we already kind of thought at least on the basic guidelines of it and we can decide how to react in a more educated fashion as a result.

Noah Labhart

Well, what does the future look like for Permit, the product, and for your team?

Or Weis

What I'm really excited about this space is it's a huge problem now, like with microservices and more complex policies and compliance. It's already a huge problem now for companies to build that modern access control into their products. But what's really exciting is it's going to be even bigger several times over. So software is obviously eating the world. That's well known. own, but its software itself is also being automated. And if today when you're building a product, you're thinking, oh, it's mostly human users using my system, more and more it's becoming other applications acting on behalf of other applications on behalf of other applications on behalf of those users. For someone who's in the tech space, you probably noticed that for for every buzzword you pick, there's some startup or some company doing that buzzword with the combination of machine learning or an AI. If, for example, you ask Siri or Google Assistant to turn on the lights for you. So that's an application running on your phone, talking to Google or Apple Cloud, potentially talking to something like IFTTT or Zapier, potentially eventually talking to the cloud of the edge device vendor, so let's say Xiaomi or Yeelight or some other kind of vendor, eventually talking to the application actually running on the smart light bulb. So it's something like five to six different applications talking to one another to actually get something done. What those applications are permitted to do on our behalf and how they're allowed to talk to one another is already complex, and it's going to be a lot more like that. more automated machine learning agents talking to other machine learning agents. And so the permissions of what we allow them to do on our behalf, what we allow them to do interacting with other automated agents, that's just going to fill up the entire space. And to me, it's clear that if we don't have better controls, visibility, and interfaces to manage this as people, we'll basically be lost. And I'm really excited about building the basic building blocks for this, but also the interfaces on top that would make this complex problem a simple problem for people to use on a daily basis.

Noah Labhart

Let's switch to you, Or. Who influences the way that you work? Name a person that you look up to and why.

Or Weis

The person that really inspires me is Richard Dawkins. He's the author of The Selfish Gene and several other biology books. and in general the more I learn about biology and the more I learn about evolution the more I see similarities in how you do business and how you build software and for example connecting this to that previous point of not building things too complex or too perfect I think learning from evolution and how how things should look like is a perfect example. And I'll give an anecdote from evolution and I'll try and translate how it looks in software development. So that's an interesting bit of trivia. So there's a, obviously you'd guess, there's a piece of wire, neurons essentially, a neural path that runs from your brain to your larynx, enabling you to speak. How would you guess that path, how that wire goes from your brain to your

Noah Labhart

larynx. In my head, I see a direct line, but I take in biology, so I don't think that's probably true.

Or Weis

Surprising or unsurprising, it's not a direct line. So it goes from your brainstem down to your chest, almost to the middle of it, and then climbs back to your throat and larynx. And the same is true for a giraffe. Actually, there are studies that indicate that giraffes actually have a lag time in speech because of the length of the wire. And the reason for that is evolution doesn't go for perfect. It always optimizes locally. Evolution creates a spectrum of organisms, each one slightly more adapted, slightly more evolved than the previous one. a fish to a giraffe, you go from a fish to a slightly less fishier salamander thing and from that into kind of a lizard thing and you gradually go up the chain until you hit a giraffe or something else. And at each point, every point on that spectrum, there is an organism that is well suited and adapted for his environment and functions perfectly. Otherwise, it wouldn't procreate and the chain would continue. And as a result, every time evolution has to solve, obviously I'm putting solve in air quotes here, because it's not cognizant, obviously. But every time evolution has to solve for something that works now, and that also includes cutting corners. At no point can evolution go back and say, oh, I'll rewire that link to the larynx. it doesn't have that option it doesn't have the ability to zoom out and think about it all from scratch but it can continue to adopt that organism so it will continue to survive and work and it and the bottom line is everything every damn thing you see around you every life form every species everything was created this way and i always tell when we talk about this and And that challenge I mentioned before, I always tell people, if it's good enough for evolution and if it's good enough for life, it's probably good enough for us.

Noah Labhart

We talked about mistake earlier, but a little bit different spin. If you could go back to the beginning, what would you do differently or where would you consider taking a different approach?

Or Weis

I can talk maybe a bit about Rookout. I didn't fully understand what go-to-market means at that point in time. I had kind of a there like these really dangerous notions were spinning around there like if you build it they will come if you have a great product everything else would be great would be amazing that's such a high pile of of dung that I don't have enough vocabulary to describe how stinky that is and how How malicious that is for entrepreneurs. And I always, when I find people that revert to that saying, I try to gently but firmly wake them up from that notion. And I think it's really important to understand that there's a reason why we talk about both product market fit and go-to market fit. They're not the same thing, but they have a lot of repercussions and implications to one another. And I think one of the things I failed with at Rookout was, A, to understand that, distinguish, to distinguish between those two patterns and to understand that it's my responsibility to not only understand this, but to communicate this difference to my team, to my co-founder, to our investors, and to understand that there are minute aspects in opinion and in strategy that are dramatically impacted by that. And I think if I had the wisdom or that understanding, at that point in time, I would have made a lot of different choices. and that's why for so I said in a few few earlier questions I think I mentioned product led growth and how I'm gung-ho about it I I try to think that I'm doing I'm trying to do it better and learning from those mistakes and misalignments and misunderstanding of the market by sticking to the right go-to market and And it's elements very early on.

Noah Labhart

Well, last question, Or. So you're getting on a plane and you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world. Can't wait to show it off to you right there on the plane. What advice do you give that person having gone down this road several times?

Or Weis

So I won't mention names, but I saw a young entrepreneur that I thought has a lot of potential. I saw them posting a lot on social, kind of bragging, kind of basking in immediate success stories like doing a call with YC or getting some initial success with customers. And what I quickly saw is that it felt like Icarus. It felt like they're flying a bit too close to the sun. They're too excited about this. they're celebrating it a bit too much in a slightly too public fashion. In the end of the day, I think it correlates, I'm kind of connecting this to the classic rollercoaster aspect of being an entrepreneur. There's a lot of ups and downs. And I think entrepreneurs, like a young entrepreneur in the beginning, should really consider their psychology and the psychology of other people around them. For that entrepreneur that I mentioned, when things started to turn the other way around, when the roller coaster turned, they took it really hard. One, it's their own expectations that they set, and B, it's the expectations that they set for other people. And I actually think those are the most dramatic in impact here, because it's easy to console yourself. It's almost impossible to console someone else, and on scale it doesn't work. And if you, for example, if it's someone that you care about, if it's your partner, if it's your family, I always think of my mother. Like letting down my mother is so much more painful for me than letting myself down. I think it's really about managing the expectations for yourself, for your supporting environment and making it structured so you'd be able to do a long run. It's not just about the now, it's about a long journey and, uh, and sticking out with it. So people should pace themselves, should be aware that it's going to hurt, and they should be aware it's about the experiences and relationships they build and how they balance them through, through and for this experience.

Noah Labhart

That's great advice. Well, Or, thank you for being on the show today. Thank you for telling on the creation story of Permit. It was

Or Weis

a pleasure. Thank you for having me.

Noah Labhart

And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. Support the show on patreon.com slash Code Story for just five to 10 bucks a month. And when you get a chance, leave us a review. tremendously. And thanks again for listening.

Transcribed with Whisper and reviewed for names and terms; speaker labels are automatic and may contain small errors. Timestamps link to that moment of the transcript.