3dgeo-heidelberg / pytreedb

Python package providing a file and object-based database to store tree objects.
Other
32 stars 4 forks source link

Add API key protection to example API server #95

Closed bhoefle-3dgeo closed 2 years ago

bhoefle-3dgeo commented 2 years ago

Problem Our test instance should be protected with an API key. Currently it is completely open and can be accessed by anyone and also by bulk requests.

Possible solution: Protect the complete API with a key. Key has to be provided with each API request as argument (or similar). This key has not be linked to a user management. Simply, it can be one key (or a list of permutations) that can only be gotten behind a human-machine detection (e.g. CAPTCHA, (QR) code for smartphone, etc.).

Todo:

annachiu7 commented 2 years ago

I don't think key check should be implemented in the tests, as it will expose the secret when tests are updated to github.