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

validate policy role for user in a hierarchy #414

Open
AlvaroVega opened this issue Feb 4, 2019 · 3 comments
Open

validate policy role for user in a hierarchy #414

AlvaroVega opened this issue Feb 4, 2019 · 3 comments

Comments

@AlvaroVega
Copy link
Member

Study about a custom mode for pep to validate a policy role on a subservice where an user does not have an role assignation but subservice matches with a hierarchy

@AlvaroVega AlvaroVega self-assigned this Feb 4, 2019
@AlvaroVega AlvaroVega changed the title validate policy role for in a hierarchy validate policy role for user in a hierarchy Feb 4, 2019
@AlvaroVega
Copy link
Member Author

AlvaroVega commented Feb 4, 2019

Strategy: Iterate validation againts ServicePath suffixes until match it

i.e. ServicePath: /org/city/field
Apply validation for:

                                       servicepath /org/city/field, 
                                       servicepath /org/city, 
                                       servicepath /org

@AlvaroVega
Copy link
Member Author

For orion current FRN is created:
fiware:orion:<service>:/<subservice>:::

@AlvaroVega
Copy link
Member Author

Possible implementation: https://github.com/telefonicaid/fiware-pep-steelskin/blob/master/lib/services/validation.js#L167

Given a subservice composed by several '/', Iterate retrieveRequest from specific to generic

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

1 participant