From 85f058da7a2c3eb27d0bbdb82d9f15735c2382cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Fri, 27 Nov 2026 09:44:11 -0800 Subject: [PATCH] feat(hub): the controller cuts a removed VM's NATS user at once hub.yaml names the revocation files that operator create and update write (osapi-io/osapi#1523). Co-Authored-By: Claude Opus 5.5 --- ansible/roles/hub_host/templates/hub.yaml.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ansible/roles/hub_host/templates/hub.yaml.j2 b/ansible/roles/hub_host/templates/hub.yaml.j2 index eb49eb7..b0df37b 100644 --- a/ansible/roles/hub_host/templates/hub.yaml.j2 +++ b/ansible/roles/hub_host/templates/hub.yaml.j2 @@ -61,6 +61,16 @@ controller: signing_key_file: {{ hub_nats }}/agent-signing.nk join_signing_key_file: {{ hub_nats }}/join-signing.nk account: {{ hub_nats_account }} + # A revocation, a rejection or a delete of a VM cuts its NATS user from + # the server at once: the controller adds it to the revocations of + # osapi's account and sends the account as a user of the system account + # (osapi-io/osapi#1523). operator create, or operator update for auth + # from before, writes these files. Until they exist, the controller logs + # a warning and a removed VM stays on NATS until its JWT expires. + revocation: + account_jwt_file: {{ hub_nats }}/account.jwt + operator_signing_key_file: {{ hub_nats }}/operator-signing.nk + system_creds_file: {{ hub_nats }}/system.creds # The vault of the secrets, with its key in the hub's state, not in # /etc/osapi. The controller makes the key at its first start. secrets: