Repository navigation
fix: credential follow-ups from the log redaction - #885
Merged
Merged
Conversation
The rm -rf deny rule stays: it is the guard against a root wipe. The cleanup CLAUDE.md asks cloud sessions to run now has a script, so it no longer needs a hand-typed rm on an absolute path. Closes #884. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Closes #882. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Closes #883. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
MySQL syntax errors quote the statement back without escaping its quotes, so a mistyped CREATE USER put the password in the log file and in history's stored error. The echo is now removed in both places. Closes #881. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Doc comments on the profile structs are exported to bindings.ts, which CI checks is current. These describe Rust internals, so they are plain comments now. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-ups to #875 (#880): three more routes by which a password reached disk or a log, plus the cleanup-script gap found while fixing them.
Changes
near '<rest of the statement>' at line N. That quoting is not SQL quoting, so the credential redactor could not find a password inside it, and a mistypedCREATE USER … IDENTIFIED BY 'pw'wrote the password to the log file and to history's stored error.mas_core::query::redact_server_echoandlog_safe_errorreplace the echo with<redacted>and keep the error code, SQLSTATE and line number.execute_query,explain_query,apply_grid_editsand restore.redactServerEchoinsrc/lib/sql-redact.ts, runs inhistoryStore.addEntrybefore the existing credential scrub. The app still shows the user the full message.Debugon profiles (fix: ConnectionProfile Debug prints the password #882).ConnectionProfileandSSHConfignow implementDebugby hand. Passwords and passphrases print as<redacted>, or as""/Nonewhen unset, so you can still tell from a log line whether one is set.scripts/clean-debug.sh(alsojust clean-debug) removestarget/debug/incrementaland test binaries larger than 100 MB.CLAUDE.md, theintegration-testsskill and theimplementer-rustagent point at it.rm -rf /*deny rule stays: it guards against wiping the root, and the documented cleanup no longer needs to work around it.just bumphint now points at the release skill instead of the removed "Release Flow" section.Closes #881. Closes #882. Closes #883. Closes #884.
Test plan
cargo clippy --workspace --all-targets --all-features -- -D warningsandcargo fmt --all --checkare clean.cargo test -p mas-core --lib: 242 passed, including 7 new tests:redact_server_echo(a real MySQL 1064 message, a close marker inside the echo, a truncated echo, a message with no echo, andlog_safe_error);Debug(no secret in{:?}or{:#?}, and set/unset still visible).npx vitest run src/lib/__tests__/sql-redact.test.ts src/stores/__tests__/historyStore.test.ts: 91 passed. The new history test fails with the store change reverted.npm run type-check,eslinton the changed files and dprint are clean.bash scripts/clean-debug.shfreed 5 GB in this container.Generated by Claude Code