-
Notifications
You must be signed in to change notification settings - Fork 49
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
Documentation on how to prevent anyone from uploading files #190
Comments
this may be superficially solved by #123, otherwise something like #36, but that seems a bit advanced... If there is some setting that would enable people to only access a specific part of the website like |
Thanks for the in depth digging! Our main use case was to host docat behind some company firewall where you 'trust' everyone. There was a very deliberate trade off between simplicity/security so we would not recommend to host docat exposed to the internet as is (see: #36). If you really want to host it publicly you could secure all http post requests with nginx basic auth: |
Ok, so I figured it out, branch. However, I found that editing files in the Docker container was quite a hassle, so I ended up cloning the repo and building my own container, which is much more involved than it should be. Then I the following further options:
For the container with basic auth, |
I recommend you use Authelia or something similar to easily manage access. This is not really in the project scop imho. |
@feefladder you where on the right track but there is not really a need to build your own container. And the other option is to override and adjust the NGINX config inside the docker container. |
This may be already solved, or considered trivial by more experienced people, but I just want to host documentation for a project of mine.
If I now host my Docat website and link to a project, any user could click the home icon:


and then upload anything, since that does not require a token of any sort, if the version name is different:
besides this being a possible security risk I also don't want anyone to be able to upload files.
Otherwise, anyone would also be able to upload files using curl:
Either there is some obvious difference between my localhost website and a public one, but if anyone can also upload files from anywhere, I think this should be solved?
The text was updated successfully, but these errors were encountered: