Files
Kill_LIFE/openclaw/local_setup/scan_secrets.sh
T
Clément SAILLANT edc35a62b1 feat: Add onboarding scripts and documentation for OpenClaw
- Created install_packages.sh to automate package installation in Ubuntu VM.
- Developed onboarding_simulation.sh for executing onboarding scripts and displaying guides.
- Added openclaw_check.sh to run OpenClaw doctor and help commands.
- Implemented scan_secrets.sh for scanning sensitive patterns in the VM.
- Introduced onboarding README.md and examples.md for contributor guidance.
- Created guide_contributeur.md and guide_vm_sandbox.md for detailed onboarding instructions.
- Added supports_visuels.md with diagrams and video tutorials for better understanding.
- Developed test_openclaw_actions.py for automated testing of OpenClaw actions.
- Created vm_test_report.md template for documenting VM test results.
- Added setup_python_secure.sh for secure Python environment setup.
- Implemented test_openclaw_sanitizer.py for testing sanitization functionality.
2026-02-19 13:16:22 +01:00

14 lines
531 B
Bash

#!/bin/bash
# Script de scan automatique des secrets/tokens/code source dans la VM
set -euo pipefail
# Recherche de patterns sensibles dans /home et /root
find /home /root -type f \( -name '*' \) -exec grep -H -i -E 'token|secret|key|password|passwd|PRIVATE|API[_-]?KEY|Bearer' {} \; > /tmp/scan_secrets_report.txt || true
if [ -s /tmp/scan_secrets_report.txt ]; then
echo "[ALERTE] Des patterns sensibles ont été trouvés :"
cat /tmp/scan_secrets_report.txt
else
echo "[OK] Aucun secret/token/code source détecté."
fi