Vigyata.AI
Is this your channel?

How to Build Authorization like Netflix with Open-Source - OPA & OPAL

5.0K views· 185 likes· 7:10· Mar 8, 2023

🛍️ Products Mentioned (6)

Contribute to OPAL for free ► https://io.permit.io/contribute-to-opal Build Authorization with a no-code UI ► https://io.permit.io/use-permit Blog ► https://io.permit.io/netflix-blog-article Authorization is hard - and many developers don't realise that it's a fundamental building block of any application! Scaling it for a large audience is even harder. Writing your own, from scratch is almost impossible to get right. Netflix had to fix this problem for themselves, and they used OPA to write their own implementation. The problem is, they never shared it. INQUIRIES AND COLLABORATIONS ► grebowskifilip@gmail.com MY INFLUENCER MARKETING AGENCY ► https://mensoi.com Join my Newsletter ➡ https://shop.developerfilip.com/sign-up 🔥 Follow me on Twitter ► https://www.twitter.com/developerfilip Follow me on Instagram ► https://www.instagram.com/developerfilip Check me out on GitHub ► https://github.com/FilipGrebowski Music by @epidemicsound #developer #opensource #opal

About This Video

Netflix has over 220 million active users, and with that kind of scale, security isn’t just “nice to have” — it’s a fundamental building block. In this video I break down why authorization (who can access what) becomes increasingly important as a company grows, and why it’s not the same thing as authentication (verifying identity). I also explain how authorization can go way beyond “only paying users can watch,” like tailoring content by country and even adjusting pricing using purchasing power parity. Then I get into the real problem: writing authorization policies is hard to get right, especially at scale. A common approach is using OPA (Open Policy Agent), which is a powerful open-source policy engine that lets you define policy as code using Rego. But Rego adds a learning barrier, and Netflix didn’t want policy management to be limited to a tiny group of specialists. Their solution was to build a UI on top of OPA to abstract complexity, and then add unit testing to confirm the policy actually captured the intent. Finally, I show the open-source path that’s available to everyone: OPAL (Open Policy Administration Layer) from permit.io. OPAL wraps OPA with a layer that responds to live policy and data changes, keeping services in sync with the authorization data they need. It’s a great example of open source doing what it does best: transparent, community-built infrastructure that can make complex authorization feel dramatically simpler.

Frequently Asked Questions

🎬 More from Developer Filip