Skip to content

Commit 07533fb

Browse files
committed
redact sensitive values in dev_settings
1 parent 8390622 commit 07533fb

File tree

1 file changed

+7
-30
lines changed

1 file changed

+7
-30
lines changed

backend/dev_settings.py

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
2323

2424
# SECURITY WARNING: keep the secret key used in production secret!
25-
SECRET_KEY = "ASDF"
25+
SECRET_KEY = "redacted"
2626

2727
# SECURITY WARNING: don't run with debug turned on in production!
2828
DEBUG = True
@@ -32,33 +32,6 @@
3232

3333
MIDDLEWARE += ['debug_toolbar.middleware.DebugToolbarMiddleware']
3434

35-
"""
36-
# log all SQL queries to console
37-
LOGGING = {
38-
'version': 1,
39-
'filters': {
40-
'require_debug_true': {
41-
'()': 'django.utils.log.RequireDebugTrue',
42-
}
43-
},
44-
'handlers': {
45-
'console': {
46-
'level': 'DEBUG',
47-
'filters': ['require_debug_true'],
48-
'class': 'logging.StreamHandler',
49-
}
50-
},
51-
'loggers': {
52-
'django.db.backends': {
53-
'level': 'DEBUG',
54-
'handlers': ['console'],
55-
}
56-
}
57-
}
58-
"""
59-
60-
61-
6235
# Database
6336
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
6437

@@ -67,8 +40,12 @@
6740
'ENGINE': 'django.db.backends.postgresql_psycopg2',
6841
'NAME': 'battlecode',
6942
'USER': 'battlecode',
70-
'PASSWORD': os.getenv('DB_PASS_BC_DEV', 'mysecretpassword'),
71-
'HOST': os.getenv('DB_HOST_BC_DEV', 'localhost'),
43+
'PASSWORD': 'redacted',
44+
'HOST': 'redacted',
7245
'PORT': 5432,
7346
}
7447
}
48+
49+
GOOGLE_APPLICATION_CREDENTIALS = r"""redacted"""
50+
51+
SENDGRID_API_KEY = "redacted"

0 commit comments

Comments
 (0)