Conversation
|
💬 Discussion in Slack: #pr-review-cli-371-feat-pam-ssh-session-log-parsing-in-gateway Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel. |
PR overviewThis pull request adds SSH session log parsing to the PAM gateway, including terminal-line and prompt-aware input handling for session recordings. Five issues have been addressed, but one credential-handling edge case remains. An unusually long echo-disabled password or token prompt can evade secret-prompt detection and cause the entered credential to be stored in plaintext in the session recording. Open issues (1)
Fixed/addressed: 5 · PR risk: 4/10 |
|
| Filename | Overview |
|---|---|
| packages/pam/handlers/ssh/proxy.go | Integrates gateway-side rendering and echo-aware logging, but keeps channel-sensitive parser and buffer state on the connection-wide proxy. |
| packages/pam/handlers/ssh/terminal.go | Adds bounded ANSI rendering and echo suppression, although its state is unsafe when shared across concurrent SSH channels. |
| packages/pam/handlers/ssh/terminal_test.go | Covers parsing and single-channel recording behavior but does not exercise concurrent channels on one SSH connection. |
| packages/pam/session/logger.go | Extends the session-event schema with a backward-compatible rendered marker. |
| go.mod | Adds the ANSI parser dependency and its transitive dependency updates. |
Reviews (1): Last reviewed commit: "feat(pam): ssh session log parsing in ga..." | Re-trigger Greptile
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 30250094 | Triggered | Generic Password | d9f772d | e2e/pam/redis_test.go | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Description 📣
Moves SSH session log parsing to the gateway
Type ✨