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 open endpoints to be 'configurable' #43

Open
iAmMichaelConnor opened this issue Jan 21, 2021 · 1 comment
Open

Allow open endpoints to be 'configurable' #43

iAmMichaelConnor opened this issue Jan 21, 2021 · 1 comment

Comments

@iAmMichaelConnor
Copy link
Contributor

At the moment, all routes are open.

Some open routes pose could result in a user's DB being corrupted. No private info would be leaked (because Timber doesn't hold any private info). But apps which make use of Timber's DB might fail to be able to 'spend' commitments if a DB is corrupted. They'd then need to re-download the entire merkle tree again (by having Timber filter the blockchain again).

How could the DB be corrupted? E.g. a user could accidentally push leaves directly to the DB by calling the PUSH /leaves route.

New 'configuration' options (which allow users to close certain endpoints) should be added.

@iAmMichaelConnor
Copy link
Contributor Author

@willKim19 tagging you for visibility :)

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

No branches or pull requests

1 participant