-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Protect Uploads - download should not be possible without logging in #724
Comments
Absolutely agree! Almost think it should just default to requiring authentication. Do we want an option? I guess it doesn't hurt... |
That's what I'm thinking, protected status is enabled by default and admins have the option to allow anyone with a link to download them. |
Looks like this will involve modifying another meteor module: |
Disregard ;-) https://github.com/jalik/jalik-ufs/#setting-permissions looks to be exactly what I was talking about |
I have started working on this but could not find a way to detect if the request for the file is coming from an authenticated user. I wonder if that is related to the way the file endpoint is defined on jalik:ufs Any pro-tips @RocketChat/owners ? |
Is there any progress on this issue as it is crucial to our implementation? I tried disabling file upload in admin settings but with no effect. Still able to upload files when set to false.. |
@FlashGuy22 this should be ready by tomorrow. |
What happens here this is an issue if companys should use it. |
This is the output I see in the terminal:
This error crops up with code pulled only five minutes ago and the issue itself has persisted for about two or three days. |
Are guys running version v0.10.1 ? |
@engelgabriel: I'm on whatever version is the most current. I pull home the new code from development branch once a day. |
@Megatronic79 can you open an issue on our Electron project? @k0nsl how are you installing it? Are you using |
@engelgabriel [initiate a new screen session]
Fetch latest code from the primary branch:
Start it up:
...then detach screen, sit back and (hopefully) enjoy the result ;) [EDIT] The output of
|
@k0nsl what port are you running Rocket.Chat on? Meteor runs on 3000 by default, but you What is your Site URL config on your admin panel? |
@sampaiodiego just explained, the problem is the "space" in the file name. He is fixing it. |
this is now fixed on v0.10.2 Please reopen otherwize. |
Right now uploads to a Rocket.Chat instance are not protected, meaning anyone can download them without being authenticated. I feel this should be an admin option, to protect or not protect uploads and require an account to download them.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: