SlideShare a Scribd company logo
Anders Eknert, Developer Advocate, Bisnode
Decoupled policy management and enforcement at scale
Microservice authorization with
Open Policy Agent
Open Policy Agent (OPA)
• General purpose policy engine.
• Decouples (most commonly, authorization) policies
from application logic.
• Provides a unified way of dealing with policies across the stack,
independent to othertechnology choices made.
• Use cases ranging from kubernetes admission control, microservice
authorization and data sources, to CI/CD pipeline policies.
• Vibrant Open Source community.
• Commercial backer(Styra).
Running OPA – “the distributed parts”
OPA canrunina numberofconfigurations,dependingonusecase
• Standaloneserver
• Sidecarcontainerinside pods
• Go library
• WASM
https://www.openpolicyagent.org/docs/latest/policy-
language/
“Rego was inspired by Datalog, which is awell understood, decades oldquery language. Rego extends
Datalog to support structured document models such asJSON.
Rego queries are assertions on data stored in OPA. These queries canbe used to define policies that
enumerate instancesof data that violate the expected state of the system.”
Rego policy language
The Rego playground - try it out!
https://play.openpolicyagent.org/
https://play.openpolicyagent.org
Data
Inordertomake informeddecisions,OPAneedsdata. Thereare manyway ofprovidingOPA withthis.
• Input (along with the request),including JWTs
• Push data into OPA
• Bundleserver(pull)
• http.send function
Policy management – “the centralized parts”
OPA delegatesmanagementresponsibilitiesusingseveralmanagement APIs
• The bundleAPI
• The decision log API
• Status and healthAPI
Demo
OPA server and simple policy authoring
Use cases and integrations
Conftest
Writetests onanystructureddata
Validating admission controller webhook
Mutating admission controller webhook
Integration with databases, and much more!
https://www.openpolicyagent.org/docs/latest/ecosyst
em
Microservice authorization
Running OPA as a sidecar
Demo
OPA runningas sidecarinthreedeployments,simulatingann-tieredarchitecture,where thefirstcallcomesin
totheAPItier,whichauthorizestherequest(datafromJWT) beforepassingit(includingtheJWT)forwardto
theorchestrationtier,whichdoesthesame thing,beforepassingitforwardtotheservicetier.
Each service/tier is responsible for authorizingthe request, given any unique
requirements it may have.
Demo
Finally
Thanks!

More Related Content

PPTX
Securing APIs with Open Policy Agent
PDF
DSO-LG 2021 Reboot: Policy As Code (Anders Eknert)
PDF
Open Policy Agent
PDF
Dynamic Authorization & Policy Control for Docker Environments
PPTX
OPA APIs and Use Case Survey
PPTX
OAuth2 Authorization Server Under the Hood
PPTX
GraphQL Security
PDF
Traffic Analytics for Linked Data Publishers
Securing APIs with Open Policy Agent
DSO-LG 2021 Reboot: Policy As Code (Anders Eknert)
Open Policy Agent
Dynamic Authorization & Policy Control for Docker Environments
OPA APIs and Use Case Survey
OAuth2 Authorization Server Under the Hood
GraphQL Security
Traffic Analytics for Linked Data Publishers

What's hot (20)

PPTX
Fire kit ios (r-baldwin)
PPTX
Furore devdays2017 tdd-2-advanced
PPTX
Vonk fhir facade (christiaan)
PPTX
Log analysis using elk
PPTX
Profiling with clin fhir
PDF
#OSSPARIS19 - How to improve database observability - CHARLES JUDITH, Criteo
PPTX
Jumpstart: MongoDB BI Connector & Tableau
PDF
Elk - An introduction
PDF
New Product Introductions - Minesoft
PPTX
FHIR Server internals - sqlonfhir
PDF
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
PDF
WSO2 Data Services Server - Product Overview
PPTX
Kantara OTTO slides
PPTX
Fhir dev days 2017 fhir profiling - overview and introduction v07
PDF
Lighting a Beacon: training for (future) implementers
PPTX
Gateways 2020 Tutorial - Instrument Data Distribution with Globus
PPTX
Gateways 2020 Tutorial - Automated Data Ingest and Search with Globus
PDF
Countering Threats with the Elastic Stack at CERDEC/ARL
PPTX
Demystifying messaging communication patterns
Fire kit ios (r-baldwin)
Furore devdays2017 tdd-2-advanced
Vonk fhir facade (christiaan)
Log analysis using elk
Profiling with clin fhir
#OSSPARIS19 - How to improve database observability - CHARLES JUDITH, Criteo
Jumpstart: MongoDB BI Connector & Tableau
Elk - An introduction
New Product Introductions - Minesoft
FHIR Server internals - sqlonfhir
What Is ELK Stack | ELK Tutorial For Beginners | Elasticsearch Kibana | ELK S...
WSO2 Data Services Server - Product Overview
Kantara OTTO slides
Fhir dev days 2017 fhir profiling - overview and introduction v07
Lighting a Beacon: training for (future) implementers
Gateways 2020 Tutorial - Instrument Data Distribution with Globus
Gateways 2020 Tutorial - Automated Data Ingest and Search with Globus
Countering Threats with the Elastic Stack at CERDEC/ARL
Demystifying messaging communication patterns
Ad

