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

Conditionally return object if related to subject via pattern #315

Open
bionicles opened this issue Mar 10, 2021 · 0 comments
Open

Conditionally return object if related to subject via pattern #315

bionicles opened this issue Mar 10, 2021 · 0 comments

Comments

@bionicles
Copy link

bionicles commented Mar 10, 2021

We often describe authorization rules in terms of graph traversals. Role-based access control and access control lists are not really suited for it

Example: Doctors who work on the care team for a patient or group of patients can view patient data including lab results, images, procedures, conditions etc

To describe all of these possible traversals specifically is impossible due to combinatorial explosion

Is it possible to express this sort of traversal with optional steps and branching steps:

Ex. ["Provider", "CareTeam", {"Group", None}, "Patient", {"Observation", "Condition", "Procedure", ...} ]

Could yield a vast array of possible traversals in one line of python itertools

Is it possible to conditionally execute dataflows if the flow-path from the requesting user to the requested data matches some generator of flow-paths?

That could make security rules a lot more expressive and a lot easier to maintain. Also could make this into a nice functional query language for databases.

What do you think?

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

No branches or pull requests

1 participant