Skip to content

feat(sandbox): stderr sanitization pipe and audit log (#304) - #310

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/304-sandbox-sanitization-pipe
Jul 10, 2026
Merged

feat(sandbox): stderr sanitization pipe and audit log (#304)#310
ZhuchkaTriplesix merged 2 commits into
devfrom
issue/304-sandbox-sanitization-pipe

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Add SandboxSanitizer redacting JWTs, PEM private keys, URI passwords, password assignments, and Bearer tokens to [REDACTED BY SANDBOX]
  • Add SandboxStderrPipe to capture plugin stderr, sanitize line-by-line, and write to logs/sandbox/<plugin_id>.log
  • Add SandboxRotatingLog (5 MB, ≤ 2 files) and SandboxSecurityAudit (security_audit.log for policy incidents / redactions)

Closes #304

Test plan

  • flutter test test/core/extensions/sandbox/ — 43 tests pass
  • CI analyze

Add Sanitization Pipe for plugin stderr (JWT/PEM/URI/password redaction),
5MB rotating logs under logs/sandbox/, and security_audit.log (issue #304).
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit f9f4ac9 into dev Jul 10, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/304-sandbox-sanitization-pipe branch July 26, 2026 14:39
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
…-pipe

feat(sandbox): stderr sanitization pipe and audit log (#304)
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