fix(delivery): validate the recovery broker as read-only

This commit is contained in:
2026-10-19 22:19:15 +08:00
parent 6071994695
commit ecce953fbb
4 changed files with 50 additions and 12 deletions
+2 -1
View File
@@ -184,7 +184,8 @@ def restore(recovery_id: str, backup_id: str, expected: str) -> dict:
restore_policy.compatible(value, payload, data, root)
restore_policy.identity_check(value, selected, root)
for name in ("postgres", "rabbitmq"):
dependencies.storage_observation(name)
# The copy operator writes PostgreSQL only; the fresh broker stays read-only.
dependencies.storage_observation(name, read_only=name == "rabbitmq")
member(
Path(dependencies.STORAGE[name]["path"]),
dependency_install.IDENTITIES[name][0],