This repository has been archived by the owner on Jan 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Authenticate file downloads - requires server updates to deploy #104
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
peetucket
force-pushed
the
authenticate-file-downloads
branch
2 times, most recently
from
July 25, 2017 18:34
1c248a1
to
6983a2c
Compare
peetucket
changed the title
[WIP] Authenticate file downloads
Authenticate file downloads - requires server updates to deploy
Jul 25, 2017
peetucket
force-pushed
the
authenticate-file-downloads
branch
2 times, most recently
from
July 27, 2017 18:14
619b4fe
to
d18c09f
Compare
peetucket
force-pushed
the
authenticate-file-downloads
branch
3 times, most recently
from
August 8, 2017 21:40
78f18f2
to
b4dd4ed
Compare
peetucket
changed the title
Authenticate file downloads - requires server updates to deploy
[WIP] Authenticate file downloads - requires server updates to deploy
Aug 9, 2017
peetucket
force-pushed
the
authenticate-file-downloads
branch
2 times, most recently
from
August 9, 2017 23:34
bf33558
to
738b294
Compare
peetucket
force-pushed
the
authenticate-file-downloads
branch
from
January 8, 2019 22:52
738b294
to
cd5f736
Compare
can this be closed and the branch removed? it's over 2 years old. |
I'll double-check with @hannahfrost about this and #149 ... if we don't feel concerned about the issues there were attempting to address, we can close. |
After some discussion with @peetucket, I propose we pick this work back up rather than dispose of it. There is good reason to make sure access to these files on the Hydrus mount is authenticated. |
peetucket
force-pushed
the
authenticate-file-downloads
branch
3 times, most recently
from
January 8, 2020 22:53
ec0fe87
to
3c9ce2e
Compare
peetucket
changed the title
[WIP] Authenticate file downloads - requires server updates to deploy
Authenticate file downloads - requires server updates to deploy
Jan 8, 2020
justinlittman
force-pushed
the
authenticate-file-downloads
branch
from
January 14, 2020 17:20
3c9ce2e
to
8e7f0f4
Compare
peetucket
changed the title
Authenticate file downloads - requires server updates to deploy
[HOLD FOR TESTING ON STAGE] Authenticate file downloads - requires server updates to deploy
Jan 23, 2020
peetucket
force-pushed
the
authenticate-file-downloads
branch
from
January 23, 2020 23:27
8e7f0f4
to
2b1e96e
Compare
peetucket
changed the title
[HOLD FOR TESTING ON STAGE] Authenticate file downloads - requires server updates to deploy
[VERIFIED ON STAGE] Authenticate file downloads - requires server updates to deploy
Jan 23, 2020
peetucket
changed the title
[VERIFIED ON STAGE] Authenticate file downloads - requires server updates to deploy
[HOLD] Authenticate file downloads - requires server updates to deploy
Jan 24, 2020
justinlittman
approved these changes
Jan 24, 2020
peetucket
changed the title
[HOLD] Authenticate file downloads - requires server updates to deploy
Authenticate file downloads - requires server updates to deploy
Feb 6, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #392
Verified on hydrus-stage
Deployment notes
/opt/app/hydrus/hydrus/current/public/uploads
symlink is gone./opt/app/hydrus/hydrus/current/uploads
symlink exists and goes to/opt/app/hydrus/hydrus/shared/uploads
, which goes to/data/hydrus-files
/opt/app/hydrus/hydrus/shared/public/uploads --> /data/hydrus_files
... note that because we don't symlink in from the currently deployed public directory anymore, leaving this symlink is not a security risk, but it should be cleaned up anyway to avoid future confusion:rm /opt/app/hydrus/hydrus/shared/public/uploads
Why the change?
Currently anyone can request download of any file that has been uploaded by other users (since they are all just dumped into the public/uploads folder), which is a potential security risk. This is an attempt to verify the person requesting to download the file (from within hydrus, not the stacks) is the one who owns it. To fix this, this PR: