Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .jules/sentinel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 2025-04-18 - Remove Hardcoded Password

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟑 Minor

Fix the incident date for audit accuracy.

Line 1 says 2025-04-18, but this PR was created on April 18, 2026. Please align the entry date to avoid confusing security history.

Suggested patch
-## 2025-04-18 - Remove Hardcoded Password
+## 2026-04-18 - Remove Hardcoded Password
πŸ€– Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.jules/sentinel.md at line 1, Update the incident header date in the
sentinel entry currently reading "## 2025-04-18 - Remove Hardcoded Password" to
the correct creation date "## 2026-04-18 - Remove Hardcoded Password" so the
audit log reflects the actual PR date; edit the header line in
.jules/sentinel.md accordingly.

**Vulnerability:** Hardcoded password found in test file comments (`tests/inference_test.py`).
**Learning:** Even in test files, hardcoded credentials can expose sensitive information or be picked up by security scanners, creating false positives or actual risks if test passwords are reused.
**Prevention:** Use environment variables (e.g., `ENCRYPTED_PDF_PASSWORD`) for all credentials, even in tests, to maintain a clean and secure codebase.
2 changes: 1 addition & 1 deletion tests/inference_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_mutlinline(tmp_path):


def test_encrypted_failure(tmp_path):
# Reminder to future Joe: password for encrypted PDF is "kanbanery"
# Reminder to future Joe: password for encrypted PDF is in ENCRYPTED_PDF_PASSWORD env var
output_path = tmp_path / "output.pdf"

with pytest.raises(commonforms.exceptions.EncryptedPdfError):
Expand Down