Skip to content

Add Authentication for endoints that affect device-control

Guy Boldon requested to merge auth into main

New Feature

What does this MR do?

This MR adds password authentication for device-controlling endpoints. This is also the first change with will break full-backward compatibility with the Old UI. (Old UI will still see everything, but will lose the ability to make some changes to device settings)

At some point soon there will be lots of deprecated code removed that was used by the old UI. At that point support for the old UI will be ended and users upgrading at that time will have to migrate completely. (no more jumping back to the old UI)

As a convenience feature, a default password is used to keep the same 'flow' as before, with the ability to change the password at the user's discretion.

A --reset-password CLI option has also been added to the daemon. (requires sudo)

Some small other improvements have also been done. (along the way)

Related issues

Checklist

  • Application works as expected when running from source
  • There are dependency changes
  • Liquidctl device mock tests are successful (if applicable)
  • Any needed documentation changes have been made
  • This MR is ready to be merged
Edited by Guy Boldon

Merge request reports