Skip to content

feat(cli): add local audit trail#18

Merged
jamiesun merged 3 commits into
mainfrom
codex/audit-trail
Jun 20, 2026
Merged

feat(cli): add local audit trail#18
jamiesun merged 3 commits into
mainfrom
codex/audit-trail

Conversation

@jamiesun

Copy link
Copy Markdown
Contributor

Summary

  • add default local JSONL audit events at ~/.sshx/audit/sshx-YYYY-MM-DD.jsonl
  • add --audit-output=<dir>, --no-audit, SSHX_AUDIT_OUTPUT, and SSHX_NO_AUDIT
  • record operation metadata and outcomes without stdout/stderr, plaintext passwords, or private key contents
  • redact common password/token-style values in command text and error messages
  • keep --dry-run side-effect-free by skipping audit writes

Verification

  • go test ./...
  • make check
  • manual blocked-command audit smoke test with --audit-output=/tmp/sshx-audit-codex-12b

Fixes #12

Comment thread internal/app/audit.go Fixed
@jamiesun jamiesun merged commit 2517a2e into main Jun 20, 2026
6 checks passed
@jamiesun jamiesun deleted the codex/audit-trail branch June 20, 2026 14:44
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.

[audit] Add local structured audit trail for critical operations

2 participants