tl-its-umich-edu / m-voice

Voice interface implementation for University of Michigan applications using Dialogflow. Currently focusing on MDining.
1 stars 2 forks source link

Configure user/pass rather than hardcoded #2

Closed jonespm closed 5 years ago

jonespm commented 5 years ago

The user name and password should be pulled in from an external source rather than hardcoding. Generally on Openshift these are via "secret" files or environment variables. It seems like the best way to do this on App Engine is reading from the DataStore, here's an example how this would work:

https://stackoverflow.com/a/35261091/3708872

If we did this is would only be deployable on App Engine but I'm fine with that for now.

jonespm commented 5 years ago

We might be able to locally test with datastore emulator, haven't tried this out yet. Should document if this is working. :)

https://cloud.google.com/datastore/docs/tools/datastore-emulator

jonespm commented 5 years ago

I also found this module that looked pretty good, but maybe we don't even need it. https://pypi.org/project/gae-env/

jonespm commented 5 years ago

Resolved via #12