I use GAE to run my application. My application uses a password to connect an external service. I currently store this password in the free text properties file, which is part of the sources. Because I share my sources in git-hub my passwords are exposed
Is there a way to store this kind of confidential information in the GAE configuration / environment (using the admin portal) or something like that. I think I can somehow store it in a DataStore, but I'm looking for something simpler than a heroku ENV solution
, .gitignore 'd, (, "private.py" ). - (, "private.py.sample" ).
.gitignore
class AppConfig(db.Model): pass = db.StringProperty() # ... cfg = AppConfig.get_by_key_name("MyFirstApplication") if cfg is None: cfg = AppConfig(key_name="MyFirstApplication") # this is initial run - request pass from user cfg.pass = userInput cfg.put() # here you can use your cfg.pass
Source: https://habr.com/ru/post/1794370/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1794365/are-there-any-w3c-recomendations-to-add-a-local-shared-object-flash-type-system-to-javascript&usg=ALkJrhiRuRBlfXg2cXUyUhDkhBVIBdME1AHow to send MailMessages using multiple threads? - multithreadingDisplay synced contacts on HTC Sense - androidDo I need to remove the Java runtime before installing the JDK? - javaМожно ли рассматривать клиент как тему? - multithreadingPython: a different constructor trace in a derived class - pythonWhy are these asynchronous RIA Service calls made sequentially on the web server? - c #Initial activity on the main screen - androidResizing an image using OpenGL - javaflash cs5: compiling fla with a huge internal library takes YEARS! - actionscriptAll Articles