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

dealing with "listing" apis #13

Open
chicco785 opened this issue Jan 21, 2022 · 1 comment
Open

dealing with "listing" apis #13

chicco785 opened this issue Jan 21, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@chicco785
Copy link
Contributor

Is your feature request related to a problem? Please describe.

APIs like orion have base end points for resource type that returns the whole content. Either these are blocked, unless a user has access to all entities, or content should be automatically filtered.

Describe the solution you'd like

Option 1. only who can list all resources of type entities and all resources of type entity type can access /entities and /types

Option 2. we compute the list of resources a user can access (is that possible with opa?) and manipulate request query so that data are correctly filtered based on that.

Describe alternatives you've considered

N/A

Additional context

N/A

@chicco785 chicco785 added the enhancement New feature or request label Jan 21, 2022
@chicco785
Copy link
Contributor Author

not relevant for the specific case, it is possible to manipulate headers and bodies in the response:
https://www.openpolicyagent.org/docs/latest/envoy-primer/#example-policy-with-object-response

@chicco785 chicco785 assigned Cerfoglg and unassigned c0c0n3 Jan 26, 2022
@chicco785 chicco785 added this to the 0.4 milestone Feb 8, 2022
@chicco785 chicco785 modified the milestones: 0.4, 0.6 Jun 14, 2022
@chicco785 chicco785 modified the milestones: 0.6, 1.0 Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants