Re: Django SECRET KEY

2020-11-04 Thread Michael Rohan
/11/2020 1:54 am, Kegan Ronholt wrote: > > What is the best practice for hiding SECRET key in settings.py in > > production. I am finding all sorts of different ways to do it, but > > none seem to work. > > I keep it in a file left out of the repository but in a "stand

Re: Django SECRET KEY

2020-11-04 Thread Mike Dewhirst
On 5/11/2020 1:54 am, Kegan Ronholt wrote: > What is the best practice for hiding SECRET key in settings.py in > production. I am finding all sorts of different ways to do it, but > none seem to work. I keep it in a file left out of the repository but in a "standard" locati

Re: Django SECRET KEY

2020-11-04 Thread Abhishek Choudhury
/yesabhishek/ On Wed, Nov 4, 2020 at 8:30 PM Kegan Ronholt wrote: > What is the best practice for hiding SECRET key in settings.py in > production. I am finding all sorts of different ways to do it, but none > seem to work. > > > -- > You received this message because you

Django SECRET KEY

2020-11-04 Thread Kegan Ronholt
What is the best practice for hiding SECRET key in settings.py in production. I am finding all sorts of different ways to do it, but none seem to work. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Environment Variables for Django Secret Key etc On Windows 10 and Heroku

2020-09-14 Thread dum dum
ictor >> wrote: >> >>> Have you try googling your problem >>> >>> Victor >>> >>> On Sat, Sep 12, 2020, 9:34 AM dum dum wrote: >>> >>>> I tried to put my Django Secret Key in Environment Variables. >>>> >

Re: Environment Variables for Django Secret Key etc On Windows 10 and Heroku

2020-09-14 Thread coolguy
is something wrong with my Django Project. I don't know > what it is. > Still tinkering. > > > On Sat, Sep 12, 2020 at 9:38 PM Mbah Victor wrote: > >> Have you try googling your problem >> >> Victor >> >> On Sat, Sep 12, 2020, 9:34 AM dum

Re: Environment Variables for Django Secret Key etc On Windows 10 and Heroku

