You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix health_monitor NATS Authorization Violation on fresh deployments
On a fresh bosh create-env, pre-start writes a fooBar token placeholder to
auth.json. The old startup code only sent a SIGHUP to reload this placeholder,
switching NATS to token-based auth and causing every health_monitor connection
attempt to fail with "Authorization Violation" until the first periodic sync ran.
Add UsersSync.Bootstrap() which reads the director-subject and hm-subject files
written by pre-start and immediately writes a proper user-based NATS config,
then sends SIGHUP — all without querying the director. Runner.Run() now calls
bootstrapNATSConfig() at startup instead of a bare ReloadNATSServerConfig,
ensuring health_monitor can authenticate against NATS before the director
finishes initializing. Bootstrap failures are non-fatal and logged; the periodic
sync loop continues so the full user list is populated once the director is up.
0 commit comments