Skip to content

v0.9.0

Choose a tag to compare

@hamicek hamicek released this 23 Aug 15:26
· 79 commits to main since this release
b9873de

Highlights

  • Secured embedded bus — the embedded NATS server can now be exposed on the network with server-side TLS and mandatory nkey authentication ([nats.security]). Absent, the server stays on 127.0.0.1 with no auth, exactly as before, and existing manifests are unaffected.
    • Least-privilege roles. Beyond a single shared identity (nkey_seed), you can give the lord, thralls and operator their own nkey identities (lord_nkey / thrall_nkey / operator_nkey, mutually exclusive with the shared seed). The server enforces a role-scoped, deny-based permission set that makes aether._lord.> node-local by permission on a networked bus: a thrall cannot drive supervision or command siblings, an operator cannot forge control, only the lord has full rights.
    • Credential rotation without downtime. Renew a certificate or key by replacing the file in place and sending the process SIGHUP; the server reloads via NATS ReloadOptions. A TLS rotation keeps live connections up; an nkey rotation lets the new key in and the old one out.

Notes

  • Opt-in and backwards-compatible: without [nats.security], the embedded bus is the loopback, no-auth default; no wire (envelope) change; the SDKs are unchanged (they already read the injected credential paths).
  • Two honest limits (documented): the role permissions are deny-based (allow all, subtract the dangerous subjects, so JetStream and KV keep working — not a strict allow-list), and a single shared thrall identity does not isolate one thrall from another (the roles isolate the lord / thrall / operator boundaries).
  • Rotating the lord's own key is better done with a restart; structural changes (a different listen, the role set) need a restart. Mutual TLS remains an opt-in follow-up (see ROADMAP).
  • Reference manifest: examples/counter/aether-secure-embedded.toml.

Full changelog: v0.8.0...v0.9.0