-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Best way to add authentication to file retrieval? #3887
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
Comments
+1 I also need this for HIPAA Compliance. |
+1 Would be a really useful feature. Also, it looks like the tests should be added to parse-server/spec/ |
@dplewis Did this come up somewhere ? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm creating an app that requires HIPAA compliance. My issue is that while the Parse Objects containing references to the images are secured by their ACLs, the images can be accessed by anyone if the filename is known/guessed(very unlikely but possible).
I understand that for most applications this is secure enough, but for HIPAA compliance, I think those images need to be only accessible by authenticated users with the permissions required to access the referencing object.
Now I don't have much knowledge of the code base, but I'm planning on creating a PR for this. Here's what I've come up with:
authenticatedFileRetrieval
or somethingFilesRouter.js
changerouter.get('/files/:appId/:filename', this.getHandler);
torouter.get('/files/:appId/:filename/:referencingClass?/:sessionToken?', this.getHandler);
or use query parameters for the optional params. I'm not sure which would be more appropriate.getHandler()
ifauthenticatedFileRetrieval == true
query thereferencingClass
using thesessionToken
Maybe there's a better way to accomplish this? Or maybe someone can convince me that this isn't needed? Any input would be appreciated!
The text was updated successfully, but these errors were encountered: