-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add docs for protected storage level #626
Conversation
Codecov Report
@@ Coverage Diff @@
## master #626 +/- ##
=======================================
Coverage 87.28% 87.28%
=======================================
Files 72 72
Lines 3428 3428
Branches 652 652
=======================================
Hits 2992 2992
Misses 419 419
Partials 17 17
Continue to review full report at Codecov.
|
After some experimentation and code-reading, I'm having trouble figuring out how one user might easily access another's protected storage items, since the Storage class hardcodes the current user's identity pool id in the _prefix() function. It may not be worth adding protected to the docs unless there is a workaround. My workaround would be to use the public level, and add my own prefixes (e.g. Cognito user pool |
@powerful23 does your pr for configurable prefixes address this? |
We need provide an option for people to pass |
@powerful23 does this pr address that? |
@mlabieniec no that's about auth. What I mean is to do like
In that way one is able to read other's protected object |
Thanks, waiting for |
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
I noticed that the code in Storage.ts supports protected content, while the docs do not. I added minimal content to docs files, and updated the api comments in Storage.ts.
Note: I had to use
git commit -n
because the tests look to have been broken by previous commits.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.