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

Allow only localhost to modify central database #63

Closed
petteripitkanen opened this issue Aug 5, 2019 · 1 comment
Closed

Allow only localhost to modify central database #63

petteripitkanen opened this issue Aug 5, 2019 · 1 comment

Comments

@petteripitkanen
Copy link
Collaborator

Currently all changes that any client makes get synchronized to the server and all clients by PouchDB. Restrict this by allowing only clients from localhost to modify the central server database (with npm run migrate and npm run cli). This is the first step of implementing #40.

@petteripitkanen
Copy link
Collaborator Author

Fixed by #66, the PouchDB way is to specify admin user and create a design document with validate_doc_update function for restricting write access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant