fragilefamilieschallenge / metadata_app

Front-end for users to access Fragile Families metadata API
http://metadata.fragilefamilies.princeton.edu
MIT License
3 stars 1 forks source link

Explore Token-based approach to API access #53

Closed vineetbansal closed 6 years ago

vineetbansal commented 6 years ago

From @vineetbansal on April 13, 2018 15:19

Filtering db access by IP address prevents robust testing of the API (since the testing host on Travis needs to be instantiated on an ad hoc basis). This might also be useful in general to allow flexible access control. Investigate this along with off-the-shelf solutions for API generation over http.

_Copied from original issue: fragilefamilieschallenge/metadataapi#22

vineetbansal commented 6 years ago

Integration Testing now instantiates a copy of the db in Travis by loading a .sql file, so an elaborate workaround to access the production db directly is not needed. It's probably better to keep it secured behind SSH as we're doing right now anyway.