Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3647

Storing REST API credentials safely for access in a Python environment

$
0
0

I have a number of REST APIs from a software program (ex: Tradingview)

I would like to store the API credentials (e.g. keys, secrets) safely.

I had thought about placing them in a Database table - but - I am not totally fond of placing clear text in a table.

I already know about using OS Environment Variables:

[... snip ...]import osimport sysimport logging[... snip ...]LD_API_KEY      = os.getenv("BINANCE_APIKEY")LD_API_SECRET   = os.getenv("BINANCE_API_SECRET")

where keys are stored in a file - but - as mentioned before, I have a number of API keys.

Just leaving them on a server (in clear text) - even though the file is hidden - is not sitting well with me.

Is there any other way to store API Keys?


Viewing all articles
Browse latest Browse all 3647

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>