kaytu-io / kaytu

Kaytu's AI platform boosts cloud efficiency by analyzing historical usage and delivering intelligent recommendations—such as optimizing instance sizes—that maintain reliability. Pay for what you need, without compromising your apps.
https://kaytu.io
Other
593 stars 10 forks source link

Plugin download process must happen on a temporary file #203

Open salehkhazaei opened 1 week ago

salehkhazaei commented 1 week ago

Describe the bug When downloading a plugin (e.g. updating plugin version) if for any reason plugin download breaks, the plugin binary will be corrupted. Although config file wont take the effect until after download is completed, we need to make sure that we dont break the plugin binary. It's better to download the new file into a temporary file and then move it on the plugin binary once download is finished.