Skip to content

Eliminate plaintext credential logging in backend user bootstrap - #4

Merged
gotar13 merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts-5
Sep 21, 2026
Merged

gotar13 merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts-5

Conversation

Copilot AI commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

This change addresses the code scanning finding for clear-text logging by removing exposure of default user passwords in server startup logs. Initialization visibility is preserved without emitting sensitive values.

  • Security: remove credential disclosure

    • Updated /home/runner/work/Game-Pointer/Game-Pointer/backend/server.js in the default-user bootstrap path to stop logging INITIAL_ADMIN_PASSWORD and INITIAL_USER_PASSWORD.
    • Replaced credential-bearing log lines with username-only messages.
  • Behavioral impact

    • User seeding logic is unchanged.
    • Startup logs still indicate initialized default accounts, but no longer leak secrets.
// before
console.log(`Admin - username: Gothar az admin, password: ${INITIAL_ADMIN_PASSWORD}`);
console.log(`User  - username: Gothar a user,  password: ${INITIAL_USER_PASSWORD}`);

// after
console.log('Admin - username: Gothar az admin');
console.log('User  - username: Gothar a user');

Co-authored-by: gotar13 <193940674+gotar13@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert #5 in repository Eliminate plaintext credential logging in backend user bootstrap Sep 21, 2026
Copilot AI requested a review from gotar13 September 21, 2026 16:18
@gotar13
gotar13 marked this pull request as ready for review September 21, 2026 16:21
@gotar13
gotar13 merged commit f83a19f into main Sep 21, 2026
4 checks passed
@gotar13
gotar13 deleted the copilot/fix-code-scanning-alerts-5 branch September 21, 2026 16:28
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