Skip to content

Conversation

@faceless-saint
Copy link
Contributor

Allow for filtered policy loading, so that the loaded policy is
a targeted subset of the policy in storage. This allows the policy
enforcement to more effectively scale for very large policies in
a multi-tenant environment by only loading the policies relevant
to the requested tenant.

To protect the full policy from accidental corruption, a filtered
policy cannot be saved back to storage.

@faceless-saint
Copy link
Contributor Author

faceless-saint commented Mar 15, 2018

This adapter now implements the new FilteredAdapter interface from #78.

Allow for filtered policy loading, so that the loaded policy is
a targeted subset of the policy in storage. This allows the policy
enforcement to more effectively scale for very large policies in
a multi-tenant environment by only loading the policies relevant
to the requested tenant.

To protect the full policy from accidental corruption, a filtered
policy cannot be saved back to storage.
@hsluoyz
Copy link
Member

hsluoyz commented Mar 16, 2018

I have merged the PR here: casbin/casbin#78 Thanks for the work. For this PR:

  1. Please modify all github.com/faceless-saint/casbin to github.com/casbin/casbin

  2. Please fix the Travis CI error.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.04%) to 75.978% when pulling 14e613d on faceless-saint:master into 64adc23 on casbin:master.

@hsluoyz hsluoyz merged commit 5226322 into casbin:master Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants