Secrets Detection
Overview
The shared-pipeline repository provides comprehensive secrets detection capabilities to prevent sensitive information from being accidentally committed to repositories. This section covers all available secrets detection tools and their implementations.
Available Tools
🔒 TruffleHog OSS ✅ IMPLEMENTED
- Status: Active and working
- Purpose: Scans for hardcoded secrets and credentials
- Coverage: Current files scanning
- Documentation: TruffleHog Details
🔍 GitLeaks ✅ IMPLEMENTED
- Status: Active and working
- Purpose: Detects secrets in git history
- Coverage: Historical commit analysis
- Documentation: GitLeaks Details
Combined Workflow: Both tools run together in a single secrets-detection.yml workflow
🛡️ detect-secrets 📋 PLANNED
- Status: Planned for future implementation
- Purpose: Baseline-based secret detection
- Coverage: Incremental scanning with baselines
Implementation Strategy
Current Implementation
- TruffleHog OSS is fully implemented and active
- Runs on every push to
mainbranch - Runs on all pull requests to
main - Uses shared-pipeline workflow for consistency
Future Roadmap
- GitLeaks integration - Historical secret detection
- detect-secrets integration - Baseline-based scanning
- Custom rules - Project-specific secret patterns
- Reporting dashboard - Centralized findings management
Usage
All secrets detection tools are available as reusable workflows in the shared-pipeline repository. Projects can include them in their CI/CD pipelines by referencing the appropriate workflow files.
Security Benefits
- Prevents credential leaks before they reach production
- Comprehensive coverage across multiple detection methods
- Automated enforcement in CI/CD pipelines
- Centralized management through shared workflows
- Consistent standards across all projects