Skip to content

feat(hub): the controller cuts a removed VM's NATS user at once - #110

Merged
retr0h merged 1 commit into
mainfrom
feat/nats-revocation
Nov 27, 2026
Merged

retr0h merged 1 commit into
mainfrom
feat/nats-revocation

Conversation

@retr0h

@retr0h retr0h commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Specs: osapi-io/specs#685

hub.yaml now sets controller.join.revocation, with the lab's account.jwt, operator-signing.nk and system.creds. When the lab revokes, rejects or deletes a VM, the controller then cuts the VM's NATS user from the hub's NATS server at once (osapi-io/osapi#1654).

  • When the files appear: the lab's auth comes from before #1523, so it has none of these files yet. The next deploy or bump with a build that has #1654 changes the darwin checksum, so hub_host runs operator update, which writes them with the same keys. resolver.conf changes too, so NATS and the controller restart. No VM joins again.
  • Old builds: a build without #1654 ignores the unknown keys, because config decoding is not strict. A build with #1654 that starts before the files exist logs a warning and runs with revocation off.
  • Security settings: this is the NATS auth of the product. It doesn't touch the firewall, sudo, SSH or the VM password.

🤖 Generated with Claude Code

hub.yaml names the revocation files that operator create and update
write (osapi-io/osapi#1523).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@retr0h
retr0h merged commit fd9f94e into main Nov 27, 2026
7 checks passed
@retr0h
retr0h deleted the feat/nats-revocation branch November 27, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant