-
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
Host a demo somewhere #36
Comments
How about hosting a demo on Heroku? |
@dinakar29 any ideas how we can prevent this from getting abused? That is the main blocker right now for me. |
A few things I can think of:
|
We could just add an nginx with basic auth on all post requests, that would be pretty simple: |
Basic authenyification would not enable other users (on the hosted website) to be able to upload their files and be able to see their own documentation for the short timespan that their documentation is alive as in the example of @dinakar29. But that depends totally on what type of hosting we want to do. If, for example, the Docat documentation would be hosted in a Docat server on Heroku, that would also showcase Docat. Adding the possibility for other users to host their own documentation would bring much more security and thus complexity. But I'd be happy to work on an OAuth system that would need a username and password for claiming, uploading and deleting a project (and possibly limiting the number of projects of a user). Otherwise, Nginx basic authentification is also something I could do, because I would need to do that anyways for my own usecase. |
For this as demo, could be Using gatekeeper as sidecar inside k8s env is good to have as well to connect to external keycloak in production env. And it will be good to support natively in docat code with oauth2, to be more specific, i am interesting to connect it with keycloak (oauth2) |
@randombenj I think basic auth in nginx might not be enough because we still need to clean up old files created by visitors of the demo. I could image a cleanup job like @cicdguy mentioned. Maybe even a simple cronjob that deletes the documents every 10 minutes would be enough. I've seen similar things in other demos. Another idea: What about preventing users from uploading documents at all and we only show them a set of demo documents? |
Host a demo site, where you can see what docat is able to do live!
If we want to do this we may also have to implement some very simple authentication
(maybe with a token or something like that).
The text was updated successfully, but these errors were encountered: