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

Investigation: Support public data #73

Closed
jgadling opened this issue Jul 8, 2024 · 0 comments
Closed

Investigation: Support public data #73

jgadling opened this issue Jul 8, 2024 · 0 comments
Assignees

Comments

@jgadling
Copy link
Contributor

jgadling commented Jul 8, 2024

Right now Platformics assumes that all endpoints require a logged-in user:

https://github.com/chanzuckerberg/platformics/blob/main/platformics/codegen/templates/api/types/class_name.py.j2#L417

We have a use case where we'd like to use Platformics as a public data portal, so some data should be accessible to users without any authentication token.

What are our options for supporting public data and private data alongside each other?

  • Do we support flags in templates to en/disable requiring auth at codegen-time?
  • Do we support overriding dependencies in the running api?
  • Do we just generate an anonymous principal for non-logged-in users?
  • How do we mark public vs private data in the db?
  • What's the level of effort for implementing each of the proposed solutions?
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