balena-sdk-python icon indicating copy to clipboard operation
balena-sdk-python copied to clipboard

Calling sdk.models.device.delete('') will delete all devices the user has access to.

Open otaviojacobi opened this issue 1 year ago • 1 comments

All version of Python SDK from 13 to 15 have a bug when calling sdk.models.device.delete with an empty string UUID this would trigger a deletion of all accessible devices. If you call it with a too short UUID that matches several devices UUID, this would also trigger the deletion of all these devices.

Has been fixed on SDK version: https://github.com/balena-io/balena-sdk-python/pull/371 and from 15.0.1 a deletion by UUID will only delete a single device

otaviojacobi avatar Oct 17 '24 13:10 otaviojacobi

Should we close this now @otaviojacobi ?

thgreasi avatar Oct 25 '24 11:10 thgreasi