ryanpepe2000 / mscs710-backend

Project for capping.
MIT License
1 stars 1 forks source link

Transference to an Executable - Device Agent #21

Open ryanpepe2000 opened 2 years ago

ryanpepe2000 commented 2 years ago

In our current model, the user agent will be downloaded by users and configured to run through a cron daemon. While this is an effective method of running code, there is no way to prevent users from reading the python file and learning the URI to post data. This is could lead to some major issues when it comes to falsifying metric data in the database.

One solution to this issue it the implementation of the python library called pyinstaller, it is possible to compile the code into an unreadable executable unix file. Once this file is created, the issue of unexpected posts through the API is eliminated.

ryanpepe2000 commented 2 years ago

PyInstaller can successfully transfer our client agent into an executable file. It is important that all packages are installed prior to compilation via PIP.