Skip to content

fix(api): prevent cleartext password storage in logs#230

Merged
KaueReinbold merged 1 commit intomainfrom
fix/code-scanning-cleartext-storage
Jan 25, 2026
Merged

fix(api): prevent cleartext password storage in logs#230
KaueReinbold merged 1 commit intomainfrom
fix/code-scanning-cleartext-storage

Conversation

@KaueReinbold
Copy link
Owner

Fixes CodeQL alerts #3 and #4 by refactoring password redaction to happen immediately when retrieving the connection string, preventing any cleartext storage.

Changes:

  • Extract password redaction logic to dedicated method
  • Apply redaction before storing in variable
  • Use regex for more robust password pattern matching (handles both 'Password=' and 'Pwd=')
  • Never store raw connection string with password in cleartext variables

Related: Code scanning security alerts

@KaueReinbold KaueReinbold merged commit 5a12515 into main Jan 25, 2026
3 checks passed
@KaueReinbold KaueReinbold deleted the fix/code-scanning-cleartext-storage branch January 25, 2026 20:48
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