-
Notifications
You must be signed in to change notification settings - Fork 0
Hash emails #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Hash emails #30
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6ef7d41
Add development container configuration with Dockerfile and VSCode se…
1cc45c6
Update Super Linter configuration to use latest version and exclude s…
0067966
Update Super Linter workflow to trigger on pushes to the main branch
042f2bd
Add email encryption and hashing functions; update authentication routes
1d19b9b
Restore login endpoint (oopsie)
5ca2680
Add email masking functionality and update person routes to handle en…
af42bc8
Implement email masking in person routes by decrypting and masking em…
b491b8c
Fix typo in utility.py: correct function name from 'decrpyt_email' to…
b2d7c43
Refactor AES_KEY initialization to use bytes.fromhex for better security
3e92ea9
Enhance error handling in app and improve email masking logic in pers…
970c3ed
Improve error message extraction to handle SQL errors more gracefully
c430844
Add command-line argument for debug mode in Flask app
bd80676
Merge branch 'main' into security/hash_email
Vianpyro f2ea486
Refactor error handling in email decryption and improve SQL error mes…
c341939
Refactor import statements in authentication module and clean up util…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| argon2-cffi>=23.1.0 | ||
| cryptography>=44.0.2 | ||
| Flask>=3.0.3 | ||
| Flask-JWT-Extended>=2.8.0 | ||
| Flask-Limiter>=3.7.0 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Copilot Autofix
AI 10 months ago
To fix the problem, we should avoid exposing the stack trace to the end user, even in debug mode. Instead, we can log the stack trace on the server side for debugging purposes and return a generic error message to the user. This way, developers can still access the stack trace for debugging, but it will not be exposed to potential attackers.
handle_exceptionfunction to log the stack trace using a logging library and return a generic error message to the user.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Add logging in a future update