borgitory 3.0.0__tar.gz → 3.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (582) hide show
  1. {borgitory-3.0.0 → borgitory-3.1.1}/PKG-INFO +46 -1
  2. {borgitory-3.0.0 → borgitory-3.1.1}/README.md +44 -0
  3. {borgitory-3.0.0 → borgitory-3.1.1}/pyproject.toml +32 -12
  4. borgitory-3.1.1/src/borgitory/alembic/versions/a4c2e8f1b7d3_add_notify_on_to_notification_configs.py +33 -0
  5. borgitory-3.1.1/src/borgitory/alembic/versions/a7e2c4f1d8b3_hash_session_tokens.py +46 -0
  6. borgitory-3.1.1/src/borgitory/alembic/versions/b91d3e6a2f57_make_repository_encryption_type_not_null.py +43 -0
  7. borgitory-3.1.1/src/borgitory/alembic/versions/c3f1a7d2b9e4_add_remote_ssh_fields_to_repositories.py +35 -0
  8. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/auth.py +45 -9
  9. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/cloud_sync/cloud_sync.py +26 -23
  10. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/debug.py +14 -3
  11. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/notifications.py +52 -3
  12. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/repositories.py +13 -1
  13. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/repository_check_configs.py +3 -1
  14. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/repository_stats.py +31 -12
  15. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/schedules.py +3 -1
  16. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/dependencies.py +2 -0
  17. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/main.py +22 -10
  18. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/borg_info.py +2 -1
  19. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/database.py +41 -0
  20. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/repository_dtos.py +4 -0
  21. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/schemas.py +78 -3
  22. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/command_protocols.py +2 -0
  23. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/job_output_manager_protocol.py +10 -0
  24. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/job_protocols.py +4 -0
  25. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/archives/archive_manager.py +10 -4
  26. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/borg/borg_pattern_validation_service.py +5 -5
  27. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/borg_service.py +18 -40
  28. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/orchestration.py +3 -2
  29. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/registry.py +2 -2
  30. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/registry_factory.py +2 -2
  31. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/base.py +21 -0
  32. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/pcloud_storage.py +14 -7
  33. borgitory-3.1.1/src/borgitory/services/cloud_providers/storage/rclone_credentials.py +51 -0
  34. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/s3_storage.py +25 -29
  35. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/sftp_storage.py +23 -34
  36. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/smb_storage.py +21 -33
  37. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_sync_config_service.py +2 -2
  38. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/command_execution/linux_command_executor.py +3 -2
  39. borgitory-3.1.1/src/borgitory/services/command_execution/redaction.py +35 -0
  40. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/command_execution/wsl_command_executor.py +3 -1
  41. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/debug_service.py +15 -4
  42. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/files/linux_file_service.py +18 -10
  43. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/hooks/hook_config.py +2 -2
  44. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_database_manager.py +2 -0
  45. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_executor.py +7 -1
  46. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_manager.py +49 -15
  47. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_models.py +25 -3
  48. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_output_manager.py +22 -11
  49. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_queue_manager.py +15 -7
  50. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_render_service.py +2 -2
  51. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_stream_service.py +33 -25
  52. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/backup_task_executor.py +12 -17
  53. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/check_task_executor.py +9 -10
  54. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/cloud_sync_task_executor.py +17 -8
  55. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/compact_task_executor.py +7 -6
  56. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/notification_task_executor.py +39 -10
  57. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/prune_task_executor.py +7 -6
  58. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/notifications/apprise_storage.py +3 -1
  59. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/notifications/config_service.py +12 -3
  60. borgitory-3.1.1/src/borgitory/services/notifications/types.py +96 -0
  61. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/recovery_service.py +4 -0
  62. borgitory-3.1.1/src/borgitory/services/repositories/repository_environment.py +56 -0
  63. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/repositories/repository_service.py +117 -20
  64. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/repositories/repository_stats_service.py +25 -3
  65. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/scheduling/scheduler_service.py +8 -14
  66. borgitory-3.1.1/src/borgitory/services/ssh/repository_ssh_service.py +160 -0
  67. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/system/system_operations.py +15 -8
  68. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/task_definition_builder.py +1 -1
  69. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/upcoming_backups_service.py +5 -4
  70. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/backups/manual_form.html +1 -1
  71. borgitory-3.1.1/src/borgitory/templates/partials/cloud_sync/tab.html +16 -0
  72. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/task_item_streaming.html +20 -10
  73. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/add_form.html +3 -0
  74. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/config_list_content.html +4 -0
  75. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/edit_form.html +1 -0
  76. borgitory-3.1.1/src/borgitory/templates/partials/notifications/notify_on_select.html +21 -0
  77. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/create/form_create.html +6 -4
  78. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/import/form_import.html +5 -3
  79. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/list_content.html +1 -1
  80. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/modal/borg_info.html +5 -1
  81. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/modal/details_modal.html +5 -2
  82. borgitory-3.1.1/src/borgitory/templates/partials/repositories/ssh_fields.html +41 -0
  83. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/create_form.html +1 -1
  84. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/edit_form.html +1 -1
  85. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/path_autocomplete_dropdown.html +6 -4
  86. borgitory-3.1.1/src/borgitory/utils/background_tasks.py +68 -0
  87. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/secure_path.py +15 -6
  88. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/security.py +50 -4
  89. borgitory-3.1.1/src/borgitory/utils/web_security.py +164 -0
  90. {borgitory-3.0.0 → borgitory-3.1.1}/tests/conftest.py +8 -0
  91. {borgitory-3.0.0 → borgitory-3.1.1}/tests/fixtures/job_fixtures.py +6 -3
  92. borgitory-3.1.1/tests/integration/auth/test_auth_hardening.py +73 -0
  93. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/notifications/test_notification_configs_api.py +112 -0
  94. borgitory-3.1.1/tests/integration/repositories/test_remote_ssh_repositories.py +562 -0
  95. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/repositories/test_repository_stats_html.py +2 -1
  96. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_cron_description_api.py +1 -1
  97. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_cron_description_htmx_api.py +1 -1
  98. borgitory-3.1.1/tests/integration/ssh_server.py +187 -0
  99. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_app_startup.py +15 -3
  100. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/archives/test_archive_manager_caching.py +3 -2
  101. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/borg/test_borg_service_core.py +27 -1
  102. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_orchestration.py +12 -27
  103. borgitory-3.1.1/tests/unit/cloud_providers/test_process_cleanup.py +58 -0
  104. borgitory-3.1.1/tests/unit/cloud_providers/test_rclone_credentials.py +138 -0
  105. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_sftp_storage.py +2 -1
  106. borgitory-3.1.1/tests/unit/command_execution/test_redaction.py +22 -0
  107. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_job_manager_critical_hooks.py +1 -1
  108. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_backup_source_paths.py +2 -2
  109. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_compact_task_executor.py +8 -2
  110. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_ignore_lock_functionality.py +2 -2
  111. borgitory-3.1.1/tests/unit/jobs/test_job_memory_bounds.py +67 -0
  112. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_stream_service.py +59 -2
  113. borgitory-3.1.1/tests/unit/jobs/test_notification_task_executor_policy.py +236 -0
  114. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/notifications/test_notification_config_service.py +54 -1
  115. borgitory-3.1.1/tests/unit/notifications/test_notification_policy.py +56 -0
  116. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/protocols/test_protocol_compliance.py +1 -1
  117. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/protocols/test_simple_command_runner_protocol.py +1 -1
  118. borgitory-3.1.1/tests/unit/repositories/test_remote_repositories.py +678 -0
  119. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/repositories/test_repository_management_service.py +2 -0
  120. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/services/test_borg_pattern_validation_service.py +1 -1
  121. borgitory-3.1.1/tests/unit/templates/test_task_item_streaming_template.py +118 -0
  122. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_cron_description_service.py +1 -1
  123. borgitory-3.1.1/tests/unit/test_migration_drift.py +116 -0
  124. borgitory-3.1.1/tests/unit/test_route_auth.py +112 -0
  125. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_streaming_edge_cases.py +3 -2
  126. borgitory-3.1.1/tests/unit/utils/__init__.py +0 -0
  127. borgitory-3.1.1/tests/unit/utils/test_background_tasks.py +51 -0
  128. borgitory-3.1.1/tests/unit/utils/test_secret_key.py +33 -0
  129. borgitory-3.1.1/tests/unit/utils/test_web_security.py +130 -0
  130. {borgitory-3.0.0 → borgitory-3.1.1}/tests/utils/di_testing.py +1 -1
  131. borgitory-3.0.0/src/borgitory/services/notifications/types.py +0 -49
  132. borgitory-3.0.0/src/borgitory/templates/partials/cloud_sync/tab.html +0 -12
  133. {borgitory-3.0.0 → borgitory-3.1.1}/.gitignore +0 -0
  134. {borgitory-3.0.0 → borgitory-3.1.1}/LICENSE +0 -0
  135. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/__init__.py +0 -0
  136. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/README +0 -0
  137. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/env.py +0 -0
  138. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/script.py.mako +0 -0
  139. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/02b7b29d38c0_add_encryption_type_and_keyfile_content_.py +0 -0
  140. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/18b9095bc772_add_patterns_column_to_schedules_table.py +0 -0
  141. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/1bf41c3dc043_multiple_source_paths_for_schedules.py +0 -0
  142. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/1d47e9231dd0_rename_cleanup_to_prune.py +0 -0
  143. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/256b9fa9d31f_manual_only_and_dry_run_schedules.py +0 -0
  144. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/2628b151e709_make_passphrase_optional.py +0 -0
  145. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/3335c0eac68e_create_initial_schema.py +0 -0
  146. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/5e6cc17d11a5_user_installed_packages.py +0 -0
  147. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/78c9fff46e06_add_compact_after_field_to_pruneconfig.py +0 -0
  148. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/8390ab2be88a_migrate_notifications_to_apprise.py +0 -0
  149. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/9b5d5f5e8cbc_add_pre_post_job_hooks_to_schedule.py +0 -0
  150. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/9e4c8456ea53_add_cache_dir_field_to_repositories_.py +0 -0
  151. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/9f06f8c8088d_initial_empty_state.py +0 -0
  152. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/d294fdc9a5e7_fix_uuid_columns_for_sqlite.py +0 -0
  153. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic/versions/eb3518e71c73_add_more_prune_settings_to_cleanup_.py +0 -0
  154. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/alembic.ini +0 -0
  155. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/__init__.py +0 -0
  156. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/backups.py +0 -0
  157. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/cancel_on_disconnect.py +0 -0
  158. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/cloud_sync/__init__.py +0 -0
  159. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/cloud_sync/s3.py +0 -0
  160. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/jobs.py +0 -0
  161. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/packages.py +0 -0
  162. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/prune.py +0 -0
  163. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/shared.py +0 -0
  164. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/api/tabs.py +0 -0
  165. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/cli.py +0 -0
  166. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/config/__init__.py +0 -0
  167. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/config/command_runner_config.py +0 -0
  168. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/config/job_manager_config.py +0 -0
  169. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/config_module.py +0 -0
  170. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/constants/__init__.py +0 -0
  171. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/constants/retention.py +0 -0
  172. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/custom_types.py +0 -0
  173. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/factories/__init__.py +0 -0
  174. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/factories/service_factory.py +0 -0
  175. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/__init__.py +0 -0
  176. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/enums.py +0 -0
  177. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/job_results.py +0 -0
  178. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/models/patterns.py +0 -0
  179. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/__init__.py +0 -0
  180. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/archive_manager_protocol.py +0 -0
  181. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/cloud_protocols.py +0 -0
  182. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/command_executor_protocol.py +0 -0
  183. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/environment_protocol.py +0 -0
  184. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/file_protocols.py +0 -0
  185. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/job_database_manager_protocol.py +0 -0
  186. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/job_event_broadcaster_protocol.py +0 -0
  187. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/job_queue_manager_protocol.py +0 -0
  188. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/notification_protocols.py +0 -0
  189. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/path_protocols.py +0 -0
  190. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/repository_protocols.py +0 -0
  191. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/storage_protocols.py +0 -0
  192. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/protocols/system_protocol.py +0 -0
  193. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/py.typed +0 -0
  194. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/__init__.py +0 -0
  195. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/archives/archive_models.py +0 -0
  196. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/borg/shell_pattern.py +0 -0
  197. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/__init__.py +0 -0
  198. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/cloud_sync_service.py +0 -0
  199. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/__init__.py +0 -0
  200. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/storage/s3_provider_config.py +0 -0
  201. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cloud_providers/types.py +0 -0
  202. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/command_execution/__init__.py +0 -0
  203. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/command_execution/command_executor_factory.py +0 -0
  204. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/configuration_service.py +0 -0
  205. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/cron_description_service.py +0 -0
  206. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/encryption_service.py +0 -0
  207. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/files/file_service_factory.py +0 -0
  208. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/files/wsl_file_service.py +0 -0
  209. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/hooks/__init__.py +0 -0
  210. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/hooks/hook_execution_service.py +0 -0
  211. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/broadcaster/event_type.py +0 -0
  212. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/broadcaster/job_event.py +0 -0
  213. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/broadcaster/job_event_broadcaster.py +0 -0
  214. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_manager_factory.py +0 -0
  215. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/job_service.py +0 -0
  216. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/__init__.py +0 -0
  217. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/jobs/task_executors/hook_task_executor.py +0 -0
  218. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/migrations/__init__.py +0 -0
  219. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/migrations/migration_factory.py +0 -0
  220. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/migrations/migration_service.py +0 -0
  221. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/notifications/__init__.py +0 -0
  222. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/notifications/apprise_catalog.py +0 -0
  223. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/notifications/apprise_url_builder.py +0 -0
  224. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/notifications/service.py +0 -0
  225. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/package_manager_service.py +0 -0
  226. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/path/__init__.py +0 -0
  227. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/path/path_service.py +0 -0
  228. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/path/path_service_factory.py +0 -0
  229. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/path/platform_service.py +0 -0
  230. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/prune_service.py +0 -0
  231. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/rclone_service.py +0 -0
  232. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/rclone_types.py +0 -0
  233. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/repositories/repository_check_config_service.py +0 -0
  234. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/scheduling/cron_utils.py +0 -0
  235. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/scheduling/hook_service.py +0 -0
  236. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/scheduling/pattern_service.py +0 -0
  237. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/scheduling/schedule_service.py +0 -0
  238. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/simple_command_runner.py +0 -0
  239. {borgitory-3.0.0/tests/integration/archives → borgitory-3.1.1/src/borgitory/services/ssh}/__init__.py +0 -0
  240. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/startup/package_restoration_service.py +0 -0
  241. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/system/__init__.py +0 -0
  242. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/volumes/file_system_interface.py +0 -0
  243. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/services/volumes/os_file_system.py +0 -0
  244. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/css/modern-components.css +0 -0
  245. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/css/tailwind-input.css +0 -0
  246. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/android-chrome-192x192.png +0 -0
  247. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/android-chrome-512x512.png +0 -0
  248. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/apple-touch-icon.png +0 -0
  249. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/favicon-16x16.png +0 -0
  250. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/favicon-32x32.png +0 -0
  251. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/favicon.ico +0 -0
  252. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/favicon/site.webmanifest +0 -0
  253. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/js/app.js +0 -0
  254. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/js/components/jobs.js +0 -0
  255. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/js/components/navigation.js +0 -0
  256. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/vendor/chart.min.js +0 -0
  257. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/vendor/htmx-ext-json-enc.js +0 -0
  258. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/vendor/htmx-ext-sse.js +0 -0
  259. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/static/vendor/htmx.min.js +0 -0
  260. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/base.html +0 -0
  261. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/index.html +0 -0
  262. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/login.html +0 -0
  263. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/macros/datetime.html +0 -0
  264. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/contents_modal.html +0 -0
  265. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/directory_contents.html +0 -0
  266. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/directory_loading_state.html +0 -0
  267. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/directory_loading_with_trigger.html +0 -0
  268. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/empty_state.html +0 -0
  269. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/error_message.html +0 -0
  270. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/list_content.html +0 -0
  271. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/loading_state.html +0 -0
  272. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/loading_with_trigger.html +0 -0
  273. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/repository_selector.html +0 -0
  274. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/archives/tab.html +0 -0
  275. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/auth/login_error.html +0 -0
  276. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/auth/login_form_active.html +0 -0
  277. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/auth/login_success.html +0 -0
  278. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/auth/register_error.html +0 -0
  279. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/auth/register_form_active.html +0 -0
  280. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/auth/register_success.html +0 -0
  281. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/backups/operations.html +0 -0
  282. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/backups/tab.html +0 -0
  283. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/action_error.html +0 -0
  284. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/action_success.html +0 -0
  285. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/config_list_content.html +0 -0
  286. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/create_error.html +0 -0
  287. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/create_success.html +0 -0
  288. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/form.html +0 -0
  289. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/list.html +0 -0
  290. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/provider_fields.html +0 -0
  291. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/pcloud/pcloud_fields.html +0 -0
  292. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_endpoint_field.html +0 -0
  293. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_fields.html +0 -0
  294. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_provider_options.html +0 -0
  295. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_region_options.html +0 -0
  296. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/s3/s3_storage_class_options.html +0 -0
  297. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/sftp/sftp_fields.html +0 -0
  298. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/providers/smb/smb_fields.html +0 -0
  299. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/test_error.html +0 -0
  300. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/test_success.html +0 -0
  301. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/test_warning.html +0 -0
  302. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/update_error.html +0 -0
  303. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/cloud_sync/update_success.html +0 -0
  304. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/common/error_message.html +0 -0
  305. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/debug/debug_panel.html +0 -0
  306. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/debug/tab.html +0 -0
  307. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/backup_error.html +0 -0
  308. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/backup_success.html +0 -0
  309. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/current_jobs_list.html +0 -0
  310. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/empty_state.html +0 -0
  311. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/error_state.html +0 -0
  312. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/job_details_static.html +0 -0
  313. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/job_details_streaming.html +0 -0
  314. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/job_item.html +0 -0
  315. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/job_stop_error.html +0 -0
  316. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/job_stop_success.html +0 -0
  317. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/tab.html +0 -0
  318. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/jobs/task_item_static.html +0 -0
  319. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/navigation.html +0 -0
  320. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/navigation_nav.html +0 -0
  321. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/action_error.html +0 -0
  322. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/action_success.html +0 -0
  323. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/apprise_fields.html +0 -0
  324. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/create_error.html +0 -0
  325. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/create_success.html +0 -0
  326. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/list.html +0 -0
  327. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/manual_fields.html +0 -0
  328. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/service_select.html +0 -0
  329. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/tab.html +0 -0
  330. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/test_error.html +0 -0
  331. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/test_success.html +0 -0
  332. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/update_error.html +0 -0
  333. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/notifications/update_success.html +0 -0
  334. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/empty_search.html +0 -0
  335. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/error.html +0 -0
  336. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/install_error.html +0 -0
  337. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/install_success.html +0 -0
  338. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/installed_list.html +0 -0
  339. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/package_manager.html +0 -0
  340. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/remove_error.html +0 -0
  341. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/remove_success.html +0 -0
  342. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/search_error.html +0 -0
  343. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/search_results.html +0 -0
  344. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/selected_packages.html +0 -0
  345. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/packages/tab.html +0 -0
  346. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/action_error.html +0 -0
  347. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/action_success.html +0 -0
  348. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/config_form.html +0 -0
  349. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/config_form_error.html +0 -0
  350. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/config_form_success.html +0 -0
  351. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/config_list_content.html +0 -0
  352. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/create_error.html +0 -0
  353. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/create_success.html +0 -0
  354. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/delete_error.html +0 -0
  355. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/delete_success.html +0 -0
  356. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/form.html +0 -0
  357. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/policies.html +0 -0
  358. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/prune_error.html +0 -0
  359. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/prune_success.html +0 -0
  360. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/retention_fields.html +0 -0
  361. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/strategy_fields.html +0 -0
  362. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/tab.html +0 -0
  363. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/update_error.html +0 -0
  364. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/prune/update_success.html +0 -0
  365. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/create/form_create_error.html +0 -0
  366. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/create/form_create_success.html +0 -0
  367. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/create/form_update_error.html +0 -0
  368. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/create/form_update_success.html +0 -0
  369. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/create/passphrase_field.html +0 -0
  370. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/delete_success.html +0 -0
  371. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/import/encryption_fields.html +0 -0
  372. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/import/form_import_error.html +0 -0
  373. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/import/form_import_success.html +0 -0
  374. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/list.html +0 -0
  375. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/modal/break_lock_button.html +0 -0
  376. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/modal/break_lock_button_modal.html +0 -0
  377. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/modal/lock_status.html +0 -0
  378. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repositories/tab.html +0 -0
  379. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/action_error.html +0 -0
  380. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/action_success.html +0 -0
  381. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/check_error.html +0 -0
  382. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/check_success.html +0 -0
  383. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/config_list_content.html +0 -0
  384. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/create_error.html +0 -0
  385. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/create_form.html +0 -0
  386. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/create_success.html +0 -0
  387. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/custom_options.html +0 -0
  388. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/delete_error.html +0 -0
  389. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/delete_success.html +0 -0
  390. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/dynamic_options.html +0 -0
  391. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/edit_form.html +0 -0
  392. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/form.html +0 -0
  393. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/tab.html +0 -0
  394. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/update_error.html +0 -0
  395. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_check/update_success.html +0 -0
  396. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/repository_stats/stats_panel.html +0 -0
  397. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/create_error.html +0 -0
  398. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/create_success.html +0 -0
  399. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/cron_description.html +0 -0
  400. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/cron_expression_form.html +0 -0
  401. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/delete_error.html +0 -0
  402. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/delete_success.html +0 -0
  403. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/hooks/hook_field_modal.html +0 -0
  404. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/hooks/hooks_container.html +0 -0
  405. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/hooks/hooks_edit_content.html +0 -0
  406. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/hooks/hooks_modal.html +0 -0
  407. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/hooks/hooks_save_response.html +0 -0
  408. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/hooks/hooks_validation_error.html +0 -0
  409. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/list.html +0 -0
  410. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/pattern_field_modal.html +0 -0
  411. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/pattern_validation_result.html +0 -0
  412. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/patterns_container.html +0 -0
  413. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/patterns_modal.html +0 -0
  414. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/patterns_save_response.html +0 -0
  415. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_error.html +0 -0
  416. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/patterns/patterns_validation_results.html +0 -0
  417. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/run_success.html +0 -0
  418. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/schedule_list_content.html +0 -0
  419. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/tab.html +0 -0
  420. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/upcoming.html +0 -0
  421. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/upcoming_backups_content.html +0 -0
  422. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/update_error.html +0 -0
  423. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/schedules/update_success.html +0 -0
  424. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/notification.html +0 -0
  425. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/package_autocomplete.html +0 -0
  426. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/path_autocomplete.html +0 -0
  427. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/path_autocomplete_loading.html +0 -0
  428. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/source_path_row.html +0 -0
  429. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/shared/source_paths_input.html +0 -0
  430. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/statistics/empty_state.html +0 -0
  431. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/statistics/loading_state.html +0 -0
  432. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/statistics/repository_selector.html +0 -0
  433. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/templates/partials/statistics/tab.html +0 -0
  434. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/__init__.py +0 -0
  435. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/datetime_utils.py +0 -0
  436. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/path_prefix.py +0 -0
  437. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/template_paths.py +0 -0
  438. {borgitory-3.0.0 → borgitory-3.1.1}/src/borgitory/utils/template_responses.py +0 -0
  439. {borgitory-3.0.0 → borgitory-3.1.1}/tests/__init__.py +0 -0
  440. {borgitory-3.0.0 → borgitory-3.1.1}/tests/e2e/__init__.py +0 -0
  441. {borgitory-3.0.0 → borgitory-3.1.1}/tests/e2e/cloud_providers/test_cloud_providers.py +0 -0
  442. {borgitory-3.0.0 → borgitory-3.1.1}/tests/e2e/conftest.py +0 -0
  443. {borgitory-3.0.0 → borgitory-3.1.1}/tests/e2e/pytest.e2e.ini +0 -0
  444. {borgitory-3.0.0 → borgitory-3.1.1}/tests/e2e/test_navigation.py +0 -0
  445. {borgitory-3.0.0 → borgitory-3.1.1}/tests/fixtures/__init__.py +0 -0
  446. {borgitory-3.0.0 → borgitory-3.1.1}/tests/fixtures/notification_fixtures.py +0 -0
  447. {borgitory-3.0.0 → borgitory-3.1.1}/tests/fixtures/registry_fixtures.py +0 -0
  448. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/__init__.py +0 -0
  449. {borgitory-3.0.0/tests/integration/auth → borgitory-3.1.1/tests/integration/archives}/__init__.py +0 -0
  450. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/archives/test_archive_browser_htmx.py +0 -0
  451. {borgitory-3.0.0/tests/integration/cloud_sync → borgitory-3.1.1/tests/integration/auth}/__init__.py +0 -0
  452. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/auth/test_auth_htmx.py +0 -0
  453. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/auth/test_auth_redirect_flow.py +0 -0
  454. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/auth/test_main_login_page.py +0 -0
  455. {borgitory-3.0.0/tests/integration/jobs → borgitory-3.1.1/tests/integration/cloud_sync}/__init__.py +0 -0
  456. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/cloud_sync/test_cloud_sync_api.py +0 -0
  457. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/cloud_sync/test_s3_api.py +0 -0
  458. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/conftest.py +0 -0
  459. {borgitory-3.0.0/tests/integration/notifications → borgitory-3.1.1/tests/integration/jobs}/__init__.py +0 -0
  460. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/jobs/test_job_stop_api_simple.py +0 -0
  461. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/jobs/test_job_stop_integration.py +0 -0
  462. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/jobs/test_jobs_api_sse.py +0 -0
  463. {borgitory-3.0.0/tests/integration/packages → borgitory-3.1.1/tests/integration/notifications}/__init__.py +0 -0
  464. {borgitory-3.0.0/tests/integration/repositories → borgitory-3.1.1/tests/integration/packages}/__init__.py +0 -0
  465. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/packages/test_package_selection_endpoints.py +0 -0
  466. {borgitory-3.0.0/tests/integration/schedules → borgitory-3.1.1/tests/integration/repositories}/__init__.py +0 -0
  467. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/repositories/test_repositories_api.py +0 -0
  468. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/repositories/test_repository_check_configs_api.py +0 -0
  469. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/repositories/test_repository_management_api.py +0 -0
  470. {borgitory-3.0.0/tests/unit → borgitory-3.1.1/tests/integration/schedules}/__init__.py +0 -0
  471. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_manual_run_apscheduler.py +0 -0
  472. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_schedule_creation_api.py +0 -0
  473. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_schedules_api.py +0 -0
  474. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_schedules_hooks_api.py +0 -0
  475. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/schedules/test_schedules_patterns_api.py +0 -0
  476. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_backups_api.py +0 -0
  477. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_basic.py +0 -0
  478. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_basic_endpoints.py +0 -0
  479. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_di_testing_infrastructure.py +0 -0
  480. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_jobs_api.py +0 -0
  481. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_prune_api.py +0 -0
  482. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_repository_archives_navigation.py +0 -0
  483. {borgitory-3.0.0 → borgitory-3.1.1}/tests/integration/test_tabs_api.py +0 -0
  484. {borgitory-3.0.0/tests/unit/archives → borgitory-3.1.1/tests/unit}/__init__.py +0 -0
  485. {borgitory-3.0.0/tests/unit/borg → borgitory-3.1.1/tests/unit/archives}/__init__.py +0 -0
  486. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/archives/test_archive_manager.py +0 -0
  487. {borgitory-3.0.0/tests/unit/cloud_providers → borgitory-3.1.1/tests/unit/borg}/__init__.py +0 -0
  488. {borgitory-3.0.0/tests/unit/command_execution → borgitory-3.1.1/tests/unit/cloud_providers}/__init__.py +0 -0
  489. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_display_details.py +0 -0
  490. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_pcloud_storage.py +0 -0
  491. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_provider_validation.py +0 -0
  492. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_registry.py +0 -0
  493. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_registry_integration.py +0 -0
  494. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_s3_provider_config.py +0 -0
  495. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_schema_validation.py +0 -0
  496. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_service.py +0 -0
  497. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_smb_storage.py +0 -0
  498. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_storage.py +0 -0
  499. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/cloud_providers/test_types.py +0 -0
  500. {borgitory-3.0.0/tests/unit/factories → borgitory-3.1.1/tests/unit/command_execution}/__init__.py +0 -0
  501. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/command_execution/test_linux_command_executor.py +0 -0
  502. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/command_execution/test_wsl_command_executor.py +0 -0
  503. {borgitory-3.0.0/tests/unit/hooks → borgitory-3.1.1/tests/unit/factories}/__init__.py +0 -0
  504. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/factories/test_service_factory.py +0 -0
  505. {borgitory-3.0.0/tests/unit/jobs → borgitory-3.1.1/tests/unit/hooks}/__init__.py +0 -0
  506. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_api_critical_hooks.py +0 -0
  507. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_composite_job_critical_failure.py +0 -0
  508. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_critical_hook_config.py +0 -0
  509. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_critical_hook_execution.py +0 -0
  510. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_hook_config.py +0 -0
  511. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_hook_execution_service.py +0 -0
  512. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_notification_messages_hooks.py +0 -0
  513. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/hooks/test_task_definition_integration.py +0 -0
  514. {borgitory-3.0.0/tests/unit/notifications → borgitory-3.1.1/tests/unit/jobs}/__init__.py +0 -0
  515. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/conftest.py +0 -0
  516. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_database_integration.py +0 -0
  517. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_database_manager.py +0 -0
  518. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_event_broadcaster.py +0 -0
  519. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_executor.py +0 -0
  520. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_executor_comprehensive.py +0 -0
  521. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_manager.py +0 -0
  522. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_manager_comprehensive.py +0 -0
  523. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_manager_factory.py +0 -0
  524. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_manager_stop.py +0 -0
  525. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_manager_task_execution.py +0 -0
  526. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_output_manager.py +0 -0
  527. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_render_service_coverage.py +0 -0
  528. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_render_service_new_architecture.py +0 -0
  529. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_service.py +0 -0
  530. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_stop_functionality.py +0 -0
  531. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_job_stop_service.py +0 -0
  532. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/jobs/test_sse_multiline_formatting.py +0 -0
  533. {borgitory-3.0.0/tests/unit/packages → borgitory-3.1.1/tests/unit/notifications}/__init__.py +0 -0
  534. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/notifications/test_apprise_catalog.py +0 -0
  535. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/notifications/test_apprise_url_builder.py +0 -0
  536. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/notifications/test_notification_service.py +0 -0
  537. {borgitory-3.0.0/tests/unit/protocols → borgitory-3.1.1/tests/unit/packages}/__init__.py +0 -0
  538. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/packages/test_package_database_integration.py +0 -0
  539. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/packages/test_package_manager_service.py +0 -0
  540. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/path/test_platform_service_macos.py +0 -0
  541. {borgitory-3.0.0/tests/unit/repositories → borgitory-3.1.1/tests/unit/protocols}/__init__.py +0 -0
  542. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/protocols/protocol_testing_utils.py +0 -0
  543. {borgitory-3.0.0/tests/unit/schedules → borgitory-3.1.1/tests/unit/repositories}/__init__.py +0 -0
  544. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/repositories/test_repository_check_config_service.py +0 -0
  545. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/repositories/test_repository_service.py +0 -0
  546. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/repositories/test_repository_stats_service_unit.py +0 -0
  547. {borgitory-3.0.0/tests/unit/scheduling → borgitory-3.1.1/tests/unit/schedules}/__init__.py +0 -0
  548. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/schedules/test_next_run_update.py +0 -0
  549. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/schedules/test_schedule_service.py +0 -0
  550. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/schedules/test_schedule_validation_service.py +0 -0
  551. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/schedules/test_scheduler_service.py +0 -0
  552. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/schedules/test_validate_patterns_json.py +0 -0
  553. {borgitory-3.0.0/tests/unit/services → borgitory-3.1.1/tests/unit/scheduling}/__init__.py +0 -0
  554. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/scheduling/test_cron_utils.py +0 -0
  555. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/scheduling/test_hook_service.py +0 -0
  556. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/scheduling/test_pattern_service.py +0 -0
  557. {borgitory-3.0.0/tests/unit/services/migrations → borgitory-3.1.1/tests/unit/services}/__init__.py +0 -0
  558. {borgitory-3.0.0/tests/unit/templates → borgitory-3.1.1/tests/unit/services/migrations}/__init__.py +0 -0
  559. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/services/migrations/test_migration_service.py +0 -0
  560. {borgitory-3.0.0/tests/unit/utils → borgitory-3.1.1/tests/unit/templates}/__init__.py +0 -0
  561. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/templates/test_current_jobs_template.py +0 -0
  562. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_cache_dir_functionality.py +0 -0
  563. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_cache_dir_normalization.py +0 -0
  564. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_database_models.py +0 -0
  565. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_datetime_utils.py +0 -0
  566. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_debug_service.py +0 -0
  567. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_dependencies.py +0 -0
  568. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_job_manager_proper_di.py +0 -0
  569. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_migrate_notifications_to_apprise.py +0 -0
  570. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_multiple_source_paths_migration.py +0 -0
  571. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_path_service.py +0 -0
  572. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_prune_service.py +0 -0
  573. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_recovery_service.py +0 -0
  574. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_retention_constants.py +0 -0
  575. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_secure_borg_command_env.py +0 -0
  576. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_secure_path_comprehensive.py +0 -0
  577. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_simple_command_runner.py +0 -0
  578. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_source_paths_schema.py +0 -0
  579. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_streaming_fixes.py +0 -0
  580. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/test_task_definition_builder.py +0 -0
  581. {borgitory-3.0.0 → borgitory-3.1.1}/tests/unit/utils/test_path_prefix.py +0 -0
  582. {borgitory-3.0.0 → borgitory-3.1.1}/tests/utils/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: borgitory
