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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Minor Changes
#290769b445 Thanks @tufantunc! - config.toml can be reloaded without a restart (#288). A new tool, reload-config, reports the config file's status (path, source, load time and the sha256 of its bytes, never its contents) with action: "status", and re-reads and applies the file with action: "reload". Sending the process SIGHUP does the same reload, except on Windows. A reload runs every check startup runs, including the permission and ACL check, and applies the file only if all of them pass; a refused reload changes nothing. It also refuses a changed or removed defaults.transferRoot (adding one is allowed) and a server started from --host/--user flags; both need a restart. Command-line flags are never reloaded. Policy changes apply to open connections from their next command; a removed profile or a changed connection field closes that connection and its sessions, and anything running through it as a bastion. Every applied reload retires the approval grants made before it; an approval answered after a reload is re-checked against the new rules, and so is a decision (an allow, or a grant reuse) that a reload landed in the middle of. A connection still being opened when a reload lands fails only if the reload closes its profile; any other is kept, with the new profile. Reloads run one at a time, and those asked for while one is waiting to start join it. Each reload is audited as one config:reload record: applied, refused, or (rule config-reload-partial) failed after the swap began. reload-config also answers on a server started without a config, so writing the file and reloading configures it. Behaviour change: outside Windows, SIGHUP no longer stops the server; it triggers a reload. A stdio server still exits when its client closes stdin. An HTTP server started from a terminal is no longer stopped when that terminal closes, since its hangup is now handled; stop it with SIGTERM or SIGINT, or run it under a supervisor. Behaviour change: a config in which two profiles share a name is now refused at startup, and by a reload; before, the server started and used the first of the two.