Skip to content

Add hardcoded secret key to app.py#1

Open
koppularoshitha wants to merge 1 commit into
mainfrom
koppularoshitha-patch-1
Open

Add hardcoded secret key to app.py#1
koppularoshitha wants to merge 1 commit into
mainfrom
koppularoshitha-patch-1

Conversation

@koppularoshitha

Copy link
Copy Markdown
Owner

No description provided.

Comment thread src/flask/app.py
@@ -1,3 +1,4 @@
SECRET_KEY = "hardcoded_secret_key_12345abcdefgh"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded secret keys should not be stored directly in the source code. Use environment variables or configuration files to manage sensitive credentials securely.

Comment thread src/flask/app.py
@@ -1,3 +1,4 @@
SECRET_KEY = "hardcoded_secret_key_12345abcdefgh"
from __future__ import annotations

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'future' imports must occur at the beginning of the file. Placing a variable assignment before 'from future import annotations' will cause a SyntaxError at runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant