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

[Cedar Doc Issue] Examples for more advanced use wanted #69

Open
per-oestergaard opened this issue Dec 6, 2023 · 1 comment
Open

[Cedar Doc Issue] Examples for more advanced use wanted #69

per-oestergaard opened this issue Dec 6, 2023 · 1 comment
Assignees

Comments

@per-oestergaard
Copy link

What were you trying to do?

Cedar is great; however, I struggle to see how it is used in more advanced setups. Let take a group chat as an example. A user can see all messages in the groups they belong to and post new ones to the same groups. In this case, users are many and groups are many, say at least a million of each. How would I solve that in a way that scales? I cannot load all messages from the backed (like this example) and check them with is_authorized() before returning them to the use. So do I dynamically create/delete policy rules pr. group when a chat group room is created or deleted e.g. keep policy rules in sync with my database? Or?

What is wrong and why?
Current examples and documentation only covers basic, more static, examples.

What do we need to do to fix this?

I would like to have an example of this or a similar setup, solving the same challenges.

@per-oestergaard per-oestergaard changed the title [Cedar Doc Issue] Examples for more advanced used wanted [Cedar Doc Issue] Examples for more advanced use wanted Dec 6, 2023
@AMZ-brandon AMZ-brandon self-assigned this Jan 2, 2024
@AMZ-brandon
Copy link
Contributor

I'll look into this, thanks!

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

2 participants