Always implement and maintain robust scanning mechanisms for user-uploaded files to prevent malware distribution. When modifying infrastructure or services related to file handling, ensure alternative security controls are in place before removing existing protections.
Examples:
services: appwrite: depends_on:
services: appwrite: depends_on: - mariadb - redis - clamav # Maintain file scanning # Alternative: Implement cloud-based scanning solution as documented in security.md
2. Ensure application logic handles scanning failure gracefully:
```php
// Verify uploads are always scanned before processing
if (!$scanService->isAvailable() && !$alternativeScanner->isAvailable()) {
throw new SecurityException('No file scanning service available');
}
Enter the URL of a public GitHub repository