Stand down when the portal revokes this instance

The connector treats close code 4410 from the hub as final: it stops
dialling, keeps cloud.json so a new claim code replaces it, and reports
revoked in /cloud/status, which Settings → Remote access shows as Removed
at the portal. Enrolling again, or a restart, brings the link back. An
older hub still answers 403 and the link keeps retrying as before.
This commit is contained in:
2026-10-15 10:30:38 +02:00
parent 21cfed7d39
commit dd50d7a16a
5 changed files with 112 additions and 11 deletions
+1
View File
@@ -60,6 +60,7 @@ def read_status(request: Request) -> dict[str, Any]:
"instance_id": config.instance_id if config else None,
"last_error": None,
"connected_since": None,
"revoked": False,
}
status: dict[str, Any] = connector.status()
return status