WLAN-Pi / wlanpi-webui

a web app for the WLAN Pi
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

add purge option #14

Closed joshschmelzle closed 3 years ago

joshschmelzle commented 3 years ago

Add option to delete profiler results. This was requested by Jerry and Eddie.

joshschmelzle commented 3 years ago

As it stands today, the wlanpi user running the wlanpi-webui service does not have permissions to remove the profiler files. This is because the profiler is run with elevated permissions.

We should not run the wlanpi-webui with elevated permissions, and instead need to decouple the frontend from backend.

The idea I came up to help address the issue is to generate a purge script when the user navigates to http://<wlanpi>/profiler/purge. This is a hidden feature, and was added in 34ade79

Example:

image