Re: How to securely store passwords used in backend code

2021-01-10 Thread Peter of the Norse
I use multiple settings.py files to do this. Specifically, in my main one, I have what I consider the only acceptable instance of import *. import os if (os.getenv('PRODUCTION')): from .prod_settings import * else: from .dev_settings import * While dev_settings.py is in my repo, prod_se

Re: How to securely store passwords used in backend code

2020-12-14 Thread David Nugent
On 10 December 2020 at 01:18:16, Pankaj Jangid (pan...@codeisgreat.org) wrote: Fenrir Sivar writes: > I inherited a django app that calls private APIs in a view to fetch some > data. The credentials or api keys are currently hardcoded in the source, > making it difficult to share. > What is the

Re: How to securely store passwords used in backend code

2020-12-09 Thread Pankaj Jangid
Fenrir Sivar writes: > I inherited a django app that calls private APIs in a view to fetch some > data. The credentials or api keys are currently hardcoded in the source, > making it difficult to share. > What is the preferred way to store these kind of keys in a secure way only > accessible to t

Re: How to securely store passwords used in backend code

2020-12-08 Thread Kasper Laudrup
Hi Fenrir, On 12/8/20 7:28 AM, Fenrir Sivar wrote: I inherited a django app that calls private APIs in a view to fetch some data. The credentials or api keys are currently hardcoded in the source, making it difficult to share. What is the preferred way to store these kind of keys in a secure wa