Skip to content

chore(logging): add codeql comments for sensitive data handling acros…#2327

Merged
PawelPeczek-Roboflow merged 10 commits into
mainfrom
code-scan-issues-cleanup
May 15, 2026
Merged

chore(logging): add codeql comments for sensitive data handling acros…#2327
PawelPeczek-Roboflow merged 10 commits into
mainfrom
code-scan-issues-cleanup

Conversation

@dkosowski87
Copy link
Copy Markdown
Contributor

What does this PR do?

  • Suppressions for false positive CodeQL scanning alerts regarding logging sensitive information other than the sqlite_wrapper that given it might be broader we log only column keys instead
  • Suppressions for false positive CodeQL scanning alerts regarding MD5 as those don't handle secure storage or proving integrity rather a digest on the client side

Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
@dkosowski87 dkosowski87 force-pushed the code-scan-issues-cleanup branch from 0e3fbde to 8588b6d Compare May 12, 2026 19:32
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
@dkosowski87 dkosowski87 force-pushed the code-scan-issues-cleanup branch from 0946511 to 5fa95eb Compare May 12, 2026 19:53
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
Comment thread inference/core/utils/sqlite_wrapper.py Fixed
…s multiple files

- Added comments to indicate potential sensitive data handling in logging statements, including clear-text logging and hashing of API keys.
- Updated logging messages in `webcam.py`, `configuration.py`, `core.py`, `base.py`, `sqlite_wrapper.py`, and test files to enhance clarity and security awareness.
…LiteWrapper

- Added comments to indicate potential sensitive data handling in logging statements within the SQLiteWrapper class, ensuring clarity on the logging of column names without values.
… SQLiteWrapper

- Revised comments in logging statements to clarify that only key names are logged, enhancing awareness of sensitive data handling practices.
- Renamed `_sqlite_row_columns_for_log` to `_sqlite_log` for improved clarity in logging column names.
- Updated logging statements to use the new utility function, ensuring consistent handling of sensitive data in debug logs.
- Added formatting comments to clarify sensitive data handling in debug logs.
- Ensured consistent logging practices across multiple exception handling scenarios in the SQLiteWrapper class.
- Eliminated formatting comments around logging statements in the SQLiteWrapper class to streamline the code.
- Maintained clarity in logging practices while ensuring sensitive data handling is still appropriately addressed.
- Refactored logging statements in the SQLiteWrapper class to use f-strings for improved readability and consistency.
- Ensured that sensitive data handling comments remain intact while enhancing the clarity of debug messages during exception handling.
- Enhanced the readability of debug logging statements in the SQLiteWrapper class by breaking long lines into multiple lines.
- Maintained the integrity of sensitive data handling comments while improving the clarity of exception logging.
@dkosowski87 dkosowski87 force-pushed the code-scan-issues-cleanup branch from deae40c to 391877f Compare May 12, 2026 20:06
Comment thread inference/core/utils/sqlite_wrapper.py Dismissed
Comment thread inference/core/utils/sqlite_wrapper.py Dismissed
Comment thread inference/core/utils/sqlite_wrapper.py Dismissed
Comment thread inference/core/utils/sqlite_wrapper.py Dismissed
dkosowski87 and others added 2 commits May 12, 2026 22:14
- Updated the `_sqlite_log` function to use an `Iterable` for key retrieval, enhancing clarity in the logging of column names.
- Maintained the focus on sensitive data handling while improving the structure of debug log outputs.
@PawelPeczek-Roboflow PawelPeczek-Roboflow merged commit 7074d8e into main May 15, 2026
47 checks passed
@PawelPeczek-Roboflow PawelPeczek-Roboflow deleted the code-scan-issues-cleanup branch May 15, 2026 07:37
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.

3 participants