NethServer / nethsecurity

NethSecurity image and build environment
https://www.nethsecurity.org/
Other
96 stars 5 forks source link

Remote backup for all subscriptions #664

Closed gsanchietti closed 1 month ago

gsanchietti commented 1 month ago

Overview: Extend remote backup access to both Enterprise and Community subscriptions. Additionally, provide more detailed information about each backup and expose the delete backup functionality.

Details:

Required Changes:

  1. Backend:

    • Modify the remote backup service to allow access for Community subscriptions.
    • Update the API to include the additional information (creation date, encryption status, size).
  2. Frontend:

    • Display the creation date in local time for each backup entry.
    • Indicate whether the backup is encrypted.
    • Show the size of each backup.
    • Add a delete button to the backup list, enabling users to delete backups.

Benefits:

gsanchietti commented 1 month ago

Test case 1

Test case 2

Test case 3

github-actions[bot] commented 1 month ago

Testing image version: 8-23.05.3-ns.1.1.0-68-g5f6bfa6

cotosso commented 1 month ago

Test case 1 and 2 are OK.

Test case 3 (sub community) : backup page gives this error:

cannot retrieve backups

root@NethSec:~# /usr/libexec/rpcd/ns.backup call registered-list-backups
Traceback (most recent call last):
  File "/usr/libexec/rpcd/ns.backup", line 161, in <module>
    print(json.dumps({'values': json.loads(completed_process.stdout)}))
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
  File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
github-actions[bot] commented 1 month ago

Testing image version: 8-23.05.3-ns.1.1.0-69-g028f0ac

cotosso commented 1 month ago

Now also test case 3 is well managed

gsanchietti commented 1 month ago

Some changes have been added to the UI.

Test case 4

Test case 5

Test case 6

Test case 7

Test case 8

gsanchietti commented 1 month ago

Test image: 23.05.3-ns.1.1.0-71-ge75871e

cotosso commented 1 month ago

All cases verified, everything works as expected.