Skip to content

fix(auth): stop logging submitted usernames - #320

Merged
ReenigneArcher merged 1 commit into
masterfrom
codex/fix-login-username-logging
Oct 17, 2026
Merged

ReenigneArcher merged 1 commit into
masterfrom
codex/fix-login-username-logging

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

Remove the login handler's unconditional stdout message containing the submitted username. Login attempts no longer expose account identifiers through this diagnostic output.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • cargo +nightly fmt --check
  • KOKO_SKIP_FFMPEG_DOWNLOAD=1 cargo test --locked -p koko --test main test_web::routes::auth --jobs 1 -- --test-threads=1 (five authentication route tests)
  • git diff --check origin/master...HEAD

All checks passed on the rebased commit; 5 authentication route tests passed, 0 failed.

No new regression fixture was added: capturing process-wide stdout would require additional test infrastructure for this one-line diagnostic removal. Manual source review confirms that the username output is removed, and the existing tests cover successful login, wrong passwords, unknown users, logout, and user info. Hosted CodeQL reanalysis is pending.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.05%. Comparing base (c08ac9d) to head (261f134).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #320      +/-   ##
==========================================
+ Coverage   61.03%   61.05%   +0.01%     
==========================================
  Files          45       45              
  Lines       13237    13236       -1     
==========================================
+ Hits         8079     8081       +2     
+ Misses       5158     5155       -3     
Flag Coverage Δ
aarch64-apple-darwin 60.03% <ø> (-0.01%) ⬇️
aarch64-unknown-linux-gnu 60.03% <ø> (+8.91%) ⬆️
aarch64-unknown-linux-musl 60.56% <ø> (-0.01%) ⬇️
x86_64-apple-darwin 60.03% <ø> (-0.01%) ⬇️
x86_64-pc-windows-msvc 61.11% <ø> (+0.01%) ⬆️
x86_64-unknown-linux-gnu 60.02% <ø> (-0.02%) ⬇️
x86_64-unknown-linux-musl 60.56% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
crates/server/src/web/routes/auth.rs 94.44% <ø> (-0.16%) ⬇️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c08ac9d...261f134. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ReenigneArcher
ReenigneArcher merged commit f6f7c46 into master Oct 17, 2026
45 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/fix-login-username-logging branch October 17, 2026 23:14
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