2020-09-12 Thread dum dum
ictor > > On Sat, Sep 12, 2020, 9:34 AM dum dum wrote: > >> I tried to put my Django Secret Key in Environment Variables. >> >> SECRET_KEY = os.environ.get('SECRET_KEY') >> >> I did save the SECRET_KEY on env var windows 10 like this >> [imag

Re: Environment Variables for Django Secret Key etc On Windows 10 and Heroku

2020-09-12 Thread Mbah Victor
Have you try googling your problem Victor On Sat, Sep 12, 2020, 9:34 AM dum dum wrote: > I tried to put my Django Secret Key in Environment Variables. > > SECRET_KEY = os.environ.get('SECRET_KEY') > > I did save the SECRET_KEY on env var windows 10 like this > [im

Environment Variables for Django Secret Key etc On Windows 10 and Heroku

2020-09-12 Thread dum dum
I tried to put my Django Secret Key in Environment Variables. SECRET_KEY = os.environ.get('SECRET_KEY') I did save the SECRET_KEY on env var windows 10 like this [image: image.png] When I tried to py manage.py runserver, I got this error django.core.exceptions.ImproperlyConfi

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-02-08 Thread Motaz Hejaze
gt;> >> >> >> >> >> >> >> >> On Thursday, 30 January 2020 12:41:01 UTC, Tom Moore wrote: >>> >>> Hi there, I'm following the guidelines by making sure the environment >>> variables are stored outside of the setti

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-02-08 Thread onlinejudge95
> > > > > > > > > > On Thursday, 30 January 2020 12:41:01 UTC, Tom Moore wrote: >> >> Hi there, I'm following the guidelines by making sure the environment >> variables are stored outside of the settings.py files. >> >> The proj

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-02-07 Thread Tom Moore
it. That helped me >> a lot when I started out >> >> cheers >> Chris >> >> >> >> >> >> >> >> >> >> >> >> On Thursday, 30 January 2020 12:41:01 UTC, Tom Moore wrote: >>> >>> Hi there,

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-31 Thread Mike Dewhirst
On 1/02/2020 2:24 am, Bill Torcaso wrote: A couple of years ago I posted on this topic to say that using ENV variables is dangerously subject to human error.  If it ever happens that (1) you put a server on the public internet with DEBUG on, and (2) a visitor can provoke a 5xx server error re

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-31 Thread Bill Torcaso
A couple of years ago I posted on this topic to say that using ENV variables is dangerously subject to human error. If it ever happens that (1) you put a server on the public internet with DEBUG on, and (2) a visitor can provoke a 5xx server error response, then all of your secrets will be du

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Michael Rohan
red outside of the settings.py files. >> >> The project is "dockerised" and so the environment variables have been >> stored in files *docker-compose.yml* and *docker-compose-prod.yml*. >> >> This includes things like the project's secret key, API keys, an

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Chris Wedgwood
so the environment variables have been > stored in files *docker-compose.yml* and *docker-compose-prod.yml*. > > This includes things like the project's secret key, API keys, and database > passwords. > > *My question is: * > • Just because environment variables are stored i

Re: How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Shaheed Haque
nt). But we can change that at will as our scale needs evolve. > This includes things like the project's secret key, API keys, and database > passwords. > > *My question is: * > • Just because environment variables are stored in .yml files, won't they > be equally ins

How to best secure environment variables (secret key, passwords etc.) stored in .yml files?

2020-01-30 Thread Tom Moore
things like the project's secret key, API keys, and database passwords. *My question is: * • Just because environment variables are stored in .yml files, won't they be equally insecure the moment I commit the project folder to a git repo (and especially if I push that repo to GitHub)?

Re: Django Login Secret key

2019-07-10 Thread Jani Tiainen
Oh you want to have false security. First this has nothing to do with Django and it's secret key. You can use any secret key in your case it would be user input. Also you can use any cryptography algorithm to secure your data in the database. And here is the problem - to make user exper

Re: Django Login Secret key

2019-07-09 Thread Sebastian Jung
I encrypt several fields in Database. Now it's possible that a Hacker get Database and settings.py. i want Maximum Security and i think when User at Login Page Input Secret Key that ist optimal. Also i want AS SaaS No Access to Data in database because Data ist high Security. -- You rec

Re: Django Login Secret key

2019-07-09 Thread Jani Tiainen
Hi. What are you trying to do? In other words why do you need to replace secret key by user input at login? ke 10. heinäk. 2019 klo 8.54 Sebastian Jung kirjoitti: > Hello, > > I want in my Login Page a further field Secret Key. This Input ist > replacement dir Secret Key in sett

Django Login Secret key

2019-07-09 Thread Sebastian Jung
Hello, I want in my Login Page a further field Secret Key. This Input ist replacement dir Secret Key in settings.py. Ist this possible? Can someone explain me how? Regards -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: What happens when secret key is lost?

2014-05-21 Thread Tim Chase
On 2014-05-21 16:44, Erik Romijn wrote: > > Could you elaborate on how such remote-code execution would > > happen? > > If you use Django's cookie-based sessions[1], knowledge of the > SECRET_KEY allows an attacker to forge a cookie with session data. > Forging sessions is bad enough, but if you

Re: What happens when secret key is lost?

2014-05-21 Thread Erik Romijn
On 20 May 2014, at 22:27, Tim Chase wrote: >> And yes, it is very important to keep it secret. The worst case >> scenario for secret key leakage, in particular configurations, is >> arbitrary remote code execution. > > Could you elaborate on how such remote-code executi

Re: What happens when secret key is lost?

2014-05-21 Thread Henning Sprang
Hi Erik, On Tue, May 20, 2014 at 8:34 PM, Erik Romijn wrote: > ... > If it were used for that, that would indeed be the scenario. Fortunately, > it's not. Good to know :) > There is a current ticket open on documenting exactly this question: > https://code.djangoproject.com/ticket/22310. I'd

Re: What happens when secret key is lost?

2014-05-20 Thread Erik Cederstrand
Den 20/05/2014 kl. 20.40 skrev Henning Sprang : > Also, if it should be kept secret, I guess it's safe to assume that > using an online generator like > https://djskgen.herokuapp.com/ is not the smartest idea one can come > up with, right? You can use any random string, but you could also install

Re: What happens when secret key is lost?

2014-05-20 Thread Tim Chase
are reset, and if using the cookie > backend for form wizards, this may lead to exceptions. > > Also, any third party packages or any of your own code that uses > the secret key may be affected. Notably not affected (in Django > itself) are user passwords, and general content in the d

Re: What happens when secret key is lost?

2014-05-20 Thread Erik Romijn
m wizards, this may lead to exceptions. Also, any third party packages or any of your own code that uses the secret key may be affected. Notably not affected (in Django itself) are user passwords, and general content in the database. > Also, if it should be kept secret, I guess it's safe to

What happens when secret key is lost?

2014-05-20 Thread Henning Sprang
Hi, I developed quite a bit in Django already, but only now I am the first time responsible for putting something into real production use. So I work through the deployment checklist, and it says the secret key must be kept super secret. One example shows how to set it as environment variable

Re: Get secret key from django settings

2014-03-25 Thread Errfan Wadia
Yes because it takes the settings instance using the lazysettings. On Tue, Mar 25, 2014 at 10:06 PM, François Schiettecatte < fschietteca...@gmail.com> wrote: > 110-130 milliseconds to 'import' something, sounds very suspect to me. > > François > > On Mar 25, 2014, at 12:08 PM, Errfan Wadia > w

Re: Get secret key from django settings

2014-03-25 Thread François Schiettecatte
110-130 milliseconds to 'import' something, sounds very suspect to me. François On Mar 25, 2014, at 12:08 PM, Errfan Wadia wrote: > Hi Daniel, > > When I try to get the SECRET_KEY from settings.py in one of the app, it takes > around 110-130 millisec. Here I am talking about execution time. >

Re: Get secret key from django settings

2014-03-25 Thread Errfan Wadia
Hi Daniel, When I try to get the SECRET_KEY from settings.py in one of the app, it takes around 110-130 millisec. Here I am talking about execution time. On Tuesday, 25 March 2014 18:31:01 UTC+5:30, Daniel Roseman wrote: > > On Tuesday, 25 March 2014 06:36:53 UTC, Errfan Wadia wrote: >> >> Hi, >

Re: Get secret key from django settings

2014-03-25 Thread Errfan Wadia
Hey Shai it worked, reduced the time to 10 millisec from 120 millisec. On Tuesday, 25 March 2014 17:48:12 UTC+5:30, Shai Efrati wrote: > > Hi Errfan, > You can get the SECRET_KEY through the environment variables. Just use: > > from os import environ > SECRET_KEY = environ.get('SECRET_KEY') > >

Re: Get secret key from django settings

2014-03-25 Thread Daniel Roseman
On Tuesday, 25 March 2014 06:36:53 UTC, Errfan Wadia wrote: > > Hi, > > I am using from django.conf import settings > Is there any faster way to get the SECRET_KEY in one of my app from > settings.py ? > What do you mean, faster? In what way is that slow? -- DR. -- You received this message be

Re: Get secret key from django settings

2014-03-25 Thread Shai Efrati
Hi Errfan, You can get the SECRET_KEY through the environment variables. Just use: from os import environ SECRET_KEY = environ.get('SECRET_KEY') Good luck! Shai. On Tue, Mar 25, 2014 at 8:36 AM, Errfan Wadia wrote: > Hi, > > I am using from django.conf import settings > Is there any faster w

Get secret key from django settings

2014-03-25 Thread Errfan Wadia
Hi, I am using from django.conf import settings Is there any faster way to get the SECRET_KEY in one of my app from settings.py ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

RE: Re: Secret key

2010-03-09 Thread Henrik Genssen
the session e.g. depends on this key regards Hinnack >reply to message: >date: 09.03.2010 15:20:38 >from: "rebus_" >to: django-users@googlegroups.com >subject: Re: Secret key > >On 9 March 2010 15:16, Joan Miller wrote: >> For what is used the key `SECRE

Re: Secret key

2010-03-09 Thread rebus_
To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > A secret key for this particular Django installation. Used to provide a seed in secret-key h

Secret key

2010-03-09 Thread Joan Miller
For what is used the key `SECRET_KEY`? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com.

Re: Secret Key

2006-08-15 Thread Malcolm Tredinnick
On Wed, 2006-08-16 at 00:16 +, Seth Buntin wrote: > This might be a stupid question (and maybe off topic) but what does the > secret key do and why is it there? If we told you it wouldn't be secret, now would it? Really... people should think before asking these question..

Re: Secret Key

2006-08-15 Thread limodou
On 8/16/06, Seth Buntin <[EMAIL PROTECTED]> wrote: > > This might be a stupid question (and maybe off topic) but what does the > secret key do and why is it there? > It's used to deal with the password. Of cause the password is processed by MD5. -- I like python! My Blog

Secret Key

2006-08-15 Thread Seth Buntin
This might be a stupid question (and maybe off topic) but what does the secret key do and why is it there? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, sen