The bot includes enterprise-grade logging with advanced security features:
- π PII Redaction - Automatically redacts sensitive information from logs
- π Structured Logging - JSON-structured logs for better analysis
- π‘οΈ SBOM Generation - Software Bill of Materials for supply chain transparency
- π Build Provenance - Attestations for build security and verification
# Enable debug logging
LOG_LEVEL=debug
# Enable verbose logging for detailed troubleshooting
VERBOSE_LOGGING=true
# Production logging (default)
LOG_LEVEL=infoGenerate Software Bill of Materials for security analysis:
# Generate SBOM locally
bun run sbom:generate
# Docker build with SBOM and provenance
bun run docker:build:sbomThis bot works in conjunction with the unthread-webhook-server for complete bidirectional communication:
- Webhook Server: Receives events from Unthread dashboard and routes them to the bot
- Bot Service: Handles Telegram interactions and creates tickets in Unthread
- Platform Detection: Smart username formatting ensures proper event classification
The bot implements a sophisticated username format that ensures seamless integration:
// Format Priority for Unthread Dashboard Display:
"Waren (@warengonzaga)" // β
Best UX - detected as Telegram platform
"@warengonzaga" // β
Minimal - detected as Telegram platform
"Waren Gonzaga" // β
Fallback - detected as Dashboard origin
"User 784879963" // β
Legacy - detected as Dashboard originIntegration Benefits:
- β Proper Analytics: Webhook server correctly classifies events by platform
- β Enhanced Monitoring: Clear distinction between bot vs dashboard activities
- β Audit Compliance: Complete traceability of user interactions
- β Event Routing: Accurate downstream processing and workflow automation
Technical Reference: Webhook Server Platform Detection Logic
This project implements comprehensive supply chain security measures including:
- SBOM generation for all container images
- Build provenance attestations for transparency
- Automated vulnerability scanning with Trivy
- Multi-layer security from development to production
For complete security documentation, see the Contributing Guide.