Keep sensitive information out of conf.py
hejops opened this issue · 2 comments
hejops commented
In order to make conf.py
more portable across systems (e.g. via git repos), sensitive information such as PHONE
, ENC_KEY
, etc should be stored in a separate file.
TruncatedDinoSour commented
yes obv
with open(
os.path.expanduser("~/Ari/passwd/phone_number.n"), "r", encoding="utf-8"
) as pn:
PHONE = pn.readline().strip()
this is why code as config is so nice, this is what i do
thanks for the concern though
hejops commented
Oh yeah, good point, didn't cross my mind at all. Thanks for reminding me!