Skip to content

fix(identity): stop logging credential material in ssh/web auth paths (salvage of #7370) - #7955

Merged
dezren39 merged 2 commits into
mainfrom
queue/14084-7370-identity-log-redaction
Nov 9, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/14084-7370-identity-log-redaction

Conversation

@dezren39

@dezren39 dezren39 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Salvage of the unique remainder of closed archive PR #7370 (task 14084, issue #7297).

What this is

PR #7370's tip (b3568e9, a janitor archive of dirty worktree 10653) carries a coherent change absent from current main, verified by blob/added-line comparison (task 13628 analysis + fresh re-check 2026-11-09, lane code-y): main has not touched these files since the PR's merge-base, and no other code reads the removed password-hash / password-hash-type session-permission extensions.

Change

  • pkgs/identity/cmd/ssh/ssh.go: auth log calls no longer include plaintext passwords, password hashes, keyboard-interactive responses, generated private keys, or melted private keys; the dead writes of the password hash into session permission extensions are removed.
  • pkgs/identity/web/web.go: token/cookie log calls no longer include raw tokens, cookies, or parsed claims (algorithm / cookie name only); dead token-marshalling error path removed.
  • New AST regression tests pkgs/identity/cmd/ssh/ssh_logging_test.go and pkgs/identity/web/auth_logging_test.go fail if credential material is referenced from auth log calls again.

Tests

  • go test -count=1 ./cmd/ssh/ ./web/ in pkgs/identity — pass (laptop, 2026-11-09)
  • go vet ./cmd/ssh/ ./web/ — clean

Cherry-pick of b3568e9 onto current main (494198a687 before message amend); closed PR #7370 is not reopened and its archive branch is not recreated.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 9, 2026 04:52
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 22 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2091d270-0164-431a-9a8a-1afc0d9adbe8
Commits

Reviewing files that changed from the base of the PR and between 6f30e9c and 03a4990.

Files selected for processing: 4

  • pkgs/identity/cmd/ssh/ssh.go
  • pkgs/identity/cmd/ssh/ssh_logging_test.go
  • pkgs/identity/web/auth_logging_test.go
  • pkgs/identity/web/web.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T04:52:53.837490Z
We couldn’t complete this review. Comment @codex review to try again.
906b7bd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

dezren39 commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Codex findings disposition (task 14084, lane code-y): the Codex code-review run on head 906b7bd FAILED on Codex usage limits before producing findings — zero inline review comments exist on this PR (verified via the pulls/7955/comments API). There are no undispositioned Codex findings; the failure is a reviewer-quota failure, not a finding. Targeted tests for the change pass on the laptop (go test -count=1 ./cmd/ssh/ ./web/ in pkgs/identity; go vet clean).

@dezren39
dezren39 merged commit 5594c4b into main Nov 9, 2026
3 of 6 checks passed
@dezren39
dezren39 deleted the queue/14084-7370-identity-log-redaction branch November 9, 2026 05:23
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