Skip to content

Potential fix for code scanning alert no. 11: Clear text storage of sensitive information - #3

Merged
albert-mueller merged 2 commits into
mainfrom
alert-autofix-14
Aug 6, 2026
Merged

Potential fix for code scanning alert no. 11: Clear text storage of sensitive information#3
albert-mueller merged 2 commits into
mainfrom
alert-autofix-14

Conversation

@albert-mueller

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/albert-mueller/albert-mueller.github.io/security/code-scanning/11

General fix: separate runtime secret handling from persisted config. Keep credentials only in memory (or session-only mechanisms if needed), and store only non-sensitive metadata in localStorage (for example, selected service and non-secret IDs).

Best fix here (without changing core behavior): in the API-config save flow (around lines 172–205), stop cloning/storing apiConfig after it has been tainted by secretKey/apiKey; instead build a dedicated persistedConfig object containing only safe fields and store that. This eliminates sensitive-data flow to JSON.stringify(...) and addresses all listed variants at once. No new imports/dependencies are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…ensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Albert Müller <p8bpg9zrw7@privaterelay.appleid.com>
@albert-mueller
albert-mueller marked this pull request as ready for review August 6, 2026 00:36
Comment thread others/translate/translate.js Fixed
…f sensitive information'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Albert Müller <p8bpg9zrw7@privaterelay.appleid.com>
@albert-mueller
albert-mueller merged commit 7f168fe into main Aug 6, 2026
3 checks passed
@albert-mueller
albert-mueller deleted the alert-autofix-14 branch August 6, 2026 02:20
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.

2 participants