3
- Version: 3.0.0
3
+ Version: 3.1.1
4
4
  Summary: A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities.
5
5
  Project-URL: Homepage, https://borgitory.com
6
6
  Project-URL: Repository, https://github.com/mlapaglia/Borgitory
@@ -35,6 +35,7 @@ Classifier: License :: OSI Approved :: MIT License
35
35
  Classifier: Operating System :: OS Independent
36
36
  Classifier: Programming Language :: Python :: 3
37
37
  Classifier: Programming Language :: Python :: 3.14
38
+ Classifier: Programming Language :: Python :: 3.15
38
39
  Classifier: Topic :: System :: Archiving :: Backup
39
40
  Classifier: Topic :: System :: Systems Administration
40
41
  Requires-Python: >=3.14
@@ -178,3 +179,47 @@ borgitory serve --host 0.0.0.0 --port 8000
178
179
  - Python 3.14+ installed
179
180
  - Rclone installed (optional, for cloud sync features)
180
181
  - BorgBackup does not have a native Windows executable, so WSL2 is required for all backup operations
182
+
183
+ ### Running behind a reverse proxy (HTTPS)
184
+
185
+ | Variable | Default | Purpose |
186
+ |---|---|---|
187
+ | `BORGITORY_SECURE_COOKIES` | auto | `true` marks the session cookie `Secure`. Set it when TLS terminates at a proxy; by default the cookie is only `Secure` when Borgitory itself sees an `https` request. |
188
+ | `BORGITORY_TRUSTED_ORIGINS` | *(empty)* | Comma-separated origins (e.g. `https://backup.example.com`) allowed to make state-changing requests if your proxy rewrites the `Host` header and your browser does not send `Sec-Fetch-Site`. Not normally needed. |
189
+
190
+ Borgitory rejects cross-site `POST`/`PUT`/`PATCH`/`DELETE` requests (CSRF protection), and throttles repeated failed logins per client IP.
191
+
192
+ The container exposes an unauthenticated `GET /health` endpoint for health checks; the image's `HEALTHCHECK` uses it.
193
+
194
+ ### Development with Docker
195
+
196
+ `docker-compose.yml` runs the production image. To attach a debugger, layer the development override, which builds the `dev` image target and publishes debugpy on `127.0.0.1:5678` only:
197
+
198
+ ```bash
199
+ docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
200
+ ```
201
+
202
+ Python dependencies are pinned with hashes in `requirements.txt` (runtime) and `requirements-dev.txt` (development). After changing dependencies in `pyproject.toml`, regenerate them:
203
+
204
+ ```bash
205
+ uv pip compile pyproject.toml --universal --generate-hashes --python-version 3.14 -o requirements.txt
206
+ uv pip compile pyproject.toml --extra dev --universal --generate-hashes --python-version 3.14 -o requirements-dev.txt
207
+ ```
208
+
209
+ ### Remote Repositories (SSH)
210
+
211
+ Borgitory can back up directly to a repository on a remote borg server, such as BorgBase, a Hetzner Storage Box, or another machine running borg. This keeps an off-site copy that is a separate borg repository rather than an rclone mirror of a local one, so corruption of the local repository does not spread to it. This is not full ransomware protection on its own: a backup that runs after files are encrypted stores the encrypted files, and prune can remove older clean archives. Use append-only mode (below) and a retention policy that keeps older archives.
212
+
213
+ Remote repositories need an SSH client (`ssh`) on the machine running borg. The Docker image includes one; for PyPI installs, install it alongside borg (for example `sudo apt install openssh-client`).
214
+
215
+ When creating or importing a repository, enter an `ssh://` URL as the path:
216
+
217
+ - BorgBase: `ssh://abcd1234@abcd1234.repo.borgbase.com/./repo`
218
+ - Hetzner Storage Box: `ssh://u123456@u123456.your-storagebox.de:23/./backups/repo` (set **Remote Borg Path** to `borg-1.4`)
219
+ - Your own server: `ssh://borg@nas.example.com/./borg/repo` (`/./` means relative to the user's home directory)
220
+
221
+ Paste the SSH private key into the form and add its public key to the server's `authorized_keys`. The key is stored encrypted in the database. The server's host key is trusted on first connection and saved in `<data dir>/ssh/known_hosts`. If the host key later changes deliberately, remove the old entry with `ssh-keygen -R host -f <data dir>/ssh/known_hosts` for port 22, or `ssh-keygen -R "[host]:port" -f <data dir>/ssh/known_hosts` for any other port.
222
+
223
+ For backups that can't be deleted from the client, restrict the key on the server to append-only mode in `authorized_keys`, for example `command="borg serve --append-only --restrict-to-path /home/borg/repo",restrict ssh-ed25519 AAAA...`. Borgitory can't enforce this itself, and in append-only mode prune and compact won't free space on the server.
224
+
225
+ Cloud sync only applies to local repositories and is skipped for remote ones.
@@ -104,3 +104,47 @@ borgitory serve --host 0.0.0.0 --port 8000
104
104
  - Python 3.14+ installed
105
105
  - Rclone installed (optional, for cloud sync features)
106
106
  - BorgBackup does not have a native Windows executable, so WSL2 is required for all backup operations
107
+
108
+ ### Running behind a reverse proxy (HTTPS)
109
+
110
+ | Variable | Default | Purpose |
111
+ |---|---|---|
112
+ | `BORGITORY_SECURE_COOKIES` | auto | `true` marks the session cookie `Secure`. Set it when TLS terminates at a proxy; by default the cookie is only `Secure` when Borgitory itself sees an `https` request. |
113
+ | `BORGITORY_TRUSTED_ORIGINS` | *(empty)* | Comma-separated origins (e.g. `https://backup.example.com`) allowed to make state-changing requests if your proxy rewrites the `Host` header and your browser does not send `Sec-Fetch-Site`. Not normally needed. |
114
+
115
+ Borgitory rejects cross-site `POST`/`PUT`/`PATCH`/`DELETE` requests (CSRF protection), and throttles repeated failed logins per client IP.
116
+
117
+ The container exposes an unauthenticated `GET /health` endpoint for health checks; the image's `HEALTHCHECK` uses it.
118
+
119
+ ### Development with Docker
120
+
121
+ `docker-compose.yml` runs the production image. To attach a debugger, layer the development override, which builds the `dev` image target and publishes debugpy on `127.0.0.1:5678` only:
122
+
123
+ ```bash
124
+ docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build
125
+ ```
126
+
127
+ Python dependencies are pinned with hashes in `requirements.txt` (runtime) and `requirements-dev.txt` (development). After changing dependencies in `pyproject.toml`, regenerate them:
128
+
129
+ ```bash
130
+ uv pip compile pyproject.toml --universal --generate-hashes --python-version 3.14 -o requirements.txt
131
+ uv pip compile pyproject.toml --extra dev --universal --generate-hashes --python-version 3.14 -o requirements-dev.txt
132
+ ```
133
+
134
+ ### Remote Repositories (SSH)
135
+
136
+ Borgitory can back up directly to a repository on a remote borg server, such as BorgBase, a Hetzner Storage Box, or another machine running borg. This keeps an off-site copy that is a separate borg repository rather than an rclone mirror of a local one, so corruption of the local repository does not spread to it. This is not full ransomware protection on its own: a backup that runs after files are encrypted stores the encrypted files, and prune can remove older clean archives. Use append-only mode (below) and a retention policy that keeps older archives.
137
+
138
+ Remote repositories need an SSH client (`ssh`) on the machine running borg. The Docker image includes one; for PyPI installs, install it alongside borg (for example `sudo apt install openssh-client`).
139
+
140
+ When creating or importing a repository, enter an `ssh://` URL as the path:
141
+
142
+ - BorgBase: `ssh://abcd1234@abcd1234.repo.borgbase.com/./repo`
143
+ - Hetzner Storage Box: `ssh://u123456@u123456.your-storagebox.de:23/./backups/repo` (set **Remote Borg Path** to `borg-1.4`)
144
+ - Your own server: `ssh://borg@nas.example.com/./borg/repo` (`/./` means relative to the user's home directory)
145
+
146
+ Paste the SSH private key into the form and add its public key to the server's `authorized_keys`. The key is stored encrypted in the database. The server's host key is trusted on first connection and saved in `<data dir>/ssh/known_hosts`. If the host key later changes deliberately, remove the old entry with `ssh-keygen -R host -f <data dir>/ssh/known_hosts` for port 22, or `ssh-keygen -R "[host]:port" -f <data dir>/ssh/known_hosts` for any other port.
147
+
148
+ For backups that can't be deleted from the client, restrict the key on the server to append-only mode in `authorized_keys`, for example `command="borg serve --append-only --restrict-to-path /home/borg/repo",restrict ssh-ed25519 AAAA...`. Borgitory can't enforce this itself, and in append-only mode prune and compact won't free space on the server.
149
+
150
+ Cloud sync only applies to local repositories and is skipped for remote ones.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "borgitory"
7
- version = "3.0.0"
7
+ version = "3.1.1"
8
8
  description = "A comprehensive web-based management interface for BorgBackup repositories with real-time monitoring, automated scheduling, and cloud synchronization capabilities."
9
9
  readme = "README.md"
10
10
  license = {file = "LICENSE"}
@@ -19,6 +19,7 @@ classifiers = [
19
19
  "Operating System :: OS Independent",
20
20
  "Programming Language :: Python :: 3",
21
21
  "Programming Language :: Python :: 3.14",
22
+ "Programming Language :: Python :: 3.15",
22
23
  "Topic :: System :: Archiving :: Backup",
23
24
  "Topic :: System :: Systems Administration",
24
25
  ]
@@ -117,14 +118,21 @@ line-length = 88
117
118
  indent-width = 4
118
119
 
119
120
  # Assume Python 3.14+.
120
- target-version = "3.0.0"
121
+ target-version = "3.1.1"
121
122
 
122
123
  [tool.ruff.lint]
123
124
  # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
124
125
  # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
125
126
  # McCabe complexity (`C901`) by default.
126
- select = ["E4", "E7", "E9", "F"]
127
- ignore = []
127
+ select = [
128
+ "E4", "E7", "E9", "F",
129
+ "B", # flake8-bugbear: likely bugs and design problems
130
+ "ASYNC", # blocking calls inside async functions
131
+ "DTZ", # naive datetimes
132
+ ]
133
+ ignore = [
134
+ "ASYNC109", # `timeout` parameters on async functions are part of our APIs
135
+ ]
128
136
 
129
137
  # Allow fix for all enabled rules (when `--fix`) is provided.
130
138
  fixable = ["ALL"]
@@ -133,6 +141,25 @@ unfixable = []
133
141
  # Allow unused variables when underscore-prefixed.
134
142
  dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
135
143
 
144
+ [tool.ruff.lint.per-file-ignores]
145
+ # Tests deliberately build fixed naive datetimes, use pytest.raises(Exception)
146
+ # for generic failure paths and run small blocking helpers in async tests.
147
+ "tests/**" = ["DTZ", "ASYNC", "B017"]
148
+
149
+ [tool.ruff.lint.flake8-bugbear]
150
+ # FastAPI dependency markers are evaluated once by design.
151
+ extend-immutable-calls = [
152
+ "fastapi.Body",
153
+ "fastapi.Cookie",
154
+ "fastapi.Depends",
155
+ "fastapi.File",
156
+ "fastapi.Form",
157
+ "fastapi.Header",
158
+ "fastapi.Path",
159
+ "fastapi.Query",
160
+ "fastapi.params.Depends",
161
+ ]
162
+
136
163
  [tool.ruff.format]
137
164
  # Like Black, use double quotes for strings.
138
165
  quote-style = "double"
@@ -186,7 +213,7 @@ exclude_lines = [
186
213
 
187
214
  [tool.mypy]
188
215
  # Basic settings
189
- python_version = "3.0.0"
216
+ python_version = "3.1.1"
190
217
  strict = true
191
218
 
192
219
  # Display options
@@ -262,10 +289,3 @@ include = ["src", "tests"]
262
289
  extraPaths = ["src"]
263
290
  pythonVersion = "3.14"
264
291
  pythonPlatform = "All"
265
-
266
- [dependency-groups]
267
- dev = [
268
- "httpx>=0.28.1",
269
- "pytest>=8.4.2",
270
- "pytest-asyncio>=1.2.0",
271
- ]
@@ -0,0 +1,33 @@
1
+ """Add notify_on policy to notification configs
2
+
3
+ Revision ID: a4c2e8f1b7d3
4
+ Revises: c3f1a7d2b9e4
5
+ Create Date: 2026-11-16 12:00:00.000000
6
+
7
+ """
8
+
9
+ from typing import Sequence, Union
10
+
11
+ from alembic import op
12
+ import sqlalchemy as sa
13
+
14
+
15
+ # revision identifiers, used by Alembic.
16
+ revision: str = "a4c2e8f1b7d3"
17
+ down_revision: Union[str, Sequence[str], None] = "c3f1a7d2b9e4"
18
+ branch_labels: Union[str, Sequence[str], None] = None
19
+ depends_on: Union[str, Sequence[str], None] = None
20
+
21
+
22
+ def upgrade() -> None:
23
+ """Upgrade schema."""
24
+ with op.batch_alter_table("notification_configs", schema=None) as batch_op:
25
+ batch_op.add_column(
26
+ sa.Column("notify_on", sa.String(), nullable=False, server_default="all")
27
+ )
28
+
29
+
30
+ def downgrade() -> None:
31
+ """Downgrade schema."""
32
+ with op.batch_alter_table("notification_configs", schema=None) as batch_op:
33
+ batch_op.drop_column("notify_on")
@@ -0,0 +1,46 @@
1
+ """Store session tokens as SHA-256 hashes
2
+
3
+ Existing plaintext tokens are hashed in place, so users stay logged in.
4
+
5
+ Revision ID: a7e2c4f1d8b3
6
+ Revises: a4c2e8f1b7d3
7
+ Create Date: 2026-11-16 12:00:00.000000
8
+
9
+ """
10
+
11
+ import hashlib
12
+ from typing import Sequence, Union
13
+
14
+ from alembic import op
15
+ import sqlalchemy as sa
16
+
17
+
18
+ # revision identifiers, used by Alembic.
19
+ revision: str = "a7e2c4f1d8b3"
20
+ down_revision: Union[str, Sequence[str], None] = "a4c2e8f1b7d3"
21
+ branch_labels: Union[str, Sequence[str], None] = None
22
+ depends_on: Union[str, Sequence[str], None] = None
23
+
24
+ user_sessions = sa.table(
25
+ "user_sessions",
26
+ sa.column("id", sa.Integer),
27
+ sa.column("session_token", sa.String),
28
+ )
29
+
30
+
31
+ def upgrade() -> None:
32
+ """Hash every stored session token (kept self-contained: no app imports)."""
33
+ bind = op.get_bind()
34
+ rows = bind.execute(sa.select(user_sessions.c.id, user_sessions.c.session_token))
35
+ for row_id, token in rows.fetchall():
36
+ hashed = hashlib.sha256(token.encode("utf-8")).hexdigest()
37
+ bind.execute(
38
+ user_sessions.update()
39
+ .where(user_sessions.c.id == row_id)
40
+ .values(session_token=hashed)
41
+ )
42
+
43
+
44
+ def downgrade() -> None:
45
+ """Hashes cannot be reversed; drop all sessions so users log in again."""
46
+ op.execute(user_sessions.delete())
@@ -0,0 +1,43 @@
1
+ """Make repositories.encryption_type NOT NULL to match the model
2
+
3
+ The column was added as nullable (02b7b29d38c0) and backfilled, but the model
4
+ has always declared it NOT NULL. Detected by the model/migration drift test.
5
+
6
+ Revision ID: b91d3e6a2f57
7
+ Revises: a7e2c4f1d8b3
8
+ Create Date: 2026-11-16 12:30:00.000000
9
+
10
+ """
11
+
12
+ from typing import Sequence, Union
13
+
14
+ from alembic import op
15
+ import sqlalchemy as sa
16
+
17
+
18
+ # revision identifiers, used by Alembic.
19
+ revision: str = "b91d3e6a2f57"
20
+ down_revision: Union[str, Sequence[str], None] = "a7e2c4f1d8b3"
21
+ branch_labels: Union[str, Sequence[str], None] = None
22
+ depends_on: Union[str, Sequence[str], None] = None
23
+
24
+
25
+ def upgrade() -> None:
26
+ """Upgrade schema."""
27
+ # Same backfill value as the migration that introduced the column
28
+ op.execute(
29
+ "UPDATE repositories SET encryption_type = 'repokey' "
30
+ "WHERE encryption_type IS NULL"
31
+ )
32
+ with op.batch_alter_table("repositories", schema=None) as batch_op:
33
+ batch_op.alter_column(
34
+ "encryption_type", existing_type=sa.String(), nullable=False
35
+ )
36
+
37
+
38
+ def downgrade() -> None:
39
+ """Downgrade schema."""
40
+ with op.batch_alter_table("repositories", schema=None) as batch_op:
41
+ batch_op.alter_column(
42
+ "encryption_type", existing_type=sa.String(), nullable=True
43
+ )
@@ -0,0 +1,35 @@
1
+ """Add remote SSH fields to repositories table
2
+
3
+ Revision ID: c3f1a7d2b9e4
4
+ Revises: 1bf41c3dc043
5
+ Create Date: 2026-10-11 13:00:00.000000
6
+
7
+ """
8
+
9
+ from typing import Sequence, Union
10
+
11
+ from alembic import op
12
+ import sqlalchemy as sa
13
+
14
+
15
+ # revision identifiers, used by Alembic.
16
+ revision: str = "c3f1a7d2b9e4"
17
+ down_revision: Union[str, Sequence[str], None] = "1bf41c3dc043"
18
+ branch_labels: Union[str, Sequence[str], None] = None
19
+ depends_on: Union[str, Sequence[str], None] = None
20
+
21
+
22
+ def upgrade() -> None:
23
+ """Upgrade schema."""
24
+ with op.batch_alter_table("repositories", schema=None) as batch_op:
25
+ batch_op.add_column(
26
+ sa.Column("encrypted_ssh_private_key", sa.Text(), nullable=True)
27
+ )
28
+ batch_op.add_column(sa.Column("remote_borg_path", sa.String(), nullable=True))
29
+
30
+
31
+ def downgrade() -> None:
32
+ """Downgrade schema."""
33
+ with op.batch_alter_table("repositories", schema=None) as batch_op:
34
+ batch_op.drop_column("remote_borg_path")
35
+ batch_op.drop_column("encrypted_ssh_private_key")
@@ -1,6 +1,7 @@
1
1
  from fastapi import APIRouter, Request, HTTPException, Depends, Response, Form
2
2
  from sqlalchemy import select, func, delete
3
3
  from sqlalchemy.ext.asyncio import AsyncSession
4
+ import logging
4
5
  import secrets
5
6
  from datetime import timedelta
6
7
  from borgitory.utils.datetime_utils import now_utc
@@ -9,9 +10,22 @@ from typing import Dict, Optional
9
10
  from borgitory.models.database import User, UserSession, BCRYPT_MAX_PASSWORD_BYTES
10
11
  from borgitory.dependencies import get_db
11
12
  from borgitory.dependencies import TemplatesDep
13
+ from borgitory.utils.web_security import (
14
+ LoginThrottle,
15
+ hash_session_token,
16
+ safe_redirect_target,
17
+ use_secure_cookies,
18
+ )
12
19
  from starlette.templating import _TemplateResponse
13
20
 
14
21
  router = APIRouter()
22
+ logger = logging.getLogger(__name__)
23
+
24
+ login_throttle = LoginThrottle()
25
+
26
+
27
+ def _client_key(request: Request) -> str:
28
+ return request.client.host if request.client else "unknown"
15
29
 
16
30
 
17
31
  @router.get("/check-users")
@@ -107,11 +121,12 @@ async def register_user(
107
121
  success_response.headers["HX-Trigger"] = "reload-auth-form"
108
122
  return success_response
109
123
 
110
- except Exception as e:
124
+ except Exception:
125
+ logger.exception("Registration failed")
111
126
  return templates.TemplateResponse(
112
127
  request,
113
128
  "partials/shared/notification.html",
114
- {"type": "error", "message": f"Registration failed: {str(e)}"},
129
+ {"type": "error", "message": "Registration failed"},
115
130
  status_code=500,
116
131
  )
117
132
 
@@ -126,10 +141,27 @@ async def login_user(
126
141
  next: str = Form("/repositories"),
127
142
  db: AsyncSession = Depends(get_db),
128
143
  ) -> _TemplateResponse:
144
+ client_key = _client_key(request)
145
+ retry_after = login_throttle.retry_after(client_key)
146
+ if retry_after is not None:
147
+ logger.warning("Login throttled for client %s", client_key)
148
+ response = templates.TemplateResponse(
149
+ request,
150
+ "partials/shared/notification.html",
151
+ {
152
+ "type": "error",
153
+ "message": "Too many failed login attempts. Try again later.",
154
+ },
155
+ status_code=429,
156
+ )
157
+ response.headers["Retry-After"] = str(retry_after)
158
+ return response
159
+
129
160
  try:
130
161
  result = await db.execute(select(User).where(User.username == username))
131
162
  user = result.scalar_one_or_none()
132
163
  if not user or not user.verify_password(password):
164
+ login_throttle.record_failure(client_key)
133
165
  return templates.TemplateResponse(
134
166
  request,
135
167
  "partials/shared/notification.html",
@@ -137,6 +169,7 @@ async def login_user(
137
169
  status_code=401,
138
170
  )
139
171
 
172
+ login_throttle.reset(client_key)
140
173
  auth_token = secrets.token_urlsafe(32)
141
174
 
142
175
  if remember_me:
@@ -162,7 +195,7 @@ async def login_user(
162
195
 
163
196
  db_session = UserSession()
164
197
  db_session.user_id = user.id
165
- db_session.session_token = auth_token
198
+ db_session.session_token = hash_session_token(auth_token)
166
199
  db_session.expires_at = expires_at
167
200
  db_session.remember_me = remember_me
168
201
  db_session.user_agent = user_agent
@@ -182,22 +215,23 @@ async def login_user(
182
215
  "message": "Login successful! Redirecting...",
183
216
  },
184
217
  )
185
- success_response.headers["HX-Redirect"] = next
218
+ success_response.headers["HX-Redirect"] = safe_redirect_target(next)
186
219
  success_response.set_cookie(
187
220
  key="auth_token",
188
221
  value=auth_token,
189
222
  httponly=True,
190
- secure=False,
223
+ secure=use_secure_cookies(request),
191
224
  samesite="lax",
192
225
  max_age=max_age,
193
226
  )
194
227
  return success_response
195
228
 
196
- except Exception as e:
229
+ except Exception:
230
+ logger.exception("Login failed")
197
231
  return templates.TemplateResponse(
198
232
  request,
199
233
  "partials/shared/notification.html",
200
- {"type": "error", "message": f"Login failed: {str(e)}"},
234
+ {"type": "error", "message": "Login failed"},
201
235
  status_code=500,
202
236
  )
203
237
 
@@ -209,7 +243,9 @@ async def logout(
209
243
  auth_token = request.cookies.get("auth_token")
210
244
  if auth_token:
211
245
  await db.execute(
212
- delete(UserSession).where(UserSession.session_token == auth_token)
246
+ delete(UserSession).where(
247
+ UserSession.session_token == hash_session_token(auth_token)
248
+ )
213
249
  )
214
250
  await db.commit()
215
251
 
@@ -226,7 +262,7 @@ async def get_current_user(
226
262
 
227
263
  result = await db.execute(
228
264
  select(UserSession).where(
229
- UserSession.session_token == auth_token,
265
+ UserSession.session_token == hash_session_token(auth_token),
230
266
  UserSession.expires_at > now_utc(),
231
267
  )
232
268
  )
@@ -1,7 +1,6 @@
1
1
  import json
2
2
  import logging
3
3
  import os
4
- import re
5
4
  from typing import Dict, List, Optional, Union, cast, Mapping, Any
6
5
  from fastapi import APIRouter, Depends, HTTPException, Request
7
6
  from fastapi.templating import Jinja2Templates
@@ -27,6 +26,7 @@ from borgitory.dependencies import (
27
26
  )
28
27
  from borgitory.api.auth import get_current_user
29
28
  from borgitory.models.database import User
29
+ from borgitory.utils.template_paths import get_template_directory
30
30
 
31
31
  router = APIRouter()
32
32
  logger = logging.getLogger(__name__)
@@ -50,33 +50,36 @@ def _get_supported_providers(registry: ProviderRegistryDep) -> List[Dict[str, st
50
50
  return sorted(supported_providers, key=lambda x: str(x["value"]))
51
51
 
52
52
 
53
- def _get_provider_template(provider: str) -> Optional[str]:
54
- """Get the appropriate template path for a provider"""
55
- if not provider:
56
- return None
53
+ _PROVIDER_TEMPLATES_SUBDIR = "partials/cloud_sync/providers"
57
54
 
58
- # Validate provider name: only allow alphanumerics, underscores, hyphens
59
- if not re.fullmatch(r"^[\w-]+$", provider):
60
- return None
61
55
 
62
- # Automatically discover templates by checking if they exist on filesystem
63
- base_templates_dir = os.path.abspath(
64
- os.path.normpath(
65
- f"src/borgitory/templates/partials/cloud_sync/providers/{provider}"
66
- )
67
- )
56
+ def _discover_provider_templates() -> Dict[str, str]:
57
+ """Map each provider that ships a fields template to its template path."""
58
+ template_root = get_template_directory()
59
+ providers_dir = os.path.join(template_root, _PROVIDER_TEMPLATES_SUBDIR)
60
+ try:
61
+ entries = os.listdir(providers_dir)
62
+ except OSError:
63
+ logger.warning(f"Provider templates directory not found: {providers_dir}")
64
+ return {}
68
65
 
69
- template_path = f"partials/cloud_sync/providers/{provider}/{provider}_fields.html"
70
- full_path = f"src/borgitory/templates/{template_path}"
71
- normalized_path = os.path.abspath(os.path.normpath(full_path))
66
+ templates: Dict[str, str] = {}
67
+ for name in entries:
68
+ relative_path = f"{_PROVIDER_TEMPLATES_SUBDIR}/{name}/{name}_fields.html"
69
+ if os.path.isfile(os.path.join(template_root, relative_path)):
70
+ templates[name] = relative_path
71
+ return templates
72
72
 
73
- if os.path.commonpath([base_templates_dir, normalized_path]) != base_templates_dir:
74
- return None
75
73
 
76
- if os.path.exists(full_path):
77
- return template_path
74
+ def _get_provider_template(provider: str) -> Optional[str]:
75
+ """Get the appropriate template path for a provider.
78
76
 
79
- return None
77
+ The provider value comes from the request, so it is only used as a lookup
78
+ key into templates discovered on disk and never to build a path itself.
79
+ """
80
+ if not provider:
81
+ return None
82
+ return _discover_provider_templates().get(provider)
80
83
 
81
84
 
82
85
  def _get_submit_button_text(
@@ -365,7 +368,7 @@ async def get_cloud_sync_edit_form(
365
368
  except Exception as e:
366
369
  raise HTTPException(
367
370
  status_code=404, detail=f"Cloud sync configuration not found: {str(e)}"
368
- )
371
+ ) from e
369
372
 
370
373
 
371
374
  @router.put("/{config_id}", response_class=HTMLResponse)
@@ -6,9 +6,14 @@ from fastapi.responses import HTMLResponse
6
6
  from fastapi import Request
7
7
  from sqlalchemy.ext.asyncio import AsyncSession
8
8
 
9
+ from borgitory.api.auth import get_current_user
9
10
  from borgitory.dependencies import DebugServiceDep, get_db, get_templates
10
11
 
11
- router = APIRouter(prefix="/api/debug", tags=["debug"])
12
+ router = APIRouter(
13
+ prefix="/api/debug",
14
+ tags=["debug"],
15
+ dependencies=[Depends(get_current_user)],
16
+ )
12
17
  templates = get_templates()
13
18
  logger = logging.getLogger(__name__)
14
19
 
@@ -22,7 +27,10 @@ async def get_debug_info(
22
27
  debug_info = await debug_svc.get_debug_info(db)
23
28
  return debug_info
24
29
  except Exception as e:
25
- raise HTTPException(status_code=500, detail=str(e))
30
+ logger.exception("Failed to collect debug info")
31
+ raise HTTPException(
32
+ status_code=500, detail="Failed to collect debug info"
33
+ ) from e
26
34
 
27
35
 
28
36
  @router.get("/html", response_class=HTMLResponse)
@@ -38,4 +46,7 @@ async def get_debug_html(
38
46
  {"debug_info": debug_info},
39
47
  )
40
48
  except Exception as e:
41
- raise HTTPException(status_code=500, detail=str(e))
49
+ logger.exception("Failed to collect debug info")
50
+ raise HTTPException(
51
+ status_code=500, detail="Failed to collect debug info"
52
+ ) from e