fadenstack 0.5.1__tar.gz → 0.6.0rc3__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.
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/PKG-INFO +1 -1
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/pyproject.toml +1 -1
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/__init__.py +1 -1
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/restore.py +32 -7
- fadenstack-0.6.0rc3/tests/test_restore_rabbitmq.py +96 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/.gitignore +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/LICENSE +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/NOTICE +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/README.md +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/hatch_build.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/__main__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/pii-catalog.json +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/.gitignore +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/LICENSE +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/NOTICE +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/README.md +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/agent-binaries/.gitignore +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/alloy/config.alloy +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/clickhouse/config.d/system-logs.xml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/docker-compose.gpu.yaml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/docker-compose.pii-gpu.yaml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/docker-compose.yaml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/grafana/dashboards/templates/vllm-runtime.json +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/grafana/provisioning/dashboards/dashboard.yml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/grafana/provisioning/dashboards/json/faden-overview.json +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/grafana/provisioning/datasources/ds.yaml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/grafana/provisioning/datasources/prometheus.yaml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/initdb/01-init.sql +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/loki/local-config.yaml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/locations.conf +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/maintenance.html +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/nginx-tls.conf +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/nginx.conf +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/rate-limits.conf +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/security-headers.conf +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/select-config.sh +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/prometheus/prometheus.yml +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/rabbitmq/definitions.json.example +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/tls/README.md +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/cli.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/__init__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/admin.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/audit.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/backup.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/chats.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/config.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/deploy.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/__init__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_doctor.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_down.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_group.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_init.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_pull.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_status.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/dev/dev_up.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/doctor.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/down.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/logs_cmd.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/maintenance.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/module.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/observe.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/ports.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/rebuild.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/runtime_images.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/secrets.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/status.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/tls.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/tune.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/up.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/upgrade.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/commands/version.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/__init__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/api_client.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/backend_tool.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/backup.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/backup_crypto.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/backup_key.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/bootstrap.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/bundle.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/chat_retention.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/clickhouse.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/compose.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/console.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/detect.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/dev_modules.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/docker_env.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/edge.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/env_gen.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/git.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/install.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/installation.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/local_node.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/maintenance.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/pii_artifacts.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/pii_catalog.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/pii_hardware.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/pii_runtime.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/private_files.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/provenance_keys.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/registry.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/release_feed.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/release_notice.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/rmq.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/runtime_images.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/schedule.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/sealing.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/secret_files.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/secret_rotation.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/settings.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/sysinfo.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/tls.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/tune.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/update_check.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/core/workspace.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/templates/env.j2 +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/tui/__init__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/tui/widgets/__init__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/tui/wizard/__init__.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/conftest.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_backup_encryption.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_backup_migration_heads.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_backup_retention.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_backup_schedule.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_backup_tls.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_backup_volumes.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_binary_notices.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_bootstrap_token.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_chat_retention.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_cli_output_encoding.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_data_dir_move.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_data_volumes_logs.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_deploy_summary.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_dev_env_loopback.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_dev_modules.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_dev_up_port_holders.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_dev_up_reclaim.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_dev_up_service_hosts.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_dev_up_terminal.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_docker_env.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_doctor_ports.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_edge.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_generated_env_reaches_compose.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_inactive_modules.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_install_extensions.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_installation.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_internal_token_env.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_local_node.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_main.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_maintenance.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_module_env.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_module_secrets.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_pii_artifacts.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_pii_catalog.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_pii_hardware.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_pii_runtime.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_pii_upgrade.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_postgres_logins.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_private_files.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_provenance_keys.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_provenance_module.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_provenance_on_by_default.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_rebuild.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_redis_limits.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_registry_gateway_env.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_release_bundle.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_release_feed.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_release_notice.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_release_versions.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_required_env.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_restore_maintenance.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_runtime_images.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_secret_files.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_secret_rotation.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_service_logins.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_shared_compose_ports.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_tls.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_tls_renew.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_trusted_keys.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_tune.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_tune_memory.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_update_check.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_update_feed.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_upgrade_housekeeping.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_upgrade_rabbitmq.py +0 -0
- {fadenstack-0.5.1 → fadenstack-0.6.0rc3}/tests/test_workspace_detection.py +0 -0
|
@@ -32,7 +32,7 @@ from faden_cli.core.compose import (
|
|
|
32
32
|
)
|
|
33
33
|
from faden_cli.core.console import console, error, info, success, warning
|
|
34
34
|
from faden_cli.core.settings import FadenConfig, load_config
|
|
35
|
-
from faden_cli.commands.deploy import _sync_postgres_password
|
|
35
|
+
from faden_cli.commands.deploy import _regenerate_rmq_definitions, _sync_postgres_password
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
@click.command("restore")
|
|
@@ -154,10 +154,10 @@ def _restore_cmd(
|
|
|
154
154
|
# however this ends. nginx holds none of the volumes a restore writes (it mounts the install's nginx/
|
|
155
155
|
# and tls/ directories, read-only), so it can run through it.
|
|
156
156
|
with maintenance.during(Path(str(ctx.project_dir)), reason="restore"):
|
|
157
|
-
result = _restore(ctx, cfg, source, db_only=db_only, skip_env=skip_env)
|
|
157
|
+
result, started = _restore(ctx, cfg, source, db_only=db_only, skip_env=skip_env)
|
|
158
158
|
|
|
159
159
|
console.print()
|
|
160
|
-
|
|
160
|
+
_report_start(started)
|
|
161
161
|
from faden_cli.core.backend_tool import record_event # noqa: PLC0415
|
|
162
162
|
|
|
163
163
|
record_event(
|
|
@@ -175,6 +175,20 @@ def _restore_cmd(
|
|
|
175
175
|
console.print(f" Volumes: {', '.join(result.volumes_restored)}")
|
|
176
176
|
if result.tls_restored:
|
|
177
177
|
console.print(f" Certificate material: {len(result.tls_restored)} file(s); the machines still trust it")
|
|
178
|
+
if started != 0:
|
|
179
|
+
sys.exit(1)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def _report_start(started: int) -> None:
|
|
183
|
+
"""Whether everything came back: *started* is the exit code of starting it all again.
|
|
184
|
+
|
|
185
|
+
The data is back either way; `faden status` names what did not start. It used to say "Restore complete."
|
|
186
|
+
"""
|
|
187
|
+
if started == 0:
|
|
188
|
+
success("Restore complete.")
|
|
189
|
+
return
|
|
190
|
+
error(f"The backup is restored, but not every service started (docker compose up exited with {started}).")
|
|
191
|
+
error(" See which with `faden status`, and why with `faden logs <service>`.")
|
|
178
192
|
|
|
179
193
|
|
|
180
194
|
#: The front door, which keeps running (and serving the maintenance page) while everything else is restored.
|
|
@@ -183,8 +197,11 @@ _FRONT = "nginx"
|
|
|
183
197
|
|
|
184
198
|
def _restore(
|
|
185
199
|
ctx: ComposeContext, cfg: FadenConfig, backup_path: Path, *, db_only: bool, skip_env: bool
|
|
186
|
-
) -> RestoreResult:
|
|
187
|
-
"""Stop everything but nginx, restore, and start everything again; exits when the restore fails.
|
|
200
|
+
) -> tuple[RestoreResult, int]:
|
|
201
|
+
"""Stop everything but nginx, restore, and start everything again; exits when the restore fails.
|
|
202
|
+
|
|
203
|
+
Returns what was restored and the exit code of starting everything again (0: all started).
|
|
204
|
+
"""
|
|
188
205
|
console.print("\n[bold cyan]Stopping application services…[/bold cyan]")
|
|
189
206
|
names = service_names(ctx)
|
|
190
207
|
# Stopped, not taken down: nginx is left alone, and the containers keep their volumes and networks.
|
|
@@ -214,6 +231,14 @@ def _restore(
|
|
|
214
231
|
warning(note)
|
|
215
232
|
info("Syncing Postgres password with restored .env…")
|
|
216
233
|
_sync_postgres_password(ctx, env_path)
|
|
234
|
+
# RabbitMQ makes its users from definitions.json on every start; the services log in with the
|
|
235
|
+
# passwords in .env. The file still held those of the .env the restore replaced: RabbitMQ refused
|
|
236
|
+
# the backend and the gateway (ACCESS_REFUSED), and the install did not come back. `faden upgrade`
|
|
237
|
+
# writes it the same way.
|
|
238
|
+
from faden_cli.core.env_gen import read_env_file # noqa: PLC0415
|
|
239
|
+
|
|
240
|
+
_regenerate_rmq_definitions(Path(str(ctx.project_dir)), read_env_file(env_path), cfg.profiles)
|
|
241
|
+
success("RabbitMQ users written from the restored .env.")
|
|
217
242
|
# The provenance signer of a .env from before the module, or issued by an authority the restore replaced.
|
|
218
243
|
if (result.env_restored or result.tls_restored) and ctx.env_file and ctx.project_dir:
|
|
219
244
|
from faden_cli.core.provenance_keys import ensure_step as provenance_keys_step # noqa: PLC0415
|
|
@@ -222,9 +247,9 @@ def _restore(
|
|
|
222
247
|
|
|
223
248
|
# ── Restart all services ──────────────────────────────────
|
|
224
249
|
console.print("\n[bold cyan]Restarting all services…[/bold cyan]")
|
|
225
|
-
compose_up(ctx, detach=True, wait=True, timeout=120)
|
|
250
|
+
started = compose_up(ctx, detach=True, wait=True, timeout=120)
|
|
226
251
|
# nginx read the certificate and picked plain HTTP or HTTPS when it started; a restored one is
|
|
227
252
|
# only served after it starts again.
|
|
228
253
|
if result.tls_restored and _FRONT in names:
|
|
229
254
|
compose_restart(ctx, services=[_FRONT])
|
|
230
|
-
return result
|
|
255
|
+
return result, started
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"""``faden restore`` writes RabbitMQ's users from the .env it restores, and says when services did not start.
|
|
2
|
+
|
|
3
|
+
RabbitMQ makes its users from ``rabbitmq/definitions.json`` on every start, and the services log in with the
|
|
4
|
+
passwords in ``.env``. A restore onto a server rebuilt with ``faden deploy`` (Help: Backups, Rebuild a lost
|
|
5
|
+
server) put back the old ``.env`` but kept the file the deploy wrote: RabbitMQ refused the backend and the
|
|
6
|
+
gateway (ACCESS_REFUSED), they stayed unhealthy, and the restore still ended with "Restore complete."
|
|
7
|
+
(release test bed, 1 November 2026). How the file is written from .env: test_upgrade_rabbitmq.py.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from types import SimpleNamespace
|
|
14
|
+
from typing import Any
|
|
15
|
+
|
|
16
|
+
import pytest
|
|
17
|
+
from click.testing import CliRunner
|
|
18
|
+
|
|
19
|
+
from faden_cli.commands import restore
|
|
20
|
+
from faden_cli.core import backend_tool, env_gen, provenance_keys
|
|
21
|
+
from faden_cli.core.backup import RestoreResult
|
|
22
|
+
|
|
23
|
+
RESTORED_ENV = (
|
|
24
|
+
"RABBITMQ_ADMIN_USER=admin\nRABBITMQ_ADMIN_PASS=restored-admin\n"
|
|
25
|
+
"RABBITMQ_BACKEND_PASS=restored-backend\nRABBITMQ_API_PASS=restored-api\n"
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@pytest.fixture
|
|
30
|
+
def install(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> SimpleNamespace:
|
|
31
|
+
"""An install the restore puts RESTORED_ENV back into; every step it takes, in order, in ``steps``."""
|
|
32
|
+
root = tmp_path / "install"
|
|
33
|
+
root.mkdir()
|
|
34
|
+
(tmp_path / "backup").mkdir()
|
|
35
|
+
ctx = SimpleNamespace(project_dir=root, env_file=root / ".env")
|
|
36
|
+
state = SimpleNamespace(root=root, started=0, steps=[])
|
|
37
|
+
|
|
38
|
+
def fake_restore(_ctx: object, **_: object) -> RestoreResult:
|
|
39
|
+
(root / ".env").write_text(RESTORED_ENV, encoding="utf-8")
|
|
40
|
+
return RestoreResult(databases_restored=["faden_backend"], env_restored=True)
|
|
41
|
+
|
|
42
|
+
def up(_ctx: object, *, services: list[str] | None = None, **_: object) -> int:
|
|
43
|
+
"""Starting postgres works; starting everything returns what the test sets."""
|
|
44
|
+
state.steps.append(("up", services))
|
|
45
|
+
return 0 if services else state.started
|
|
46
|
+
|
|
47
|
+
def rabbitmq_users(shared_dir: Path, env_vars: dict[str, str], profiles: list[str]) -> None:
|
|
48
|
+
state.steps.append(("rabbitmq users", shared_dir, env_vars))
|
|
49
|
+
|
|
50
|
+
monkeypatch.setattr(restore, "load_config", lambda: SimpleNamespace(profiles=[]))
|
|
51
|
+
monkeypatch.setattr(restore, "build_context_from_config", lambda cfg: ctx)
|
|
52
|
+
monkeypatch.setattr(restore, "read_manifest", lambda path: {"databases": {}, "volumes": []})
|
|
53
|
+
monkeypatch.setattr(restore, "verify_backup", lambda path, manifest: [])
|
|
54
|
+
monkeypatch.setattr(restore, "service_names", lambda ctx: ["nginx", "postgres", "rabbitmq", "backend"])
|
|
55
|
+
monkeypatch.setattr(restore, "compose_stop", lambda *a, **k: 0)
|
|
56
|
+
monkeypatch.setattr(restore, "compose_restart", lambda *a, **k: 0)
|
|
57
|
+
monkeypatch.setattr(restore, "compose_up", up)
|
|
58
|
+
monkeypatch.setattr(restore, "restore_backup", fake_restore)
|
|
59
|
+
monkeypatch.setattr(restore, "_regenerate_rmq_definitions", rabbitmq_users, raising=False)
|
|
60
|
+
monkeypatch.setattr(restore, "_sync_postgres_password", lambda *a, **k: None)
|
|
61
|
+
monkeypatch.setattr(env_gen, "fill_required_env", lambda *a, **k: [])
|
|
62
|
+
monkeypatch.setattr(provenance_keys, "ensure_step", lambda *a, **k: None)
|
|
63
|
+
monkeypatch.setattr(backend_tool, "record_event", lambda *a, **k: True)
|
|
64
|
+
return state
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _run(tmp_path: Path) -> Any:
|
|
68
|
+
return CliRunner().invoke(restore.restore_cmd, [str(tmp_path / "backup"), "-y"])
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def test_rabbitmqs_users_are_written_from_the_restored_env_before_the_start(
|
|
72
|
+
tmp_path: Path, install: SimpleNamespace
|
|
73
|
+
) -> None:
|
|
74
|
+
result = _run(tmp_path)
|
|
75
|
+
|
|
76
|
+
assert result.exit_code == 0, result.output
|
|
77
|
+
written = [step for step in install.steps if step[0] == "rabbitmq users"]
|
|
78
|
+
assert len(written) == 1
|
|
79
|
+
_, shared_dir, env_vars = written[0]
|
|
80
|
+
assert shared_dir == install.root
|
|
81
|
+
assert env_vars["RABBITMQ_API_PASS"] == "restored-api"
|
|
82
|
+
assert env_vars["RABBITMQ_BACKEND_PASS"] == "restored-backend"
|
|
83
|
+
assert env_vars["RABBITMQ_ADMIN_PASS"] == "restored-admin"
|
|
84
|
+
assert install.steps.index(written[0]) < install.steps.index(("up", None)), "before it all starts again"
|
|
85
|
+
assert "Restore complete." in result.output
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def test_a_restore_whose_services_do_not_start_says_so(tmp_path: Path, install: SimpleNamespace) -> None:
|
|
89
|
+
install.started = 1
|
|
90
|
+
|
|
91
|
+
result = _run(tmp_path)
|
|
92
|
+
|
|
93
|
+
assert result.exit_code == 1
|
|
94
|
+
assert "Restore complete." not in result.output
|
|
95
|
+
assert "not every service started" in result.output
|
|
96
|
+
assert "faden status" in result.output
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/agent-binaries/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/docker-compose.gpu.yaml
RENAMED
|
File without changes
|
{fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/docker-compose.pii-gpu.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/nginx/security-headers.conf
RENAMED
|
File without changes
|
|
File without changes
|
{fadenstack-0.5.1 → fadenstack-0.6.0rc3}/src/faden_cli/bundle/shared/prometheus/prometheus.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|