File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ ACTIVATE?=. ${VENV}/bin/activate;
29
29
VIRTUALENV_PYZ =etc/thirdparty/virtualenv.pyz
30
30
# Do not depend on Python to generate the SECRET_KEY
31
31
GET_SECRET_KEY =` base64 /dev/urandom | head -c50 `
32
+ GET_ALTCHA_HMAC_KEY =` head -c 32 /dev/urandom | xxd -p -c 32 `
32
33
# Customize with `$ make envfile ENV_FILE=/etc/vulnerablecode/.env`
33
34
ENV_FILE =.env
34
35
# Customize with `$ make postgres VULNERABLECODE_DB_PASSWORD=YOUR_PASSWORD`
@@ -63,6 +64,7 @@ envfile:
63
64
@if test -f ${ENV_FILE} ; then echo " .env file exists already" ; exit 1; fi
64
65
@mkdir -p $(shell dirname ${ENV_FILE}) && touch ${ENV_FILE}
65
66
@echo SECRET_KEY=\" ${GET_SECRET_KEY} \" > ${ENV_FILE}
67
+ @echo ALTCHA_HMAC_KEY=\" ${GET_ALTCHA_HMAC_KEY} \" >> ${ENV_FILE}
66
68
67
69
isort :
68
70
@echo " -> Apply isort changes to ensure proper imports ordering"
Original file line number Diff line number Diff line change 38
38
39
39
CSRF_TRUSTED_ORIGINS = env .list ("CSRF_TRUSTED_ORIGINS" , default = [])
40
40
41
+ # Altcha 32-byte hexadecimal key
42
+
43
+ ALTCHA_HMAC_KEY = env .str ("ALTCHA_HMAC_KEY" )
44
+
41
45
# SECURITY WARNING: do not run with debug turned on in production
42
46
DEBUG = env .bool ("VULNERABLECODE_DEBUG" , default = False )
43
47
You can’t perform that action at this time.
0 commit comments