Skip to content

Commit 266e300

Browse files
committed
Fix: Add missing SECRET_KEY and ALTCHA_HMAC_KEY to docker.env
Also added a security warning comment to avoid using default credentials in production. Signed-off-by: Parth Bhatt <paarthbhatt37@gmail.com>
1 parent 4171dbe commit 266e300

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker.env

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
# WARNING: These are default values for local development only.
2+
# DO NOT use these values in production. Generate proper secret keys.
13
POSTGRES_DB=vulnerablecode
4+
25
POSTGRES_USER=vulnerablecode
36
POSTGRES_PASSWORD=vulnerablecode
47

58
VULNERABLECODE_DB_HOST=db
69
VULNERABLECODE_STATIC_ROOT=/var/vulnerablecode/static/
710

8-
VULNERABLECODE_REDIS_HOST=vulnerablecode_redis
11+
VULNERABLECODE_REDIS_HOST=vulnerablecode_redis
12+
SECRET_KEY=secret
13+
ALTCHA_HMAC_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
14+
# ALTCHA_HMAC_KEY must be a 32-byte (64 hex characters) hexadecimal key; override this value in production.

0 commit comments

Comments
 (0)