We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aff007 commit 1e1d42fCopy full SHA for 1e1d42f
python/ql/src/experimental/Security/CWE-287-ConstantSecretKey/examples/config3.py
@@ -7,6 +7,6 @@
7
# it is good to check default value always, maybe
8
# the user responsible for setup the application make a mistake
9
# and has not changed the default SECRET_KEY value
10
-SECRET_KEY = os.getenv('envKey') # A_CONSTANT_SECRET
+SECRET_KEY = os.getenv('envKey', "A_CONSTANT_SECRET") # A_CONSTANT_SECRET
11
if SECRET_KEY == "A_CONSTANT_SECRET":
12
raise "not possible"
0 commit comments