monit-docker 2.0.0__tar.gz → 2.0.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 (259) hide show
  1. {monit_docker-2.0.0 → monit_docker-2.0.1}/MANIFEST.in +2 -0
  2. {monit_docker-2.0.0/monit_docker.egg-info → monit_docker-2.0.1}/PKG-INFO +7 -7
  3. {monit_docker-2.0.0 → monit_docker-2.0.1}/README.md +5 -5
  4. monit_docker-2.0.1/RELEASE +1 -0
  5. monit_docker-2.0.1/VERSION +1 -0
  6. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/authentication-fr.md +2 -0
  7. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/authentication.md +2 -0
  8. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/compose-quickstart-fr.md +2 -2
  9. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/compose-quickstart.md +2 -2
  10. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/compose.md +1 -1
  11. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/index.rst +3 -0
  12. monit_docker-2.0.1/docs/mobile-accounts-fr.md +63 -0
  13. monit_docker-2.0.1/docs/mobile-accounts.md +76 -0
  14. monit_docker-2.0.1/docs/release-2.0.1.md +16 -0
  15. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/roadmap.md +21 -5
  16. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/compose.yaml +1 -1
  17. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/redis-webhook/requirements.txt +2 -2
  18. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ui/compose.yaml +2 -2
  19. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/__init__.py +1 -1
  20. monit_docker-2.0.1/monit_docker/account_lifecycle.py +123 -0
  21. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/auth_http.py +58 -3
  22. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/command_config.py +1 -1
  23. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/http.py +10 -0
  24. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/http_routes.py +1 -0
  25. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/local_auth.py +2 -0
  26. monit_docker-2.0.1/monit_docker/adapters/mobile_push.py +119 -0
  27. monit_docker-2.0.1/monit_docker/adapters/mobile_push_messages.json +4 -0
  28. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/cli.py +3 -2
  29. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/cli_auth.py +14 -2
  30. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/composition.py +2 -2
  31. monit_docker-2.0.1/monit_docker/mobile_notifications.py +75 -0
  32. {monit_docker-2.0.0 → monit_docker-2.0.1/monit_docker.egg-info}/PKG-INFO +7 -7
  33. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker.egg-info/SOURCES.txt +9 -0
  34. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker.egg-info/requires.txt +1 -1
  35. {monit_docker-2.0.0 → monit_docker-2.0.1}/requirements.txt +1 -1
  36. {monit_docker-2.0.0 → monit_docker-2.0.1}/setup.py +1 -0
  37. {monit_docker-2.0.0 → monit_docker-2.0.1}/setup.yml +2 -2
  38. monit_docker-2.0.1/tests/test_account_lifecycle.py +88 -0
  39. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_auth_http.py +38 -0
  40. monit_docker-2.0.1/tests/test_mobile_notifications.py +104 -0
  41. monit_docker-2.0.0/RELEASE +0 -1
  42. monit_docker-2.0.0/VERSION +0 -1
  43. {monit_docker-2.0.0 → monit_docker-2.0.1}/LICENSE +0 -0
  44. {monit_docker-2.0.0 → monit_docker-2.0.1}/bin/monit-docker +0 -0
  45. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/access-checks.md +0 -0
  46. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/alerts.md +0 -0
  47. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/architecture-review-2026-09-27.md +0 -0
  48. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/architecture.md +0 -0
  49. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/audit-migration.md +0 -0
  50. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/audit.md +0 -0
  51. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/authentication-review.md +0 -0
  52. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/beta-decisions.md +0 -0
  53. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/check-config.md +0 -0
  54. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/config-cli-contract.md +0 -0
  55. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/configuration-validation.md +0 -0
  56. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/contributing.md +0 -0
  57. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/contributors.rst +0 -0
  58. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/cron.md +0 -0
  59. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/deprecation-policy.md +0 -0
  60. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/dwho-http-notifications.md +0 -0
  61. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/filesystems.md +0 -0
  62. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/grafana.md +0 -0
  63. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/healthchecks.md +0 -0
  64. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/http-api-contract.md +0 -0
  65. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/grafana-cpu.png +0 -0
  66. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/grafana-network.png +0 -0
  67. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/grafana-overview.png +0 -0
  68. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/terminal-containers.png +0 -0
  69. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/terminal-details.png +0 -0
  70. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/terminal-journal.png +0 -0
  71. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/textual-containers.png +0 -0
  72. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/textual-journal.png +0 -0
  73. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/images/textual-unavailable.png +0 -0
  74. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/incident-ai-fr.md +0 -0
  75. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/incident-ai-review.md +0 -0
  76. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/incident-ai.md +0 -0
  77. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/installation-upgrades.md +0 -0
  78. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/journal-compatibility.md +0 -0
  79. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/maintenance.md +0 -0
  80. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/metrics.md +0 -0
  81. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/notifications.md +0 -0
  82. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/performance-resilience.md +0 -0
  83. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/redis-notifications.md +0 -0
  84. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.0.0.md +0 -0
  85. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.0.1.md +0 -0
  86. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.1.0.md +0 -0
  87. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.1.1.md +0 -0
  88. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.1.2.md +0 -0
  89. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.1.3.md +0 -0
  90. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.1.4.md +0 -0
  91. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.2.0.md +0 -0
  92. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.3.0.md +0 -0
  93. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.3.1.md +0 -0
  94. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.3.2.md +0 -0
  95. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-1.3.3.md +0 -0
  96. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/release-2.0.0.md +0 -0
  97. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/restart-limit.md +0 -0
  98. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/runtime-checks.md +0 -0
  99. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/scenarios.md +0 -0
  100. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/serve.md +0 -0
  101. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/shared-terminal.md +0 -0
  102. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/simple.md +0 -0
  103. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/supported-environments.md +0 -0
  104. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/terminal.md +0 -0
  105. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/textual-review.md +0 -0
  106. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/textual.md +0 -0
  107. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/trigger-delay.md +0 -0
  108. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/troubleshooting.md +0 -0
  109. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/tutorial-memory.md +0 -0
  110. {monit_docker-2.0.0 → monit_docker-2.0.1}/docs/ui.md +0 -0
  111. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ai/anthropic.yml +0 -0
  112. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ai/ollama.yml +0 -0
  113. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ai/openai-compatible.yml +0 -0
  114. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ai/status.json +0 -0
  115. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/grafana/monit-docker.json +0 -0
  116. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alertmanager.email-slack.yml +0 -0
  117. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alertmanager.email.yml +0 -0
  118. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alertmanager.redis.yml +0 -0
  119. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alertmanager.slack.yml +0 -0
  120. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alerts.runtime.test.yml +0 -0
  121. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alerts.runtime.yml +0 -0
  122. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alerts.test.yml +0 -0
  123. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/alerts.yml +0 -0
  124. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/compose.audit.yaml +0 -0
  125. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/compose.notifications.yaml +0 -0
  126. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/compose.redis.yaml +0 -0
  127. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/dwho-http/http.json +0 -0
  128. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/dwho-http/http.yml +0 -0
  129. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/dwho-http/payload.json +0 -0
  130. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/dwho-http/send.py +0 -0
  131. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/grafana/dashboards.yml +0 -0
  132. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/grafana/datasources.yml +0 -0
  133. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/prometheus-notifications.yml +0 -0
  134. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/prometheus.yml +0 -0
  135. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/redis-webhook/Dockerfile +0 -0
  136. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/redis-webhook/bridge.py +0 -0
  137. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/monitoring/start.sh +0 -0
  138. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/scenarios.yml +0 -0
  139. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/socket-proxy/Dockerfile +0 -0
  140. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/tutorial-memory/compose.yaml +0 -0
  141. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/tutorial-memory/monit-docker.yml +0 -0
  142. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/tutorial-memory/worker.py +0 -0
  143. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ui/compose.actions.yaml +0 -0
  144. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ui/compose.journal.yaml +0 -0
  145. {monit_docker-2.0.0 → monit_docker-2.0.1}/examples/ui/prepare.py +0 -0
  146. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/__main__.py +0 -0
  147. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/__init__.py +0 -0
  148. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/access.py +0 -0
  149. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/audit_http.py +0 -0
  150. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/auth_migration.py +0 -0
  151. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/configuration.py +0 -0
  152. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/docker.py +0 -0
  153. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/events.py +0 -0
  154. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/filesystems.py +0 -0
  155. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/http_security.py +0 -0
  156. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/incident_ai.py +0 -0
  157. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/rules.py +0 -0
  158. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/scenarios.py +0 -0
  159. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/selection.py +0 -0
  160. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/state.py +0 -0
  161. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/stats.py +0 -0
  162. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/syntax.py +0 -0
  163. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/validation.py +0 -0
  164. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/adapters/validation_rules.py +0 -0
  165. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/application.py +0 -0
  166. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/application_state.py +0 -0
  167. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/audit.py +0 -0
  168. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/audit_forward.py +0 -0
  169. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/audit_migrate.py +0 -0
  170. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/audit_query.py +0 -0
  171. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/auth_policy.py +0 -0
  172. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/cli_audit.py +0 -0
  173. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/cli_incident.py +0 -0
  174. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/core/__init__.py +0 -0
  175. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/core/engine.py +0 -0
  176. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/core/manual.py +0 -0
  177. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/core/metrics.py +0 -0
  178. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/core/policy.py +0 -0
  179. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/core/rules.py +0 -0
  180. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/__init__.py +0 -0
  181. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/errors.py +0 -0
  182. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/filesystems.py +0 -0
  183. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/identifiers.py +0 -0
  184. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/maintenance.py +0 -0
  185. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/models.py +0 -0
  186. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/rules.py +0 -0
  187. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/domain/runtime.py +0 -0
  188. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/incident.py +0 -0
  189. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/incident_session.py +0 -0
  190. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/job.py +0 -0
  191. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/manual_actions.py +0 -0
  192. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/notification_audit.py +0 -0
  193. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/observation.py +0 -0
  194. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/outputs/__init__.py +0 -0
  195. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/outputs/formatting.py +0 -0
  196. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/outputs/prometheus.py +0 -0
  197. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/service.py +0 -0
  198. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/textual_demo.py +0 -0
  199. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/textual_tui.py +0 -0
  200. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker/tui.py +0 -0
  201. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker.egg-info/dependency_links.txt +0 -0
  202. {monit_docker-2.0.0 → monit_docker-2.0.1}/monit_docker.egg-info/top_level.txt +0 -0
  203. {monit_docker-2.0.0 → monit_docker-2.0.1}/pyproject.toml +0 -0
  204. {monit_docker-2.0.0 → monit_docker-2.0.1}/scripts/capture_textual.py +0 -0
  205. {monit_docker-2.0.0 → monit_docker-2.0.1}/setup.cfg +0 -0
  206. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_access.py +0 -0
  207. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_access_docker.py +0 -0
  208. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_adapters.py +0 -0
  209. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_api_contract.py +0 -0
  210. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_application_architecture.py +0 -0
  211. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_audit.py +0 -0
  212. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_audit_migrate.py +0 -0
  213. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_audit_query.py +0 -0
  214. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_audit_stream.py +0 -0
  215. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_auth_cli.py +0 -0
  216. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_auth_migration.py +0 -0
  217. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_beta_decisions.py +0 -0
  218. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_check_config.py +0 -0
  219. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_cli_contract.py +0 -0
  220. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_configuration_schema.py +0 -0
  221. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_core.py +0 -0
  222. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_cron.py +0 -0
  223. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_direct_command_config.py +0 -0
  224. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_docker_integration.py +0 -0
  225. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_engine.py +0 -0
  226. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_filesystem_mode.py +0 -0
  227. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_filesystems.py +0 -0
  228. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_health.py +0 -0
  229. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_http_service_boundaries.py +0 -0
  230. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_http_token_separation.py +0 -0
  231. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_httpdis_transport.py +0 -0
  232. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident.py +0 -0
  233. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident_anthropic.py +0 -0
  234. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident_cli.py +0 -0
  235. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident_http.py +0 -0
  236. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident_provider.py +0 -0
  237. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident_qualification.py +0 -0
  238. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_incident_session.py +0 -0
  239. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_journal_compatibility.py +0 -0
  240. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_local_auth.py +0 -0
  241. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_maintenance.py +0 -0
  242. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_manual_actions.py +0 -0
  243. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_monit_docker.py +0 -0
  244. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_packaging.py +0 -0
  245. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_resilience.py +0 -0
  246. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_restart_limit.py +0 -0
  247. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_rule_literals.py +0 -0
  248. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_runtime_checks.py +0 -0
  249. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_runtime_docker.py +0 -0
  250. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_scenarios.py +0 -0
  251. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_serve_config.py +0 -0
  252. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_service.py +0 -0
  253. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_stats_timeouts.py +0 -0
  254. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_stats_transport.py +0 -0
  255. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_terminal_docker.py +0 -0
  256. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_terminal_signals.py +0 -0
  257. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_trigger_delay.py +0 -0
  258. {monit_docker-2.0.0 → monit_docker-2.0.1}/tests/test_tui.py +0 -0
  259. {monit_docker-2.0.0 → monit_docker-2.0.1}/textual_tests/test_textual_tui.py +0 -0
@@ -7,3 +7,5 @@ prune ui
7
7
 
8
8
  recursive-include textual_tests *.py
9
9
  include scripts/capture_textual.py
10
+
11
+ include monit_docker/adapters/mobile_push_messages.json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: monit-docker
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: monit-docker
5
5
  Home-page: https://github.com/decryptus/monit-docker
6
6
  Author: Adrien Delle Cave
@@ -29,7 +29,7 @@ Requires-Dist: pyOpenSSL>=20.0.0
29
29
  Requires-Dist: PyYAML>=3.10
30
30
  Requires-Dist: pycurl>=7.43.0
31
31
  Requires-Dist: six>=1.13.0
32
- Requires-Dist: sonicprobe>=0.3.57
32
+ Requires-Dist: sonicprobe>=0.3.66
33
33
  Requires-Dist: regex>=2024.5.15
34
34
  Requires-Dist: dwho>=0.3.63
35
35
  Provides-Extra: textual
@@ -50,8 +50,8 @@ Dynamic: summary
50
50
 
51
51
  # monit-docker project
52
52
 
53
- **Current package and image version: [2.0.0](https://github.com/decryptus/monit-docker/tree/v2.0.0)**
54
- — [Release notes and upgrade guidance](docs/release-2.0.0.md).
53
+ **Current package and image version: [2.0.1](https://github.com/decryptus/monit-docker/tree/v2.0.1)**
54
+ — [Release notes and upgrade guidance](docs/release-2.0.1.md).
55
55
 
56
56
  Optional [incident assistance](docs/incident-ai.md)
57
57
  ([guide français](docs/incident-ai-fr.md)) with a local model or your own API key.
@@ -75,7 +75,7 @@ SQLite activation is explicit; the Android release and device testing are deferr
75
75
  [Documentation (EN)](https://www.monit-docker.com/docs/en/) ·
76
76
  [Live demo](https://demo.monit-docker.com/) ·
77
77
  [Release roadmap](docs/roadmap.md) ·
78
- [2.0.0 release notes](docs/release-2.0.0.md) ·
78
+ [2.0.1 release notes](docs/release-2.0.1.md) ·
79
79
  [Logos and icons](ui/branding/README.md)
80
80
 
81
81
  monit-docker is a free, open-source tool for checking Docker containers and
@@ -86,7 +86,7 @@ container or reloading PHP-FPM when memory usage is high.
86
86
  Compose v2 and curl, run:
87
87
 
88
88
  ```sh
89
- git clone --branch v2.0.0 --depth 1 https://github.com/decryptus/monit-docker.git
89
+ git clone --branch v2.0.1 --depth 1 https://github.com/decryptus/monit-docker.git
90
90
  cd monit-docker
91
91
  ./install.sh
92
92
  ```
@@ -187,7 +187,7 @@ for prerequisites, the UI, upgrades and stopping the stack. The
187
187
  then explicitly enables one automatic restart. The default installation has no action rules.
188
188
 
189
189
  The current Compose checkout builds the socket proxy locally and runs the published
190
- 2.0.0 agent and UI images. Before switching an existing direct-socket agent,
190
+ 2.0.1 agent and UI images. Before switching an existing direct-socket agent,
191
191
  follow the [socket migration](docs/compose-quickstart.md#migrate-an-existing-agent).
192
192
 
193
193
  **Existing root Compose users:** the old cron/PHP-FPM example is replaced by
@@ -1,7 +1,7 @@
1
1
  # monit-docker project
2
2
 
3
- **Current package and image version: [2.0.0](https://github.com/decryptus/monit-docker/tree/v2.0.0)**
4
- — [Release notes and upgrade guidance](docs/release-2.0.0.md).
3
+ **Current package and image version: [2.0.1](https://github.com/decryptus/monit-docker/tree/v2.0.1)**
4
+ — [Release notes and upgrade guidance](docs/release-2.0.1.md).
5
5
 
6
6
  Optional [incident assistance](docs/incident-ai.md)
7
7
  ([guide français](docs/incident-ai-fr.md)) with a local model or your own API key.
@@ -25,7 +25,7 @@ SQLite activation is explicit; the Android release and device testing are deferr
25
25
  [Documentation (EN)](https://www.monit-docker.com/docs/en/) ·
26
26
  [Live demo](https://demo.monit-docker.com/) ·
27
27
  [Release roadmap](docs/roadmap.md) ·
28
- [2.0.0 release notes](docs/release-2.0.0.md) ·
28
+ [2.0.1 release notes](docs/release-2.0.1.md) ·
29
29
  [Logos and icons](ui/branding/README.md)
30
30
 
31
31
  monit-docker is a free, open-source tool for checking Docker containers and
@@ -36,7 +36,7 @@ container or reloading PHP-FPM when memory usage is high.
36
36
  Compose v2 and curl, run:
37
37
 
38
38
  ```sh
39
- git clone --branch v2.0.0 --depth 1 https://github.com/decryptus/monit-docker.git
39
+ git clone --branch v2.0.1 --depth 1 https://github.com/decryptus/monit-docker.git
40
40
  cd monit-docker
41
41
  ./install.sh
42
42
  ```
@@ -137,7 +137,7 @@ for prerequisites, the UI, upgrades and stopping the stack. The
137
137
  then explicitly enables one automatic restart. The default installation has no action rules.
138
138
 
139
139
  The current Compose checkout builds the socket proxy locally and runs the published
140
- 2.0.0 agent and UI images. Before switching an existing direct-socket agent,
140
+ 2.0.1 agent and UI images. Before switching an existing direct-socket agent,
141
141
  follow the [socket migration](docs/compose-quickstart.md#migrate-an-existing-agent).
142
142
 
143
143
  **Existing root Compose users:** the old cron/PHP-FPM example is replaced by
@@ -0,0 +1 @@
1
+ 2.0.1
@@ -0,0 +1 @@
1
+ 2.0.1
@@ -79,3 +79,5 @@ Pour les sauvegardes courantes, arrêter les écritures ou utiliser l'API de sau
79
79
  ## Langue de la connexion web
80
80
 
81
81
  Le formulaire avec le logo propose le français et l’anglais avant connexion et dans la barre du compte. La langue du navigateur sert de choix initial ; la préférence explicite est mémorisée localement, avec l’anglais en repli. Aucun mot de passe n’est enregistré par ce sélecteur. Ce choix pilote aussi les explications IA ; les autres vues du tableau de bord conservent leur langue actuelle. L’accès public de la démo se configure séparément des installations avec comptes.
82
+
83
+ See [account lifecycle and remote notifications](mobile-accounts-fr.md).
@@ -104,3 +104,5 @@ For routine SQLite backup, stop writers before copying the database, or use SQLi
104
104
  ## Web sign-in language
105
105
 
106
106
  The branded sign-in form offers French and English before login and in the account toolbar. The browser language is the initial default; an explicit choice is remembered locally. English is the fallback. Passwords are never saved by this selector. The same preference controls AI explanations; other dashboard views retain their existing language. Public demo access is configured separately from authenticated installations.
107
+
108
+ See [account lifecycle and remote notifications](mobile-accounts.md).
@@ -72,7 +72,7 @@ Sur Linux amd64, installer Git, Docker Engine, son plugin Compose v2 avec
72
72
  `up --wait` et curl. Pour le tableau de bord, prévoir Python 3 et OpenSSL.
73
73
 
74
74
  ```sh
75
- git clone --branch v2.0.0 --depth 1 https://github.com/decryptus/monit-docker.git
75
+ git clone --branch v2.0.1 --depth 1 https://github.com/decryptus/monit-docker.git
76
76
  cd monit-docker
77
77
  ./install.sh
78
78
  ```
@@ -157,7 +157,7 @@ Définir `MONIT_DOCKER_PORT`, `UI_PORT` ou `DOCKER_SOCKET_PATH` dans le shell av
157
157
  Compose si nécessaire. `UI_BIND` vaut `127.0.0.1` par défaut. Garder le même nom
158
158
  de projet et le même répertoire pour réutiliser le volume.
159
159
 
160
- Les images de l’agent et de l’UI sont fixées à **2.0.0**. Pour une évolution,
160
+ Les images de l’agent et de l’UI sont fixées à **2.0.1**. Pour une évolution,
161
161
  choisir des versions correspondantes, préserver la configuration et les données,
162
162
  puis utiliser `pull` et `up -d --wait` avec la même liste de fichiers. Un simple
163
163
  `pull` ne remplace pas les conteneurs en cours d’exécution.
@@ -68,7 +68,7 @@ On Linux amd64, install Git, Docker Engine, its Compose v2 plugin with
68
68
  `up --wait` support, and curl. For the web dashboard, install Python 3 and OpenSSL.
69
69
 
70
70
  ```sh
71
- git clone --branch v2.0.0 --depth 1 https://github.com/decryptus/monit-docker.git
71
+ git clone --branch v2.0.1 --depth 1 https://github.com/decryptus/monit-docker.git
72
72
  cd monit-docker
73
73
  ./install.sh
74
74
  ```
@@ -165,7 +165,7 @@ host ports. The UI binds to loopback unless `UI_BIND` is explicitly changed.
165
165
  Changing a host port does not change internal agent addresses. Keep the same
166
166
  directory/project name so Compose reuses its named volume.
167
167
 
168
- The examples pin agent and UI to **2.0.0**. When updating versions, preserve your
168
+ The examples pin agent and UI to **2.0.1**. When updating versions, preserve your
169
169
  configuration and state, choose matching agent/UI versions, then pull and recreate
170
170
  the selected stack. `docker compose pull` alone does not change a running container.
171
171
 
@@ -140,7 +140,7 @@ backups; archive them separately if you rely on this history.
140
140
 
141
141
  ## Customize
142
142
 
143
- The services are pinned to monit-docker 2.0.0, Prometheus 3.5.0 and Grafana 12.2.0.
143
+ The services are pinned to monit-docker 2.0.1, Prometheus 3.5.0 and Grafana 12.2.0.
144
144
  Update versions deliberately in `examples/monitoring/compose.yaml`, then run
145
145
  `docker compose pull` and `sh start.sh`. The repository-root `docker-compose.yml`
146
146
  runs the minimal observation agent; use the file in `examples/monitoring` for this
@@ -38,6 +38,8 @@ For installation and the command reference, see the
38
38
  http-api-contract
39
39
  authentication
40
40
  authentication-fr
41
+ mobile-accounts
42
+ mobile-accounts-fr
41
43
  ui
42
44
  compose
43
45
  metrics
@@ -57,6 +59,7 @@ For installation and the command reference, see the
57
59
  check-config
58
60
  configuration-validation
59
61
  textual
62
+ release-2.0.1
60
63
  release-2.0.0
61
64
  release-1.3.3
62
65
  release-1.3.2
@@ -0,0 +1,63 @@
1
+ # Compte et notifications mobiles
2
+
3
+ Cette évolution nécessite la mise à jour de gestion du compte postérieure à
4
+ 2.0.0. Sur un ancien serveur, la connexion et le monitoring restent disponibles ;
5
+ les nouvelles routes renvoient 404. L’authentification SQLite reste optionnelle.
6
+ La démonstration publique en lecture seule utilise un proxy distinct ; ne rendez
7
+ jamais un agent privé anonyme pour obtenir une démo.
8
+
9
+ Le compte permet de modifier le nom affiché et la langue (`system`, `fr`, `en`).
10
+ L’identifiant et le rôle restent administrés côté serveur. Un changement de mot
11
+ de passe exige le mot de passe actuel et la protection CSRF ; il conserve les
12
+ droits, mais révoque toutes les sessions, tous les jetons API et toutes les
13
+ inscriptions aux notifications. Recréez volontairement les jetons machine utiles.
14
+
15
+ ## Mot de passe oublié
16
+
17
+ L’administrateur vérifie l’identité du demandeur par un canal de confiance puis
18
+ exécute sur le serveur :
19
+
20
+ ```sh
21
+ monit-docker auth recovery-code --database /private/auth.db --username alice --output-file /private/recovery-code
22
+ ```
23
+
24
+ Il transmet le code confidentiellement à l’utilisateur, qui le saisit avec son
25
+ nouveau mot de passe dans l’application. Le code est valable 15 minutes, à usage
26
+ unique ; seul son condensat est conservé. Un nouveau code remplace le précédent.
27
+ Supprimez le fichier après transmission. Aucun e-mail n’est envoyé : le modèle de
28
+ compte actuel n’impose ni adresse vérifiée ni serveur SMTP. Les comptes désactivés
29
+ ne peuvent pas récupérer leur accès. Les limites de tentatives persistent après
30
+ redémarrage. Le mot de passe doit comporter au moins 12 caractères.
31
+
32
+ ## Notifications application fermée
33
+
34
+ Activez `serve --mobile-push`, ou `serve.mobile_push: true`, avec une base de comptes
35
+ et une origine HTTPS. Le serveur doit joindre `https://exp.host`. L’APK doit être
36
+ compilée avec la configuration Expo/Firebase correspondante et le téléphone doit
37
+ autoriser les notifications. Une APK sans cette configuration le signale.
38
+
39
+ L’inscription est volontaire, valable sept jours, renouvelable, avec cinq appareils
40
+ maximum par compte. La déconnexion en ligne et la révocation d’une session
41
+ suppriment les inscriptions liées. Un changement de rôle/mot de passe les supprime
42
+ toutes. Hors connexion, la révocation distante reste incertaine : révoquez ensuite
43
+ l’ancienne session ou attendez l’expiration de l’inscription. L’expiration d’une
44
+ session impose une reconnexion mais ne raccourcit pas silencieusement le
45
+ consentement de sept jours aux notifications.
46
+
47
+ Un travailleur séparé vérifie toutes les 30 secondes les observations du serveur :
48
+ monitoring indisponible, conteneur défaillant, arrêté ou en redémarrage, hors
49
+ maintenance. Les épisodes sont regroupés et les échecs espacés de cinq minutes.
50
+ Ces critères sont distincts des filtres et masquages locaux. Expo/Google reçoivent
51
+ le jeton, une notification générique traduite et l’origine du serveur, sans nom de
52
+ conteneur ni mesure. Toucher la notification ouvre l’état actuel authentifié et
53
+ n’exécute aucune action. Les alertes existantes continuent à fonctionner.
54
+
55
+ Le suivi distingue inscription, acceptation par le fournisseur et reçu de
56
+ transmission à Google/Apple. Le reçu est vérifié après 15 minutes ; il ne prouve
57
+ pas l’affichage sur le téléphone. L’arrêt forcé Android bloque la réception jusqu’à
58
+ réouverture ; réseau, batterie et permissions influencent aussi la réception.
59
+
60
+ Les sessions expirent après huit heures maximum ou 30 minutes d’inactivité.
61
+ L’activité renouvelle le délai d’inactivité dans cette limite. Aucun jeton de
62
+ renouvellement ni appairage QR n’est implémenté. Voir le
63
+ [contrat des routes API](mobile-accounts.md#api-additions).
@@ -0,0 +1,76 @@
1
+ # Self-service accounts and optional remote notifications
2
+
3
+ These additions require the account-lifecycle update after 2.0.0. Older servers
4
+ continue to support login and monitoring but return 404 for the new endpoints.
5
+ SQLite authentication remains opt-in. Anonymous demonstration access is a separate
6
+ read-only proxy configuration; never disable authentication on a private agent.
7
+
8
+ Users can read/update their display name and preferred language (`system`, `en`,
9
+ `fr`) with a session. Usernames and roles remain administrator-managed. Changing
10
+ the password requires the current password and CSRF proof, preserves the role,
11
+ and revokes all sessions, machine tokens and mobile registrations. Reissue machine
12
+ tokens deliberately after a password change. Nothing retries a password mutation.
13
+
14
+ ## Password recovery without email
15
+
16
+ The administrator verifies the requester's identity using an existing trusted
17
+ channel, then runs locally on the server:
18
+
19
+ ```sh
20
+ monit-docker auth recovery-code --database /private/auth.db --username alice --output-file /private/recovery-code
21
+ ```
22
+
23
+ Send the file's code privately to that user. It expires after 15 minutes and can
24
+ be used once with a new password of at least 12 characters. Creating a replacement
25
+ code invalidates the previous code. Only its SHA-256 digest is persisted. The
26
+ command never prints the code and requires a new private output file. Remove that
27
+ file after handoff. No SMTP server or verified email identity is assumed, and no
28
+ email is sent. Disabled accounts cannot recover. Login rate limits also protect
29
+ code verification. Password changes and recovery revoke existing credentials.
30
+
31
+ ## Optional background delivery
32
+
33
+ Enable `serve --mobile-push` (or `serve.mobile_push: true` in YAML) only with
34
+ `--auth-db` and `--auth-origin`. The server needs outbound HTTPS access to
35
+ `https://exp.host`. The Android client needs matching Expo/Firebase configuration
36
+ and notification permission; an unconfigured build must show this limitation.
37
+ The normal monitoring engine and other alert transports remain independent.
38
+
39
+ Each account can register five devices. A registration lasts seven days, is bound
40
+ to its account/revision and registering session, and can be renewed explicitly.
41
+ Logout and individual session revocation remove corresponding registrations;
42
+ password/role changes remove all of them. Offline logout cannot guarantee remote
43
+ revocation: reconnect and revoke the old session, or let the device lease expire.
44
+ Session expiry requires login again but does not silently cancel the separately
45
+ consented seven-day notification lease.
46
+
47
+ The server observes cached monitoring state every 30 seconds in a separate worker.
48
+ It groups unavailable monitoring and unhealthy/exited/dead/restarting containers,
49
+ excludes maintenance, deduplicates episodes and backs off failed sends for five
50
+ minutes. These server criteria differ from foreground client filters/dismissals.
51
+ Notifications contain a generic localized message and the installation origin,
52
+ never workload names, metrics, credentials or an executable action. Expo/Google
53
+ process the delivery token and payload; registration is explicit and optional.
54
+ An accepted ticket is not delivery. Receipts are checked after 15 minutes and
55
+ invalid tokens are removed. A successful receipt confirms provider handoff, not
56
+ that the user saw the notification. Phone/network/OS restrictions still apply;
57
+ Android force-stop prevents delivery until the app is reopened.
58
+
59
+ ## API additions
60
+
61
+ All routes use API v1, bounded JSON and no-store responses. Private writes require
62
+ `Authorization: Session ...` and `X-CSRF-Token`. Native requests carry no browser
63
+ cookies/origin. No machine token can edit a human profile or register a phone.
64
+
65
+ | Route | Method | Body / response |
66
+ | --- | --- | --- |
67
+ | `/v1/auth/info` | GET | Adds account/password capabilities, `recovery: administrator-code-v1`, `mobile_push` |
68
+ | `/v1/auth/profile` | GET, POST | Exactly `display_name` and `language`; authenticated user's own profile |
69
+ | `/v1/auth/password` | POST | `current_password`, `new_password`; returns `updated`, `sessions_revoked` |
70
+ | `/v1/auth/recover` | POST | `username`, `recovery_code`, `new_password`; requires `X-Monit-Client: native-v1`, rejects browser/mixed credentials |
71
+ | `/v1/auth/devices` | GET | `enabled`, current session's device expiry/delivery statuses; no tokens |
72
+ | `/v1/auth/devices` | POST | `token`, `language` (`en`/`fr`), `channel` (`monit-observations-S-V`, S/V 0 or 1), or `unregister: true` |
73
+
74
+ Sessions still have a maximum lifetime of eight hours and a 30-minute idle expiry.
75
+ Activity extends idle validity within the absolute limit. There is no refresh
76
+ credential or QR pairing endpoint; renewed authentication requires the password.
@@ -0,0 +1,16 @@
1
+ # monit-docker 2.0.1
2
+
3
+ Requires Sonicprobe 0.3.66. Application email and queued SMTP logs sent through
4
+ Sonicprobe receive missing Date and Message-ID headers. Existing header values
5
+ are preserved. This prevents rejection caused by missing origin headers; it does
6
+ not guarantee final delivery by the receiving mail server.
7
+
8
+ Upgrade the installed package or rebuild the application image, then restart the
9
+ service so the running process loads the updated dependency.
10
+
11
+ ## Français
12
+
13
+ Cette version exige Sonicprobe 0.3.66. Les courriels et journaux SMTP envoyés par
14
+ Sonicprobe reçoivent les en-têtes Date et Message-ID manquants, sans remplacer les
15
+ valeurs existantes. Mettre à jour le paquet ou reconstruire l’image, puis
16
+ redémarrer le service. La remise finale reste à vérifier auprès du relais SMTP.
@@ -293,8 +293,24 @@ improvements and documented behavior over adding infrastructure by default.
293
293
  Discuss priorities through [GitHub issues](https://github.com/decryptus/monit-docker/issues).
294
294
  The maintainer may revise the order and scope as evidence and user needs change.
295
295
 
296
- ## SQLite authentication candidate
297
-
298
- Implemented on the development branch: local accounts and global roles, durable sessions, scoped machine tokens, browser login/logout, native session API, offline htpasswd migration with explicit role mapping and non-destructive rollback. See the [engineering record](authentication-review.md) and [operator guide](authentication.md).
299
-
300
- Automated checks cover the supported Python suites, installed packages, real TLS proxy migration and browser authentication (see [PR #119](https://github.com/decryptus/monit-docker/pull/119) for revision-specific results). Pending delivery: matching APK session client, coordinated deployment cutover, package/image release and public website/manual synchronization. Existing 1.3.3 installations and Basic-auth demo configuration are unchanged. Do not mark this feature deployed from unit tests alone.
296
+ ## SQLite authentication — released in 2.0.0
297
+
298
+ Released in 2.0.0: local accounts and global roles, durable sessions, scoped machine tokens, browser login/logout, native session API, offline htpasswd migration with explicit role mapping and non-destructive rollback. See the [engineering record](authentication-review.md) and [operator guide](authentication.md).
299
+
300
+ Automated checks cover the supported Python suites, installed packages, real TLS proxy migration and browser authentication (see [PR #119](https://github.com/decryptus/monit-docker/pull/119) for revision-specific results). The matching native session client exists in the mobile application. The 2.0.0 package/images and public demo have been delivered; anonymous demo status is read-only while private routes still require authentication. Physical mobile acceptance remains separate. Do not infer device acceptance from CI or server checks.
301
+
302
+ ## Account lifecycle and optional device delivery — implementation after 2.0.0
303
+
304
+ - Implemented: own display name/language, current-password change, offline-admin
305
+ one-time recovery codes, credential revocation and bounded device registration.
306
+ - Implemented: optional independent Expo delivery worker, episode deduplication,
307
+ persisted retry backoff, receipt checks and generic EN/FR payloads.
308
+ - Existing sessions: secure native protocol, 8-hour absolute / 30-minute idle
309
+ lifetime, explicit reauthentication; no refresh credential or QR pairing.
310
+ - Validation: full Python 3.10/3.12, package/image, Docker integration, proxy/browser
311
+ and documentation checks passed. Account lifecycle was also verified on the demo
312
+ with a disposable account, including recovery replay and session revocation.
313
+ - Delivery: merged source and demo candidate deployment; the published 2.0.0
314
+ package/images remain immutable and do not include these subsequent endpoints.
315
+ Remote delivery still requires Expo/FCM configuration and physical-phone
316
+ acceptance. See mobile-accounts.md.
@@ -1,6 +1,6 @@
1
1
  services:
2
2
  monit-docker:
3
- image: decryptus/monit-docker:2.0.0
3
+ image: decryptus/monit-docker:2.0.1
4
4
  command: [monit-docker, serve, --bind, 0.0.0.0, --interval, '30']
5
5
  restart: unless-stopped
6
6
  stop_grace_period: 60s
@@ -1,5 +1,5 @@
1
1
  # Published release with the strict send()/Streams API.
2
2
  dwho==0.3.61
3
- httpdis==0.6.28
4
- sonicprobe==0.3.52
3
+ httpdis==0.7.1
4
+ sonicprobe==0.3.66
5
5
  redis==5.2.1
@@ -1,6 +1,6 @@
1
1
  services:
2
2
  monit-docker:
3
- image: decryptus/monit-docker:2.0.0
3
+ image: decryptus/monit-docker:2.0.1
4
4
  command: [monit-docker, serve, --bind, 0.0.0.0, --interval, '30']
5
5
  restart: unless-stopped
6
6
  stop_grace_period: 60s
@@ -15,7 +15,7 @@ services:
15
15
  create_host_path: false
16
16
 
17
17
  ui:
18
- image: decryptus/monit-docker-ui:2.0.0
18
+ image: decryptus/monit-docker-ui:2.0.1
19
19
  restart: unless-stopped
20
20
  depends_on: [monit-docker]
21
21
  networks: [agent, frontend]
@@ -2,6 +2,6 @@
2
2
 
3
3
  from __future__ import absolute_import
4
4
 
5
- __version__ = '2.0.0'
5
+ __version__ = '2.0.1'
6
6
 
7
7
  __all__ = ('__version__',)
@@ -0,0 +1,123 @@
1
+ """Self-service account policy over the existing transactional auth service.
2
+
3
+ Profile and recovery metadata belong to Monit-Docker; hashing, admission limits,
4
+ session verification and private persistence remain provided by HTTPdis.
5
+ """
6
+ import hashlib
7
+ import hmac
8
+ import re
9
+ import secrets
10
+
11
+ from httpdis.authentication import AuthenticationDenied
12
+ from monit_docker.auth_policy import username
13
+
14
+ LANGUAGES = frozenset(('system', 'en', 'fr'))
15
+ PROFILE_FIELDS = frozenset(('display_name', 'language'))
16
+ RECOVERY_TTL = 900
17
+ RECOVERY_RE = re.compile(r'[A-Za-z0-9_-]{43}')
18
+ MAX_PASSWORD_BYTES = 1024
19
+ MIN_PASSWORD_LENGTH = 12
20
+
21
+
22
+ def password_value(value):
23
+ if (not isinstance(value, str) or len(value) < MIN_PASSWORD_LENGTH or
24
+ len(value.encode('utf-8')) > MAX_PASSWORD_BYTES or '\x00' in value):
25
+ raise ValueError('invalid new password')
26
+ return value
27
+
28
+
29
+ class AccountLifecycle:
30
+ def __init__(self, accounts):
31
+ self.accounts = accounts
32
+ self.store = accounts.store
33
+ self.service = accounts.service
34
+
35
+ def profile(self, principal):
36
+ with self.store.transaction() as tx:
37
+ account = tx.get('accounts', username(principal))
38
+ if not account or not account['enabled']:
39
+ raise AuthenticationDenied()
40
+ return {'display_name': account.get('display_name', principal),
41
+ 'language': account.get('language', 'system')}
42
+
43
+ def update(self, principal, data):
44
+ if not isinstance(data, dict) or set(data) != PROFILE_FIELDS:
45
+ raise ValueError('invalid profile')
46
+ name, language = data['display_name'], data['language']
47
+ if (not isinstance(name, str) or not 1 <= len(name.strip()) <= 80 or
48
+ any(ord(c) < 32 or ord(c) == 127 for c in name) or
49
+ not isinstance(language, str) or language not in LANGUAGES):
50
+ raise ValueError('invalid profile')
51
+ with self.store.transaction() as tx:
52
+ account = tx.get('accounts', username(principal))
53
+ if not account or not account['enabled']:
54
+ raise AuthenticationDenied()
55
+ account.update(display_name=name.strip(), language=language)
56
+ tx.put('accounts', principal, account)
57
+ return self.profile(principal)
58
+
59
+ def issue_recovery(self, principal):
60
+ """Trusted offline administrator operation; return the secret once."""
61
+ secret = secrets.token_urlsafe(32)
62
+ with self.store.transaction() as tx:
63
+ account = tx.get('accounts', username(principal))
64
+ if not account or not account['enabled']:
65
+ raise AuthenticationDenied()
66
+ account['recovery'] = {'digest': hashlib.sha256(secret.encode()).hexdigest(),
67
+ 'expires': self.service.clock() + RECOVERY_TTL}
68
+ tx.put('accounts', principal, account)
69
+ return secret
70
+
71
+ def discard_recovery(self, principal):
72
+ with self.store.transaction() as tx:
73
+ account = tx.get('accounts', username(principal))
74
+ if account:
75
+ account.pop('recovery', None)
76
+ tx.put('accounts', principal, account)
77
+
78
+ def _replace_password(self, tx, principal, account, encoded):
79
+ account.update(hash=encoded, revision=secrets.token_urlsafe(32))
80
+ account.pop('recovery', None)
81
+ account.pop('mobile_devices', None)
82
+ tx.put('accounts', principal, account)
83
+ for table in ('sessions', 'tokens'):
84
+ for key, record in tx.items(table):
85
+ if record['principal'] == principal:
86
+ tx.delete(table, key)
87
+
88
+ def change_password(self, principal, current, new, peer):
89
+ password_value(new)
90
+ # Reauthentication reuses HTTPdis's durable limits and bounded hash work.
91
+ with self.store.transaction() as tx:
92
+ before = tx.get('accounts', username(principal))
93
+ grant = self.accounts.login(principal, current, peer)
94
+ try:
95
+ encoded = self.accounts.passwords.hash(new)
96
+ with self.store.transaction() as tx:
97
+ account = tx.get('accounts', principal)
98
+ if not account or not before or account['revision'] != before['revision'] or not account['enabled']:
99
+ raise AuthenticationDenied()
100
+ self._replace_password(tx, principal, account, encoded)
101
+ finally:
102
+ self.service.logout(grant.secret)
103
+
104
+ def recover(self, principal, secret, new, peer):
105
+ username(principal)
106
+ password_value(new)
107
+ # Reuse the same limits as login, including across daemon restarts.
108
+ self.service._admit_login(principal, peer)
109
+ if not isinstance(secret, str) or RECOVERY_RE.fullmatch(secret) is None:
110
+ raise AuthenticationDenied()
111
+ with self.store.transaction() as tx:
112
+ before = tx.get('accounts', principal)
113
+ recovery = (before or {}).get('recovery', {})
114
+ digest = hashlib.sha256(secret.encode()).hexdigest()
115
+ if (not before or not before['enabled'] or recovery.get('expires', 0) <= self.service.clock()
116
+ or not hmac.compare_digest(recovery.get('digest', ''), digest)):
117
+ raise AuthenticationDenied()
118
+ encoded = self.accounts.passwords.hash(new)
119
+ with self.store.transaction() as tx:
120
+ account = tx.get('accounts', principal)
121
+ if account != before or recovery['expires'] <= self.service.clock():
122
+ raise AuthenticationDenied()
123
+ self._replace_password(tx, principal, account, encoded)