Date: Mon, 26 Apr 2021 22:00:00 -0400
<div class="wp-block-jetpack-markdown"><h3>Summary</h3> <p>Any project that is used by more than one person will eventually need to handle permissions for each of those users. It is certainly possible to write that logic yourself, but you’ll almost certainly do it wrong at least once. Rather than waste your time fighting with bugs in your authorization code it makes sense to use a well-maintained library that has already made and fixed all of the mistakes so that you don’t have to. In this episode Sam Scott shares the Oso framework to give you a clean separation between your authorization policies and your application code. He explains how you can call a simple function to ask if something is allowed, and then manage the complex rules that match your particular needs as a separate concern. He describes the motivation for building a domain specific language based on logic programming for policy definitions, how it integrates with the host language (such as Python), and how you can start using it in your own applications today. This is a must listen even if you never use the project because it is a great exploration of all of the incidental complexity that is involved in permissions management.</p> <h3>Announcements</h3> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python and the people who make it great.</li> <li>When you’re ready to launch your next app or want to try a project you hear about on the show, you’ll need somewhere to deploy it, so take a look at our friends over at Linode. With the launch of their managed Kubernetes platform it’s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&utm_medium=rss">pythonpodcast.com/linode</a> and get a $100 credit to try out a Kubernetes cluster of your own. And don’t forget to thank them for their continued support of this show!</li> <li>We’ve all been asked to help with an ad-hoc request for data by the sales and marketing team. Then it becomes a critical report that they need updated every week or every day. Then what do you do? Send a CSV via email? Write some Python scripts to automate it? But what about incremental sync, API quotas, error handling, and all of the other details that eat up your time? Today, there is a better way. With Census, just write SQL or plug in your dbt models and start syncing your cloud warehouse to SaaS applications like Salesforce, Marketo, Hubspot, and many more. Go to <a href="https://www.pythonpodcast.com/census?utm_source=rss&utm_medium=rss">pythonpodcast.com/census</a> today to get a free 14-day trial.</li> <li>Are you bored with writing scripts to move data into SaaS tools like Salesforce, Marketo, or Facebook Ads? Hightouch is the easiest way to sync data into the platforms that your business teams rely on. The data you’re looking for is already in your data warehouse and BI tools. Connect your warehouse to Hightouch, paste a SQL query, and use their visual mapper to specify how data should appear in your SaaS systems. No more scripts, just SQL. Supercharge your business teams with customer data using Hightouch for Reverse ETL today. Get started for free at <a href="https://www.pythonpodcast.com/hightouch?utm_source=rss&utm_medium=rss">pythonpodcast.com/hightouch</a>.</li> <li>Your host as usual is Tobias Macey and today I’m interviewing Sam Scott about Oso, an open source library for managing authorization in your applications</li> </ul> <h3>Interview</h3> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you start by describing what Oso is and the story behind it?</li> <li>What was missing from the ecosystem of authorization libraries/frameworks that motivated you to create a new one?</li> <li>What are some of the most common mistakes that you see developers make when implementing authorization logic?</li> <li>At a high level, what is the process of using Oso to add access control policies to a piece of software?</li> <li>What is the motivation for using a DSL for defining policies as opposed to writing those definitions in pure Python? <ul> <li>How have you approached the design of the policy language, particularly deciding what constraints to impose?</li> <li>What other policy frameworks or dialects have you drawn inspiration from?</li> </ul> </li> <li>How is the Oso framework implemented? <ul> <li>How have the goals and design of Oso changed or evolved since you first began working on it?</li> </ul> </li> <li>What are some useful design patterns for integrating Oso into an application? <ul> <li>How does the type of application (e.g. web app vs. system daemon, etc.) affect the ways that Oso is used?</li> </ul> </li> <li>Given that Oso supports multiple language runtimes, what is involved in defining and enforcing policies that span multiple processes? (e.g. Python backend and Javascript frontend, Python microservice communicating with Go microservice, etc.)</li> <li>What are some of the common mistakes or areas of confusion for users who are getting started with Oso and Polar?</li> <li>What are some of the capabilities of Oso that are often overlooked or misunderstood?</li> <li>I noticed that you’re backed by some venture firms. What is your current product vision and how does that relate to your current open source goals?</li> <li>What are some of the most interesting, innovative, or unexpected ways that you have seen Oso used?</li> <li>What are some of the most interesting, unexpected, or challenging lessons that you have learned while working on and with oso?</li> <li>When is Oso the wrong choice?</li> <li>What do you have planned for the future of the project?</li> </ul> <h3>Keep In Touch</h3> <ul> <li><a href="https://www.linkedin.com/in/samjs/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">LinkedIn</a></li> <li><a href="https://github.com/samscott89?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">samscott89</a> on GitHub</li> <li><a href="https://twitter.com/samososos?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">@samososos</a> on Twitter</li> </ul> <h3>Picks</h3> <ul> <li>Tobias <ul> <li><a href="https://www.imdb.com/title/tt2076822/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Chaos Walking</a></li> </ul> </li> <li>Sam <ul> <li><a href="https://www.supergiantgames.com/games/hades/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Hades</a> video game</li> </ul> </li> </ul> <h3>Closing Announcements</h3> <ul> <li>Thank you for listening! Don’t forget to check out our other show, the <a href="https://feeds.fireside.fm/pythonpodcast/rss">Data Engineering Podcast</a> for the latest on modern data management.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&utm_medium=rss">site</a> to subscribe to the show, sign up for the mailing list, and read the show notes.</li> <li>If you’ve learned something or tried out a project from the show then tell us about it! Email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>) with your story.</li> <li>To help other people find the show please leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&uo=6&at=&ct=&utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">iTunes</a> and tell your friends and co-workers</li> <li>Join the community in the new Zulip chat workspace at <a href="https://www.pythonpodcast.com/chat?utm_source=rss&utm_medium=rss">pythonpodcast.com/chat</a></li> </ul> <h3>Links</h3> <ul> <li><a href="https://www.osohq.com/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Oso</a></li> <li><a href="https://www.osohq.com/developers/authorization-academy?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Oso Authorization Academy</a></li> <li><a href="https://en.wikipedia.org/wiki/Number_theory?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Number Theory</a></li> <li><a href="https://www.sagemath.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Sage Math</a></li> <li><a href="https://en.wikipedia.org/wiki/Role-based_access_control?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">RBAC == Role-Based Access Control</a></li> <li><a href="https://en.wikipedia.org/wiki/Attribute-based_access_control?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">ABAC == Attribute-Based Access Control</a></li> <li><a href="https://docs.osohq.com/python/learn/polar-foundations.html?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Polar Policy Language</a></li> <li><a href="https://en.wikipedia.org/wiki/Prolog?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Prolog</a></li> <li><a href="https://en.wikipedia.org/wiki/Logic_programming?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Logic Programming</a></li> <li><a href="https://www.openpolicyagent.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Open Policy Agent</a></li> <li><a href="https://aws.amazon.com/iam/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">AWS IAM</a></li> <li><a href="https://en.wikipedia.org/wiki/XACML?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">XACML</a></li> <li><a href="https://research.google/pubs/pub48190/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Google Zanzibar</a></li> <li><a href="https://www.rust-lang.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Rust</a></li> <li><a href="https://webassembly.org/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">Web Assembly (Wasm)</a></li> <li><a href="https://oauth.net/2/scope/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">OAuth Scopes</a></li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&rec=1&url=https%3A%2F%2Fwww.pythonpodcast.com%2Foso-open-source-authorization-episode-312%2F&action_name=Extensible+Open+Source+Authorization+For+Your+Applications+With+Oso+-+Episode+312&urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&utm_source=rss&utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />