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

feat: download and get storage files as private #5192

Merged
merged 32 commits into from
Jun 22, 2021

Conversation

asbiin
Copy link
Member

@asbiin asbiin commented May 15, 2021

This close #987

It allows to store photos, avatars, and document privately in s3, and limit access to the file to the only user who owns it.
In addition, we can leverage the browser cache, which will increase speed view of Monica.

You can opt-out to the feature by setting FILESYSTEM_DEFAULT_VISIBILITY to 'public' - it will be 'private' by default.
The cache behavior can be change by defining DEFAULT_CACHE_CONTROL.

@asbiin asbiin changed the title feat: download and get storage file as private feat: download and get storage files as private May 16, 2021
@sonarcloud
Copy link

sonarcloud bot commented Jun 20, 2021

Please retry analysis of this Pull-Request directly on SonarCloud.

@asbiin asbiin requested a review from djaiss June 21, 2021 20:36
Copy link
Member

@djaiss djaiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A monster of a PR! Awesome job. A few comments.

app/Helpers/StorageHelper.php Outdated Show resolved Hide resolved
routes/web.php Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jun 22, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

82.8% 82.8% Coverage
0.0% 0.0% Duplication

@asbiin asbiin merged commit 7fdc445 into master Jun 22, 2021
@asbiin asbiin deleted the 20210515-private-avatar-documents branch June 22, 2021 16:37
@github-actions
Copy link

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profile Pictures Are Public (accesssable to anyone without login) In Docker Version
2 participants