Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate the XACML 3.0 policy into Casbin model & policy #1

Open
hsluoyz opened this issue Apr 1, 2021 · 11 comments
Open

Translate the XACML 3.0 policy into Casbin model & policy #1

hsluoyz opened this issue Apr 1, 2021 · 11 comments
Assignees

Comments

@hsluoyz
Copy link
Member

hsluoyz commented Apr 1, 2021

We need to finish the code in this repo.

See: https://stackoverflow.com/questions/58460359/converting-xacml-digital-policies-into-caspin-rulesets

Here's how to do it:

  1. First read the XACML 3.0 spec: http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html
  2. Then play with some XACML code and policy examples. There are a lot of such open-source code of XACML PDP engines like this one: https://github.com/authzforce/core . You can search it on GitHub.
  3. Try to map each element of XACML policy into Casbin's model & policy.
  4. Implement the translator code in this repo.
@hsluoyz hsluoyz self-assigned this Apr 1, 2021
@AaqibAhamed
Copy link

Can anyone guide me to fix this issue ?.

@hsluoyz
Copy link
Member Author

hsluoyz commented Apr 11, 2021

@nodece

@nodece
Copy link
Member

nodece commented Apr 11, 2021

@AaqibAhamed See https://casbin.org/docs/en/syntax-for-models for casbin model.

@AaqibAhamed
Copy link

@AaqibAhamed See https://casbin.org/docs/en/syntax-for-models for casbin model.

Noted.

@AaqibAhamed
Copy link

@AaqibAhamed See https://casbin.org/docs/en/syntax-for-models for casbin model.

Do i need create seperate file for each policy ?.Can you show me for example then I can complete entirely. Also version of xml as 1 in the code.I need some guidance
@nodece

@nodece
Copy link
Member

nodece commented Apr 11, 2021

@AaqibAhamed I am not an expert in XACML field, I think that XACML is very powerful, we can provide some examples of how to convert <Rule> and <Target> of XACML to Casbin. How do you feel about it?

@AaqibAhamed
Copy link

@AaqibAhamed I am not an expert in XACML field, I think that XACML is very powerful, we can provide some examples of how to convert <Rule> and <Target> of XACML to Casbin. How do you feel about it?

I also looking about it.I'm thinking from where to start. I havn't fnd any code that like Casbin Model in that code in XAML format.

@hsluoyz
Copy link
Member Author

hsluoyz commented Apr 11, 2021

@AaqibAhamed see my update: #1 (comment)

@AaqibAhamed
Copy link

@AaqibAhamed see my update: #1 (comment)

Noted with Thanks.

@tson1111
Copy link

Hi @hsluoyz , I wanna have a try on this issue.
I think it consists of the following three tasks (plz correct me if I’m wrong):

  1. Translate XACML policy into casbin’s model and policy
  2. Translate the request file into casbin’s format
  3. Verify the correctness of the result given by casbin with response file

@hsluoyz
Copy link
Member Author

hsluoyz commented Apr 22, 2021

@tson1111 yes, please go ahead on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants