monit-docker 1.3.3__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.
- {monit_docker-1.3.3 → monit_docker-2.0.1}/MANIFEST.in +2 -0
- {monit_docker-1.3.3/monit_docker.egg-info → monit_docker-2.0.1}/PKG-INFO +17 -8
- {monit_docker-1.3.3 → monit_docker-2.0.1}/README.md +13 -5
- monit_docker-2.0.1/RELEASE +1 -0
- monit_docker-2.0.1/VERSION +1 -0
- monit_docker-2.0.1/docs/authentication-fr.md +83 -0
- monit_docker-2.0.1/docs/authentication-review.md +23 -0
- monit_docker-2.0.1/docs/authentication.md +108 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/compose-quickstart-fr.md +2 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/compose-quickstart.md +2 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/compose.md +1 -1
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/config-cli-contract.md +4 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/contributors.rst +2 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/http-api-contract.md +4 -0
- monit_docker-2.0.1/docs/incident-ai-fr.md +273 -0
- monit_docker-2.0.1/docs/incident-ai-review.md +226 -0
- monit_docker-2.0.1/docs/incident-ai.md +271 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/index.rst +8 -0
- monit_docker-2.0.1/docs/mobile-accounts-fr.md +63 -0
- monit_docker-2.0.1/docs/mobile-accounts.md +76 -0
- monit_docker-2.0.1/docs/release-2.0.0.md +43 -0
- monit_docker-2.0.1/docs/release-2.0.1.md +16 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/roadmap.md +74 -4
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/serve.md +2 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/ui.md +8 -0
- monit_docker-2.0.1/examples/ai/anthropic.yml +9 -0
- monit_docker-2.0.1/examples/ai/ollama.yml +6 -0
- monit_docker-2.0.1/examples/ai/openai-compatible.yml +8 -0
- monit_docker-2.0.1/examples/ai/status.json +27 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/compose.yaml +1 -1
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/redis-webhook/requirements.txt +2 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/ui/compose.yaml +2 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/__init__.py +1 -1
- monit_docker-2.0.1/monit_docker/account_lifecycle.py +123 -0
- monit_docker-2.0.1/monit_docker/adapters/auth_http.py +216 -0
- monit_docker-2.0.1/monit_docker/adapters/auth_migration.py +159 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/command_config.py +2 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/http.py +43 -6
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/http_routes.py +63 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/http_security.py +7 -2
- monit_docker-2.0.1/monit_docker/adapters/incident_ai.py +271 -0
- monit_docker-2.0.1/monit_docker/adapters/local_auth.py +116 -0
- monit_docker-2.0.1/monit_docker/adapters/mobile_push.py +119 -0
- monit_docker-2.0.1/monit_docker/adapters/mobile_push_messages.json +4 -0
- monit_docker-2.0.1/monit_docker/auth_policy.py +32 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/cli.py +69 -13
- monit_docker-2.0.1/monit_docker/cli_auth.py +113 -0
- monit_docker-2.0.1/monit_docker/cli_incident.py +109 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/composition.py +37 -0
- monit_docker-2.0.1/monit_docker/incident.py +267 -0
- monit_docker-2.0.1/monit_docker/incident_session.py +86 -0
- monit_docker-2.0.1/monit_docker/mobile_notifications.py +75 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/service.py +3 -1
- {monit_docker-1.3.3 → monit_docker-2.0.1/monit_docker.egg-info}/PKG-INFO +17 -8
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker.egg-info/SOURCES.txt +40 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker.egg-info/requires.txt +3 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/requirements.txt +3 -2
- {monit_docker-1.3.3 → monit_docker-2.0.1}/setup.py +1 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/setup.yml +2 -2
- monit_docker-2.0.1/tests/test_account_lifecycle.py +88 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_application_architecture.py +2 -2
- monit_docker-2.0.1/tests/test_auth_cli.py +48 -0
- monit_docker-2.0.1/tests/test_auth_http.py +180 -0
- monit_docker-2.0.1/tests/test_auth_migration.py +130 -0
- monit_docker-2.0.1/tests/test_incident.py +192 -0
- monit_docker-2.0.1/tests/test_incident_anthropic.py +122 -0
- monit_docker-2.0.1/tests/test_incident_cli.py +98 -0
- monit_docker-2.0.1/tests/test_incident_http.py +136 -0
- monit_docker-2.0.1/tests/test_incident_provider.py +193 -0
- monit_docker-2.0.1/tests/test_incident_qualification.py +166 -0
- monit_docker-2.0.1/tests/test_incident_session.py +161 -0
- monit_docker-2.0.1/tests/test_local_auth.py +125 -0
- monit_docker-2.0.1/tests/test_mobile_notifications.py +104 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_packaging.py +15 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_serve_config.py +22 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_service.py +2 -1
- monit_docker-1.3.3/RELEASE +0 -1
- monit_docker-1.3.3/VERSION +0 -1
- {monit_docker-1.3.3 → monit_docker-2.0.1}/LICENSE +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/bin/monit-docker +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/access-checks.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/alerts.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/architecture-review-2026-09-27.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/architecture.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/audit-migration.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/audit.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/beta-decisions.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/check-config.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/configuration-validation.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/contributing.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/cron.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/deprecation-policy.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/dwho-http-notifications.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/filesystems.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/grafana.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/healthchecks.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/grafana-cpu.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/grafana-network.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/grafana-overview.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/terminal-containers.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/terminal-details.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/terminal-journal.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/textual-containers.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/textual-journal.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/images/textual-unavailable.png +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/installation-upgrades.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/journal-compatibility.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/maintenance.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/metrics.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/notifications.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/performance-resilience.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/redis-notifications.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.0.0.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.0.1.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.1.0.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.1.1.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.1.2.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.1.3.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.1.4.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.2.0.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.3.0.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.3.1.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.3.2.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/release-1.3.3.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/restart-limit.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/runtime-checks.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/scenarios.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/shared-terminal.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/simple.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/supported-environments.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/terminal.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/textual-review.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/textual.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/trigger-delay.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/troubleshooting.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/docs/tutorial-memory.md +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/grafana/monit-docker.json +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alertmanager.email-slack.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alertmanager.email.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alertmanager.redis.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alertmanager.slack.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alerts.runtime.test.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alerts.runtime.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alerts.test.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/alerts.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/compose.audit.yaml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/compose.notifications.yaml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/compose.redis.yaml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/dwho-http/http.json +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/dwho-http/http.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/dwho-http/payload.json +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/dwho-http/send.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/grafana/dashboards.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/grafana/datasources.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/prometheus-notifications.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/prometheus.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/redis-webhook/Dockerfile +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/redis-webhook/bridge.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/monitoring/start.sh +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/scenarios.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/socket-proxy/Dockerfile +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/tutorial-memory/compose.yaml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/tutorial-memory/monit-docker.yml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/tutorial-memory/worker.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/ui/compose.actions.yaml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/ui/compose.journal.yaml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/examples/ui/prepare.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/__main__.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/__init__.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/access.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/audit_http.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/configuration.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/docker.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/events.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/filesystems.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/rules.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/scenarios.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/selection.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/state.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/stats.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/syntax.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/validation.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/adapters/validation_rules.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/application.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/application_state.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/audit.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/audit_forward.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/audit_migrate.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/audit_query.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/cli_audit.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/core/__init__.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/core/engine.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/core/manual.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/core/metrics.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/core/policy.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/core/rules.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/__init__.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/errors.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/filesystems.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/identifiers.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/maintenance.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/models.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/rules.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/domain/runtime.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/job.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/manual_actions.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/notification_audit.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/observation.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/outputs/__init__.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/outputs/formatting.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/outputs/prometheus.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/textual_demo.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/textual_tui.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker/tui.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker.egg-info/dependency_links.txt +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/monit_docker.egg-info/top_level.txt +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/pyproject.toml +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/scripts/capture_textual.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/setup.cfg +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_access.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_access_docker.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_adapters.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_api_contract.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_audit.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_audit_migrate.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_audit_query.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_audit_stream.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_beta_decisions.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_check_config.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_cli_contract.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_configuration_schema.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_core.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_cron.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_direct_command_config.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_docker_integration.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_engine.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_filesystem_mode.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_filesystems.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_health.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_http_service_boundaries.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_http_token_separation.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_httpdis_transport.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_journal_compatibility.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_maintenance.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_manual_actions.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_monit_docker.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_resilience.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_restart_limit.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_rule_literals.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_runtime_checks.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_runtime_docker.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_scenarios.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_stats_timeouts.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_stats_transport.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_terminal_docker.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_terminal_signals.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_trigger_delay.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/tests/test_tui.py +0 -0
- {monit_docker-1.3.3 → monit_docker-2.0.1}/textual_tests/test_textual_tui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: monit-docker
|
|
3
|
-
Version:
|
|
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
|
|
@@ -23,12 +23,13 @@ License-File: LICENSE
|
|
|
23
23
|
Requires-Dist: cryptography>=3.2.1
|
|
24
24
|
Requires-Dist: bitmath>=1.3.3.1
|
|
25
25
|
Requires-Dist: docker>=2.7.0
|
|
26
|
-
Requires-Dist: HTTPdis>=0.7.1
|
|
26
|
+
Requires-Dist: HTTPdis[auth]>=0.7.1
|
|
27
27
|
Requires-Dist: Mako
|
|
28
28
|
Requires-Dist: pyOpenSSL>=20.0.0
|
|
29
29
|
Requires-Dist: PyYAML>=3.10
|
|
30
|
+
Requires-Dist: pycurl>=7.43.0
|
|
30
31
|
Requires-Dist: six>=1.13.0
|
|
31
|
-
Requires-Dist: sonicprobe>=0.3.
|
|
32
|
+
Requires-Dist: sonicprobe>=0.3.66
|
|
32
33
|
Requires-Dist: regex>=2024.5.15
|
|
33
34
|
Requires-Dist: dwho>=0.3.63
|
|
34
35
|
Provides-Extra: textual
|
|
@@ -49,8 +50,16 @@ Dynamic: summary
|
|
|
49
50
|
|
|
50
51
|
# monit-docker project
|
|
51
52
|
|
|
52
|
-
**Current package and image version: [
|
|
53
|
-
— [Release notes and upgrade guidance](docs/release-
|
|
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
|
+
|
|
56
|
+
Optional [incident assistance](docs/incident-ai.md)
|
|
57
|
+
([guide français](docs/incident-ai-fr.md)) with a local model or your own API key.
|
|
58
|
+
CLI and opt-in web explanations support French and English. Real-model qualification remains pending.
|
|
59
|
+
|
|
60
|
+
[SQLite accounts and migration](docs/authentication.md)
|
|
61
|
+
([guide français](docs/authentication-fr.md)), with web login and a native-session API.
|
|
62
|
+
SQLite activation is explicit; the Android release and device testing are deferred.
|
|
54
63
|
|
|
55
64
|
<p align="center">
|
|
56
65
|
<img src="https://raw.githubusercontent.com/decryptus/monit-docker/v0.0.63/ui/branding/monit-docker-logo.png" alt="monit-docker logo" width="640">
|
|
@@ -66,7 +75,7 @@ Dynamic: summary
|
|
|
66
75
|
[Documentation (EN)](https://www.monit-docker.com/docs/en/) ·
|
|
67
76
|
[Live demo](https://demo.monit-docker.com/) ·
|
|
68
77
|
[Release roadmap](docs/roadmap.md) ·
|
|
69
|
-
[
|
|
78
|
+
[2.0.1 release notes](docs/release-2.0.1.md) ·
|
|
70
79
|
[Logos and icons](ui/branding/README.md)
|
|
71
80
|
|
|
72
81
|
monit-docker is a free, open-source tool for checking Docker containers and
|
|
@@ -77,7 +86,7 @@ container or reloading PHP-FPM when memory usage is high.
|
|
|
77
86
|
Compose v2 and curl, run:
|
|
78
87
|
|
|
79
88
|
```sh
|
|
80
|
-
git clone --branch
|
|
89
|
+
git clone --branch v2.0.1 --depth 1 https://github.com/decryptus/monit-docker.git
|
|
81
90
|
cd monit-docker
|
|
82
91
|
./install.sh
|
|
83
92
|
```
|
|
@@ -178,7 +187,7 @@ for prerequisites, the UI, upgrades and stopping the stack. The
|
|
|
178
187
|
then explicitly enables one automatic restart. The default installation has no action rules.
|
|
179
188
|
|
|
180
189
|
The current Compose checkout builds the socket proxy locally and runs the published
|
|
181
|
-
|
|
190
|
+
2.0.1 agent and UI images. Before switching an existing direct-socket agent,
|
|
182
191
|
follow the [socket migration](docs/compose-quickstart.md#migrate-an-existing-agent).
|
|
183
192
|
|
|
184
193
|
**Existing root Compose users:** the old cron/PHP-FPM example is replaced by
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# monit-docker project
|
|
2
2
|
|
|
3
|
-
**Current package and image version: [
|
|
4
|
-
— [Release notes and upgrade guidance](docs/release-
|
|
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
|
+
|
|
6
|
+
Optional [incident assistance](docs/incident-ai.md)
|
|
7
|
+
([guide français](docs/incident-ai-fr.md)) with a local model or your own API key.
|
|
8
|
+
CLI and opt-in web explanations support French and English. Real-model qualification remains pending.
|
|
9
|
+
|
|
10
|
+
[SQLite accounts and migration](docs/authentication.md)
|
|
11
|
+
([guide français](docs/authentication-fr.md)), with web login and a native-session API.
|
|
12
|
+
SQLite activation is explicit; the Android release and device testing are deferred.
|
|
5
13
|
|
|
6
14
|
<p align="center">
|
|
7
15
|
<img src="https://raw.githubusercontent.com/decryptus/monit-docker/v0.0.63/ui/branding/monit-docker-logo.png" alt="monit-docker logo" width="640">
|
|
@@ -17,7 +25,7 @@
|
|
|
17
25
|
[Documentation (EN)](https://www.monit-docker.com/docs/en/) ·
|
|
18
26
|
[Live demo](https://demo.monit-docker.com/) ·
|
|
19
27
|
[Release roadmap](docs/roadmap.md) ·
|
|
20
|
-
[
|
|
28
|
+
[2.0.1 release notes](docs/release-2.0.1.md) ·
|
|
21
29
|
[Logos and icons](ui/branding/README.md)
|
|
22
30
|
|
|
23
31
|
monit-docker is a free, open-source tool for checking Docker containers and
|
|
@@ -28,7 +36,7 @@ container or reloading PHP-FPM when memory usage is high.
|
|
|
28
36
|
Compose v2 and curl, run:
|
|
29
37
|
|
|
30
38
|
```sh
|
|
31
|
-
git clone --branch
|
|
39
|
+
git clone --branch v2.0.1 --depth 1 https://github.com/decryptus/monit-docker.git
|
|
32
40
|
cd monit-docker
|
|
33
41
|
./install.sh
|
|
34
42
|
```
|
|
@@ -129,7 +137,7 @@ for prerequisites, the UI, upgrades and stopping the stack. The
|
|
|
129
137
|
then explicitly enables one automatic restart. The default installation has no action rules.
|
|
130
138
|
|
|
131
139
|
The current Compose checkout builds the socket proxy locally and runs the published
|
|
132
|
-
|
|
140
|
+
2.0.1 agent and UI images. Before switching an existing direct-socket agent,
|
|
133
141
|
follow the [socket migration](docs/compose-quickstart.md#migrate-an-existing-agent).
|
|
134
142
|
|
|
135
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
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Authentification SQLite et migration (version de développement)
|
|
2
|
+
|
|
3
|
+
Disponible depuis la **2.0.0**. Utiliser les images agent et interface 2.0.0 correspondantes. L'activation est explicite : une mise à jour seule ne change pas l'authentification existante. Le [guide technique anglais](authentication.md) décrit les commandes et le contrat API complet.
|
|
4
|
+
|
|
5
|
+
## Comptes, droits et sessions
|
|
6
|
+
|
|
7
|
+
Les comptes, empreintes de mots de passe, sessions, empreintes des jetons API et limites de connexion sont stockés dans une base SQLite locale, sans Redis ni service hébergé. Le fichier appartient à l'utilisateur du service, en `0600`, dans un dossier privé `0700`. En conteneur, monter durablement le **dossier**. Ne pas exposer directement le port de l'agent à Internet.
|
|
8
|
+
|
|
9
|
+
| Rôle | Droits sur l'instance entière |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `viewer` | Lecture de l'état des conteneurs |
|
|
12
|
+
| `operator` | Lecture, journal, actions manuelles et assistance IA si activées |
|
|
13
|
+
| `admin` | Droits opérateur, gestion des comptes et métriques |
|
|
14
|
+
| `metrics` | Métriques uniquement, pour un compte technique |
|
|
15
|
+
| `receiver` | Réception des notifications uniquement, pour un compte technique |
|
|
16
|
+
|
|
17
|
+
Le serveur vérifie les droits. Aucun droit ne déclenche à lui seul l'activation des actions ou de l'IA. Il n'y a pas encore de droits par conteneur ni d'écran web de gestion des comptes. L'administration reste possible par la CLI et par l'API administrateur.
|
|
18
|
+
|
|
19
|
+
Exécuter sous l'utilisateur du service :
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
install -d -m 700 /var/lib/monit-docker/auth
|
|
23
|
+
monit-docker auth user-add --database /var/lib/monit-docker/auth/auth.db --username administrateur --role admin
|
|
24
|
+
monit-docker serve --auth-db /var/lib/monit-docker/auth/auth.db --auth-origin https://monitor.example
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
La commande demande le mot de passe sans l'afficher : 12 caractères minimum, 1024 octets UTF-8 maximum. Pour un compte existant, `user-add` remplace le mot de passe et le rôle, réactive le compte et révoque toutes ses sessions et ses jetons API. `auth role` et `auth disable` révoquent également les accès existants. Toujours préciser `--database`, puis `--username` et éventuellement `--role`. La CLI locale permet de récupérer l'accès si le dernier administrateur a été désactivé.
|
|
28
|
+
|
|
29
|
+
## Connexion web et APK
|
|
30
|
+
|
|
31
|
+
Remplacer explicitement la configuration Basic du proxy par `ui/nginx/sqlite.conf`, montée dans `/etc/nginx/conf.d/default.conf`. L'image UI correspondante inclut `monit-sqlite-proxy.conf`. Conserver les certificats TLS et le réseau privé vers `monit-docker:9808`. L'origine HTTPS publique, port compris, doit correspondre exactement à `--auth-origin`. Ne pas ajouter de Basic Auth ou de CORS sur ce proxy.
|
|
32
|
+
|
|
33
|
+
La connexion web utilise un cookie `Secure`, `HttpOnly`, `SameSite=Strict`. Seul le jeton CSRF est conservé dans le `sessionStorage` de l'onglet ; le mot de passe ne l'est jamais. Un nouvel onglet sans jeton CSRF demande une connexion. Une nouvelle connexion remplace la session précédente du même navigateur. La déconnexion révoque la session côté serveur ; un échec réseau est signalé.
|
|
34
|
+
|
|
35
|
+
Les sessions durent au maximum 8 heures et expirent après 30 minutes sans requête authentifiée. Le rafraîchissement automatique compte comme activité. Elles survivent au redémarrage du service. Un changement de rôle ou de mot de passe, ou une désactivation, les révoque. Les nouveaux mots de passe utilisent Argon2id. Une base indisponible renvoie `503`, sans accès anonyme de secours. Les tentatives sont limitées par compte, pair réseau et globalement ; les clients derrière le même proxy partagent sa limite réseau.
|
|
36
|
+
|
|
37
|
+
L'APK actuel utilisant Basic doit être adapté **avant la bascule**. Le nouveau protocole est : découverte `GET /v1/auth/info`, connexion `POST /v1/auth/login` avec `X-Monit-Client: native-v1`, puis `Authorization: Session <jeton>` et `X-CSRF-Token` pour les modifications. Stocker les jetons dans le stockage sécurisé du téléphone, sans conserver le mot de passe. La déconnexion est un `POST /v1/auth/logout` avec `{}`. Aucun repli automatique vers l'ancien Basic ou la démo publique.
|
|
38
|
+
|
|
39
|
+
Activer séparément `--auth-audit --audit-file CHEMIN`, `--auth-notifications` ou les actions avec `--allow-actions --state-file CHEMIN` selon le besoin. Les règles et protections existantes restent applicables.
|
|
40
|
+
|
|
41
|
+
## Migration et bascule
|
|
42
|
+
|
|
43
|
+
1. Inventorier **tous** les fichiers htpasswd et leurs règles d'accès, y compris les comptes séparés pour le mobile, le journal ou l'IA. L'import traite un fichier complet : consolider plusieurs fichiers hors ligne en résolvant explicitement les doublons. Geler les modifications de comptes pendant l'opération.
|
|
44
|
+
2. Sauvegarder en privé les configurations du service, de Compose, du proxy et des clients, les fichiers htpasswd et les anciens jetons. L'outil sauvegarde son fichier source et la correspondance des rôles ; il ne sauvegarde pas automatiquement la configuration du déploiement.
|
|
45
|
+
3. Créer un fichier JSON privé avec un rôle explicite pour chaque compte, par exemple `{"alice":"viewer","operateur":"operator"}`. Aucun administrateur n'est attribué par défaut. Les noms commencent par une lettre ou un chiffre ASCII, puis acceptent lettres/chiffres/`.`/`_`/`-`, sur 64 caractères maximum. Renommer explicitement les anciens noms incompatibles et adapter les clients.
|
|
46
|
+
4. Faire une simulation sans écriture, puis appliquer avec un **nouveau** dossier de sauvegarde :
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
monit-docker auth migrate --database /var/lib/monit-docker/auth/auth.db --htpasswd /private/users.htpasswd --roles-file /private/roles.json
|
|
50
|
+
monit-docker auth migrate --database /var/lib/monit-docker/auth/auth.db --htpasswd /private/users.htpasswd --roles-file /private/roles.json --backup-dir /private/auth-backup-001 --apply
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
L'import valide tout le fichier, crée des sauvegardes privées avec empreintes SHA-256, synchronise leurs fichiers et entrées de dossiers sur disque, écrit dans une base temporaire en une transaction, vérifie le nombre de comptes et l'intégrité, puis publie la base sans écraser de fichier existant. Les sources sont revérifiées avant publication et restent inchangées. Après échec, examiner le résultat ; ne pas supprimer arbitrairement une base existante pour relancer.
|
|
54
|
+
|
|
55
|
+
SHA-256/512 crypt et bcrypt à coût borné sont acceptés. APR1, SHA-1, DES, texte clair, empreinte invalide ou coût excessif font échouer l'import entier. Réinitialiser explicitement les comptes incompatibles avant migration. Un ancien mot de passe compatible est conservé ; son empreinte passe à Argon2id après connexion réussie s'il atteint la longueur minimale. Un mot de passe ancien trop court nécessite une réinitialisation. Basic n'a pas de session serveur à reprendre : les utilisateurs devront se reconnecter.
|
|
56
|
+
|
|
57
|
+
5. Créer un administrateur s'il manque. Les anciens secrets partagés ne représentent pas des comptes : ils ne sont **pas importés**. Émettre des jetons API `Bearer` avec droits explicites et reconfigurer Prometheus et les récepteurs. Exemple après création d'un compte `prometheus` de rôle `metrics` :
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
monit-docker auth token --database /var/lib/monit-docker/auth/auth.db --username prometheus --scope metrics:read --ttl 86400 --output-file /private/prometheus-token
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Le fichier doit être nouveau et sera créé en `0600`. Prévoir le renouvellement : durée de 1 seconde à 30 jours, 1 jour par défaut. Les anciennes options de secrets proxy sont incompatibles avec `--auth-db`.
|
|
64
|
+
|
|
65
|
+
6. Valider sur une instance privée les connexions valides/invalides, le refus des actions au lecteur, les droits administrateur, la révocation et la persistance après redémarrage. Ensuite seulement, arrêter l'ancienne instance et basculer ensemble le service et le proxy. Les données de supervision, d'actions et d'audit restent séparées de la base d'authentification.
|
|
66
|
+
|
|
67
|
+
## Retour arrière
|
|
68
|
+
|
|
69
|
+
Arrêter **tous** les processus qui écrivent dans la base. Restaurer les anciennes configurations du service, du proxy et des clients avec leurs protections. Avant redémarrage, il est possible de retirer la base migrée du chemin actif :
|
|
70
|
+
|
|
71
|
+
```sh
|
|
72
|
+
monit-docker auth rollback --database /var/lib/monit-docker/auth/auth.db --backup-dir /private/auth-backup-001 --writers-stopped
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
La commande vérifie la sauvegarde et le schéma, puis renomme la base en `.retired-*`. Elle conserve les comptes et sessions créés depuis la bascule ; elle ne les recopie pas dans htpasswd et ne restaure pas la configuration. Réconcilier les désactivations et changements de mot de passe avant de réactiver les anciens accès. Prévoir la version APK adaptée au mode restauré.
|
|
76
|
+
|
|
77
|
+
Pour les sauvegardes courantes, arrêter les écritures ou utiliser l'API de sauvegarde SQLite : ne pas copier uniquement le fichier d'une base active. Protéger les sauvegardes, qui contiennent des empreintes de mots de passe et de jetons. Un schéma inconnu est refusé ; ne pas rétrograder une base active en place.
|
|
78
|
+
|
|
79
|
+
## Langue de la connexion web
|
|
80
|
+
|
|
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).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# SQLite authentication engineering record
|
|
2
|
+
|
|
3
|
+
## Placement and scope
|
|
4
|
+
|
|
5
|
+
`auth_policy` owns Monit-Docker roles and route permission vocabulary without CLI or storage imports. `adapters/local_auth` applies that policy to HTTPdis `LocalAuthService`, `Argon2Passwords` and `SQLiteAuthStore`. `adapters/auth_http` handles browser/native transport; `cli_auth` is an offline administration interface. Neutral composition wires the service into the existing HTTPdis server. No Docker operation is performed by account administration or migration.
|
|
6
|
+
|
|
7
|
+
HTTPdis 0.7.1 already provides transactional SQLite through Sonicprobe AnySQL, credential hashing, expiry, account revisions, token scopes, login throttling and browser origin/CSRF validation. Reuse `HTTPdis[auth]>=0.7.1`; do not fork a generic authentication engine locally. DWho's Memory/Redis session facilities do not replace this local durable account lifecycle. Product roles, htpasswd-to-role mapping and deployment cutover stay in Monit-Docker. The bounded imported-hash verifier reuses HTTPdis's existing crypt verification.
|
|
8
|
+
|
|
9
|
+
Default legacy operation remains compatible. SQLite is opt-in, requires an existing provisioned database plus HTTPS origin, and rejects legacy shared-secret flags. All API authorization runs on the server. Health/readiness remain private-network health probes. The bundled proxy exposes only approved routes and keeps metrics/notification ingestion on the private agent network.
|
|
10
|
+
|
|
11
|
+
## Verification
|
|
12
|
+
|
|
13
|
+
Run the collection guard before the root unittest suite. Added suites cover persistence/restart, expiry, password resets, role revocation, token scope subsets, store failures, explicit migration roles, unsupported hashes, non-overwrite publication, interrupted import, failed backup synchronization, rollback, native/browser requests, CSRF and forged proxy actors. Existing serve test now checks the explicitly injected authentication adapter is absent by default.
|
|
14
|
+
|
|
15
|
+
`ui/tests/auth.cjs` exercises login, secure-store boundaries, failed and successful logout in a mobile viewport with synthetic API responses. Real cookie flags, server revocation, origin and scope checks are covered by HTTP wire tests. `.github/scripts/check-sqlite-proxy.py` adds real candidate Nginx/TLS acceptance in the existing CI UI job, importing a synthetic legacy account and making no Docker container actions. Existing UI acceptance tests remain enabled for legacy behavior.
|
|
16
|
+
|
|
17
|
+
The [PR checks](https://github.com/decryptus/monit-docker/pull/119/checks) record results against the exact revision. Local root-suite execution encounters the pre-existing filesystem probe requirement for `/sys`, which is absent in the Work environment; that probe passes on the Linux CI runner. Docker integration cases are explicitly opt-in and run separately in CI. Installed-wheel tests additionally skip source-checkout-only cases.
|
|
18
|
+
|
|
19
|
+
## Delivery boundaries and remaining work
|
|
20
|
+
|
|
21
|
+
This branch is a development candidate, not a release or live migration. Published 1.3.3 package/image versions and their registry descriptions remain unchanged; the public demo and public website manuals must keep describing their published version. EN/FR candidate operator guides and the contributor navigation are updated here. Public website generation/deployment belongs to the coordinated release once candidate validation passes.
|
|
22
|
+
|
|
23
|
+
The APK still needs the native-session client and secure credential migration; its Basic client must not be switched to a SQLite deployment silently. There is no GUI account-management screen, SSO, MFA, per-container authorization or mobile push in this change. Existing htpasswd accounts have no server sessions to migrate. Shared integration tokens require explicit reissue; multiple htpasswd policies require explicit consolidation. Rollback preserves the migrated database but configuration restoration and reconciliation of later account changes remain operator responsibilities.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Local accounts, sessions and migration (development candidate)
|
|
2
|
+
|
|
3
|
+
Available since **2.0.0**. Use matching 2.0.0 agent and UI images. Enabling SQLite is an explicit configuration change; upgrading the package alone keeps the existing authentication mode. See the [French guide](authentication-fr.md).
|
|
4
|
+
|
|
5
|
+
## Accounts and rights
|
|
6
|
+
|
|
7
|
+
Accounts, password hashes, sessions, API token digests and login throttling live in one local SQLite database. No Redis or hosted broker is needed. The database must be on a local filesystem in a directory owned by the daemon user, without group/other write permission. Keep the database at mode `0600`, its directory at `0700`, and mount the **directory** persistently when using containers. Do not publish the agent port on the Internet.
|
|
8
|
+
|
|
9
|
+
| Role | Permissions |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `viewer` | Container status only |
|
|
12
|
+
| `operator` | Status, journal, enabled manual actions and incident assistance |
|
|
13
|
+
| `admin` | Operator permissions, accounts and metrics |
|
|
14
|
+
| `metrics` | Metrics only; dedicated machine account |
|
|
15
|
+
| `receiver` | Notification ingestion only; dedicated machine account |
|
|
16
|
+
|
|
17
|
+
Rights apply to the entire local instance, not individual hosts or containers. Granting a role does not enable actions, the journal or AI: their existing explicit configuration is still required. The server enforces permissions; proxy identity headers are ignored in SQLite mode.
|
|
18
|
+
|
|
19
|
+
Create the directory and first account **as the daemon user**:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
install -d -m 700 /var/lib/monit-docker/auth
|
|
23
|
+
monit-docker auth user-add --database /var/lib/monit-docker/auth/auth.db --username administrator --role admin
|
|
24
|
+
monit-docker auth users --database /var/lib/monit-docker/auth/auth.db
|
|
25
|
+
monit-docker serve --auth-db /var/lib/monit-docker/auth/auth.db --auth-origin https://monitor.example
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
`user-add` prompts for a password (12 characters minimum, 1024 UTF-8 bytes maximum). On an existing username it **resets the password, replaces the role, enables the account and revokes all its sessions and API tokens**. `--password-file` accepts a private file owned by the current user. Never pass passwords in arguments or commit them.
|
|
29
|
+
|
|
30
|
+
Use `auth role --username NAME --role ROLE` or `auth disable --username NAME`, always with `--database PATH`. Both revoke existing sessions and tokens. Local CLI administration remains available for recovery if the last administrator is disabled. HTTPS administrators can also use `/v1/auth/users` (see below); there is no web account-management screen yet.
|
|
31
|
+
|
|
32
|
+
## Web and reverse proxy
|
|
33
|
+
|
|
34
|
+
Use `ui/nginx/sqlite.conf` instead of the legacy Basic-auth `default.conf`, mounted at `/etc/nginx/conf.d/default.conf`. The matching UI image includes `monit-sqlite-proxy.conf`. Supply the existing TLS certificate/key mounts and keep the private `monit-docker:9808` upstream. `--auth-origin` must exactly match the public HTTPS origin, including a non-default port. The proxy must preserve Host (including port), Cookie, Authorization, Origin, fetch metadata and CSRF headers. Do not add CORS or Basic authentication to this configuration.
|
|
35
|
+
|
|
36
|
+
The web interface displays a login dialog. Its session cookie is `Secure`, `HttpOnly`, `SameSite=Strict` and scoped to `/`; JavaScript cannot read the credential. Only the CSRF token is kept in the tab's `sessionStorage`. A new tab without that token asks for authentication again. Successful login replaces that browser's previous session. Sign-out revokes the server session; a network failure is reported instead of claiming successful revocation.
|
|
37
|
+
|
|
38
|
+
Sessions expire after 8 hours, or 30 minutes without an authenticated request. Polling counts as activity. Restarting the server preserves valid sessions. Password/role changes and disabling an account revoke them immediately. New passwords use Argon2id; only digests of session/API/CSRF secrets are persisted. Database failure returns `503`, never anonymous access. Login attempts are limited by account, direct network peer and globally; clients behind the same proxy share its peer limit.
|
|
39
|
+
|
|
40
|
+
Add `--auth-audit --audit-file PATH` to expose the journal to allowed roles; `--auth-notifications` enables authenticated ingestion. Manual actions still require `--allow-actions --state-file PATH`. AI still requires its explicit provider configuration. Existing safety rules, protected containers and action limits remain in force.
|
|
41
|
+
|
|
42
|
+
## Native APK and machine clients
|
|
43
|
+
|
|
44
|
+
The existing Basic-auth APK cannot authenticate to this mode. Update its client before cutting over. Public-demo reading and native session authentication are separate modes; never silently fall back to Basic or an anonymous endpoint after authentication fails.
|
|
45
|
+
|
|
46
|
+
| Request | Contract |
|
|
47
|
+
| --- | --- |
|
|
48
|
+
| `GET /v1/auth/info` | Public discovery: `enabled`, `api_version: 1`, `native_auth: session-v1` |
|
|
49
|
+
| `POST /v1/auth/login` | JSON `username`, `password`; native clients send `X-Monit-Client: native-v1`, without Cookie, Origin or browser fetch headers |
|
|
50
|
+
| Native login response | `session_token`, `csrf_token`, `expires_at`, `username`, `scopes` |
|
|
51
|
+
| Authenticated native request | `Authorization: Session <session_token>`; mutations also send `X-CSRF-Token` |
|
|
52
|
+
| `GET /v1/auth/me` | Current username, scopes and authentication method |
|
|
53
|
+
| `POST /v1/auth/logout` | JSON `{}`; revokes current session |
|
|
54
|
+
| `GET /v1/auth/sessions` | Current account's active sessions, with revocation IDs and expiry times |
|
|
55
|
+
| `POST /v1/auth/sessions` | JSON `{"id":"REVOCATION_ID"}`; revoke one of your sessions |
|
|
56
|
+
| `GET /v1/auth/users` | Administrator-only account list, without password hashes |
|
|
57
|
+
| `POST /v1/auth/users` | `operation: provision` with username/password/role; `role` with username/role; or `disable` with username |
|
|
58
|
+
|
|
59
|
+
All JSON requests require `Content-Type: application/json`. Reject unexpected server origins and HTTPS errors in native clients. Store session/CSRF credentials in the operating system secure store, not the password. Do not send native credentials with browser cookies. `401` requires login again; `403` means insufficient permission; `503` means authentication is unavailable.
|
|
60
|
+
|
|
61
|
+
Machine integrations use scoped `Bearer` API tokens, not session tokens. Example for a previously provisioned `metrics` account:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
monit-docker auth token --database /var/lib/monit-docker/auth/auth.db --username prometheus --scope metrics:read --ttl 86400 --output-file /private/prometheus-token
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
The output file must not exist; it is created at `0600`. Token lifetime is 1 second to 30 days (default 1 day). Arrange renewal before expiry. Old shared proxy/status/metrics/notification secrets are not account identities and are **not imported**. Reissue tokens with explicit scopes and reconfigure clients before cutover. Those legacy flags cannot be mixed with `--auth-db`.
|
|
68
|
+
|
|
69
|
+
## Migrate htpasswd accounts
|
|
70
|
+
|
|
71
|
+
1. Inventory **all** htpasswd files and their access rules, including separate journal/AI/mobile files. The command imports one complete account file. For multiple files, prepare a consolidated private file offline: resolve duplicate names/passwords explicitly; never silently merge conflicting accounts. Choose a role for every account, without granting administrator access by default. Stop account changes during migration.
|
|
72
|
+
2. Save the current daemon/Compose, proxy and client configuration privately. Preserve the original htpasswd files and shared token files for rollback. The tool backs up the source account file and role map; it does not discover or back up deployment configuration.
|
|
73
|
+
3. Prepare a role map such as `{"alice":"viewer","operator":"operator"}` in a private JSON file. It must match the source usernames exactly. Names use ASCII letters/digits then letters/digits/`.`/`_`/`-`, at most 64 characters. Existing nonmatching names need an explicit rename and client update.
|
|
74
|
+
4. Validate without writing anything:
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
monit-docker auth migrate --database /var/lib/monit-docker/auth/auth.db --htpasswd /private/users.htpasswd --roles-file /private/roles.json
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
5. Apply with a **new** backup directory. Run as the future database owner; create the private database parent first:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
monit-docker auth migrate --database /var/lib/monit-docker/auth/auth.db --htpasswd /private/users.htpasswd --roles-file /private/roles.json --backup-dir /private/auth-backup-001 --apply
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The tool validates the whole input, backs it up at private permissions with SHA-256 checksums, synchronizes backup files and directory entries to disk, imports into a temporary database in one transaction, checks counts/integrity and publishes without replacing an existing database. It rechecks inputs before publication. Original files remain unchanged. A failed run is not an invitation to delete an existing database; inspect the result and use a new backup directory for a new attempt.
|
|
87
|
+
|
|
88
|
+
Supported imported hashes are SHA-256/512 crypt and bounded-cost bcrypt. APR1, SHA-1, DES, plaintext, malformed or excessive-cost hashes fail the entire migration. Reset unsupported accounts explicitly before import. Passwords are preserved and strengthened to Argon2id after successful login when they meet the new minimum length. Short legacy passwords require an explicit password reset. Basic authentication has no server session to import: users log in again; browser-cached Basic credentials are not migrated.
|
|
89
|
+
|
|
90
|
+
6. Provision an administrator if the imported map contains none; issue machine tokens. Start a private candidate instance and verify correct/incorrect passwords, viewer denial, administrator access, logout/revocation and restart persistence. Only then stop the old instance and switch the daemon and proxy configurations together. Keep monitoring/action state and audit data separate from the authentication database.
|
|
91
|
+
|
|
92
|
+
## Rollback and backups
|
|
93
|
+
|
|
94
|
+
Stop **all** processes writing this database. Restore the saved legacy daemon/proxy/client configuration, with the original access policy; do not make the API anonymous as a workaround. Before restarting, optionally retire the migrated database:
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
monit-docker auth rollback --database /var/lib/monit-docker/auth/auth.db --backup-dir /private/auth-backup-001 --writers-stopped
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
This verifies the migration backup and database schema, then renames the database to a unique `.retired-*` file. It preserves post-cutover accounts/sessions for recovery; it does not copy those changes back to htpasswd or automatically restore configuration. Reconcile any account disables/password changes before enabling old credentials again. Keep the required matching APK/client version for the restored mode.
|
|
101
|
+
|
|
102
|
+
For routine SQLite backup, stop writers before copying the database, or use SQLite's backup API. Do not copy a live database file alone. Keep backups private and encrypted where appropriate: they contain password hashes and live credential digests. Unknown database schema versions are rejected; never downgrade a live database in place.
|
|
103
|
+
|
|
104
|
+
## Web sign-in language
|
|
105
|
+
|
|
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
|
|
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 à **
|
|
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
|
|
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 **
|
|
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
|
|
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
|
|
@@ -334,3 +334,7 @@ Existing `test_check_config.py`, `test_monit_docker.py`, `test_cron.py`,
|
|
|
334
334
|
`test_trigger_delay.py` and `test_restart_limit.py` cover diagnostics, exit-code
|
|
335
335
|
propagation and persistent policies. These tests support this inventory; they
|
|
336
336
|
do not complete every milestone in the 1.0 roadmap.
|
|
337
|
+
|
|
338
|
+
## Optional SQLite authentication (candidate)
|
|
339
|
+
|
|
340
|
+
The opt-in `serve --auth-db PATH --auth-origin HTTPS_ORIGIN` configuration and offline `auth` administration/migration commands are described in the [authentication guide](authentication.md). Available since 2.0.0. Legacy authentication flags cannot be mixed with SQLite mode; omitted `--auth-db` preserves the current mode.
|
|
@@ -375,3 +375,7 @@ encoding. Duplicate content-type headers are rejected with 415.
|
|
|
375
375
|
The [beta notice](beta-decisions.md) records changes to status codes and selection.
|
|
376
376
|
No `/v2`, extra HTTP methods or implicit path aliases are introduced by 1.0.
|
|
377
377
|
Journal schemas remain independent of HTTP route and application versions.
|
|
378
|
+
|
|
379
|
+
## Optional SQLite authentication candidate
|
|
380
|
+
|
|
381
|
+
The opt-in [account/session API](authentication.md) requires `--auth-db` and an exact HTTPS origin. It replaces legacy proxy secrets for that instance. This addition is part of the 2.0.0 contract.
|