You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[firmware-upgrader] Prevent upgrade operations on deactivated devices #382
Added comprehensive validation to prevent firmware upgrade operations
on deactivated devices across all application layers:
- Added model validation in AbstractDeviceFirmware.clean() and
AbstractUpgradeOperation.clean() to reject operations on deactivated devices
- Enhanced API validation in DeviceFirmwareSerializer to validate device state
- Updated batch operation filtering in _find_related_device_firmwares() and
_find_firmwareless_devices() to exclude deactivated devices
- Added comprehensive tests for model, API, and admin validation
This ensures defense-in-depth protection where deactivated devices cannot
be targeted for firmware upgrades through any interface (UI, API, or batch
operations), preventing potential security issues.
Fixes#382
0 commit comments