Similar to Opa microservice authorization (20)

PPTX
Securing APIs with Open Policy Agent
PPTX
Cloud native policy enforcement with Open Policy Agent
PDF
Cisco Connect Halifax 2018 Application insight and zero trust policies with...
PPTX
Data Domain-Driven Design
PDF
Advanced Automated Analytics Using OSS Tools, GA Tech FDA Conference 2016
PDF
Design patterns
PPT
Building Cyber-infrastructure at UNC-CH
PPT
A Framework for Geospatial Web Services for Public Health by Dr. Leslie Lenert
PDF
Crossing the Analytics Chasm and Getting the Models You Developed Deployed
PPT
Moore RDAP11 Policy-based Data Management
PDF
Big Data Technologies.pdf
PDF
Hoffman and Rajan "Metadata: The Importance of Interoperability, and Factors ...
PDF
WSO2 Machine Learner - Product Overview
PDF
Architect’s Open-Source Guide for a Data Mesh Architecture
PDF
BD_Architecture and Charateristics.pptx.pdf
PPTX
Bring N-Tier Apps to containers 2015 ContainerCon
PPTX
Avoiding the 927 Problem: Standards, Digital Preservation, and Communities of...
PPTX
Hughes RDAP11 Data Publication Repositories
PDF
CNCF Online - Data Protection Guardrails using Open Policy Agent (OPA).pdf
PDF
Maven and google pharma r&d (1)
Securing APIs with Open Policy Agent
Cloud native policy enforcement with Open Policy Agent
Cisco Connect Halifax 2018 Application insight and zero trust policies with...
Data Domain-Driven Design
Advanced Automated Analytics Using OSS Tools, GA Tech FDA Conference 2016
Design patterns
Building Cyber-infrastructure at UNC-CH
A Framework for Geospatial Web Services for Public Health by Dr. Leslie Lenert
Crossing the Analytics Chasm and Getting the Models You Developed Deployed
Moore RDAP11 Policy-based Data Management
Big Data Technologies.pdf
Hoffman and Rajan "Metadata: The Importance of Interoperability, and Factors ...
WSO2 Machine Learner - Product Overview
Architect’s Open-Source Guide for a Data Mesh Architecture
BD_Architecture and Charateristics.pptx.pdf
Bring N-Tier Apps to containers 2015 ContainerCon
Avoiding the 927 Problem: Standards, Digital Preservation, and Communities of...
Hughes RDAP11 Data Publication Repositories
CNCF Online - Data Protection Guardrails using Open Policy Agent (OPA).pdf
Maven and google pharma r&d (1)
Ad

Recently uploaded (20)

PPTX
Machine Learning_overview_presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Empathic Computing: Creating Shared Understanding
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Electronic commerce courselecture one. Pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Getting Started with Data Integration: FME Form 101
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
Machine Learning_overview_presentation.pptx
Big Data Technologies - Introduction.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Empathic Computing: Creating Shared Understanding
Agricultural_Statistics_at_a_Glance_2022_0.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Electronic commerce courselecture one. Pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
A comparative analysis of optical character recognition models for extracting...
Digital-Transformation-Roadmap-for-Companies.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Getting Started with Data Integration: FME Form 101
Assigned Numbers - 2025 - Bluetooth® Document
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Advanced methodologies resolving dimensionality complications for autism neur...
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation

Opa microservice authorization

Editor's Notes

  • #3: General purpose policy engine. Decouples (most commonly, authorization) policies from application logic. Provides a unified way of dealing with policies across the stack, independent to other technology choices made. Use cases ranging from kubernetes admission control, microservice authorization and data sources, to CI/CD pipeline policies. Vibrant Open Source Project with a commercial backer (Styra).
  • #7: VS ”old school” model where data is retrieved from permissions store