首页   注册   登录
Casbin = way to authorization
A place for Casbin developers and users
现在注册
已注册用户请  登录
sagarshah1983
Casnode  ›  Casbin

How to Model ABAC with data being fetched from database

  •  
  •  
    sagarshah1983 · 1个月前 · 62 次点击 

    Hello everyone, I am evaluating casbin for our authorization model. I understand that using casbin, we can define a model that combines rbac and abac. However, getting all results from db first and then performing abac check on every record could be performance overhead. What's the best way to filter the records from the source database itself based on permissions (RBAC/ABAC models) defined in casbin? So that we need to define policies only in one place?

    Any recommendations?

    62 次点击  ∙  0 人收藏  
    Tweet Weibo 忽略主题 
    1 条回复   1个月前
    hsluoyz
        1
    hsluoyz   1个月前  

    @sagarshah1983 Casbin is a memory-first policy evaluation engine. Casbin doesn't fetch data from DB in real-time when an enforcement request is coming. See: https://casbin.org/docs/en/policy-storage

    关于   ·   FAQ   ·   API   ·   我们的愿景   ·   广告投放   ·   感谢   ·   实用小工具   ·   0 人在线   最高记录 3   ·     选择语言  ·     选择编辑器
    创意工作者们的社区
    World is powered by code
    VERSION: 00d4f20 · 40ms · UTC 08:05 · PVG 16:05 · LAX 01:05 · JFK 04:05
    ♥ Do have faith in what you're doing.