Log Scrubber
This skill automatically scans your /root/.openclaw/workspace/ environment, logs, and memory files to detect and redact sensitive information like API keys, tokens, and credentials.
Features
- - Proactive Scanning: Scans for known patterns (regex) of common secrets.
- Automated Redaction: Sanitizes files in-place while keeping backups of original files (e.g.,
.bak extension). - Dry-Run Mode: Allows you to simulate redaction without modifying files.
- Security: Ensures your secrets don't accidentally end up in logs sent to providers or stored in plain-text memory files.
Usage
To perform a dry-run (check proposed changes without modification):
INLINECODE2
To apply changes:
INLINECODE3
External Endpoints
- - This skill does not call any external endpoints. It operates entirely locally.
Security & Privacy
- - This skill performs all redaction operations locally on your machine. No data is sent to external servers.
Model Invocation
- - This skill runs locally and does not autonomously invoke models beyond the standard OpenClaw agent execution.
Trust Statement
- - By using this skill, you agree that it will overwrite files in your workspace with redacted versions. Always ensure you have backups of important data.
日志清理器
该技能会自动扫描您的/root/.openclaw/workspace/环境、日志和内存文件,检测并编辑API密钥、令牌和凭证等敏感信息。
功能特性
- - 主动扫描:扫描常见密钥的已知模式(正则表达式)。
- 自动编辑:原地清理文件,同时保留原始文件的备份(例如.bak扩展名)。
- 试运行模式:允许您模拟编辑操作而不修改文件。
- 安全性:确保您的密钥不会意外出现在发送给提供商的日志中,或存储在明文内存文件中。
使用方法
执行试运行(检查建议的更改而不修改文件):
python3 /root/.openclaw/workspace/skills/log-scrubber/scripts/scrub.py --dry-run
应用更改:
python3 /root/.openclaw/workspace/skills/log-scrubber/scripts/scrub.py
外部端点
安全与隐私
- - 该技能在您的本地机器上执行所有编辑操作。不会向外部服务器发送任何数据。
模型调用
- - 该技能在本地运行,不会在标准OpenClaw代理执行之外自主调用模型。
信任声明
- - 使用此技能即表示您同意它将以编辑后的版本覆盖工作区中的文件。请始终确保您拥有重要数据的备份。