php-uptelligence/Models
Snider 6f71edd14e fix(security): address P2 security items and migration mismatch
P2-058: Migration Mismatch
- Created new migration for vendor tracking tables (000004)
- Added explicit $table property to all models with uptelligence_ prefix
- Clarified dual-purpose nature (uptime monitoring + vendor tracking)
- Added appropriate indexes for common query patterns

P2-059: Webhook Signature Timing Attack Audit
- Verified all signature verification uses hash_equals()
- Added comprehensive tests in WebhookSignatureVerificationTest.php
- Tests cover all providers, grace periods, edge cases

P2-060: API Key Exposure in Logs
- Added redactSensitiveData() to AIAnalyzerService
- Added redactSensitiveData() to IssueGeneratorService
- Added redactSensitiveData() to VendorUpdateCheckerService
- Redacts API keys, tokens, bearer tokens, auth headers

P2-061: Missing Webhook Payload Validation
- Added MAX_PAYLOAD_SIZE (1MB) and MAX_JSON_DEPTH (32) limits
- Added validatePayloadSize() for DoS protection
- Added parseAndValidateJson() with depth limit
- Added validatePayloadStructure() for provider-specific validation
- Added hasExcessiveArraySize() to prevent memory exhaustion
- Added tests in WebhookPayloadValidationTest.php

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 13:29:26 +00:00
..
AnalysisLog.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00
Asset.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00
AssetVersion.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00
DiffCache.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00
Pattern.php refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence 2026-01-27 16:32:55 +00:00
PatternCollection.php refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence 2026-01-27 16:32:55 +00:00
PatternVariant.php refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence 2026-01-27 16:32:55 +00:00
UpstreamTodo.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00
UptelligenceDigest.php refactor: update Tenant namespace imports to Core\Tenant 2026-01-27 17:42:11 +00:00
UptelligenceWebhook.php refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence 2026-01-27 16:32:55 +00:00
UptelligenceWebhookDelivery.php refactor: move namespace from Core\Uptelligence to Core\Mod\Uptelligence 2026-01-27 16:32:55 +00:00
Vendor.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00
VersionRelease.php fix(security): address P2 security items and migration mismatch 2026-01-29 13:29:26 +00:00