Skip to content

feat(reload): reload config on SIGHUP in standalone mode#192

Open
drewstone wants to merge 1 commit into
ironsh:mainfrom
drewstone:tangle/0003-standalone-sighup-reload
Open

feat(reload): reload config on SIGHUP in standalone mode#192
drewstone wants to merge 1 commit into
ironsh:mainfrom
drewstone:tangle/0003-standalone-sighup-reload

Conversation

@drewstone

Copy link
Copy Markdown
Contributor

What

Installs a SIGHUP handler in standalone (config-file) run mode that re-reads the config file and swaps the transform pipeline in place — no restart, no dependency on the management API. Ignored (with a warning) in managed mode or when no config file is set.

Why

Our orchestration rotates allowlists and (file-source) secrets by writing the config atomically and signalling the proxy. A standalone SIGHUP reload lets a long-lived proxy pick up the new config without a restart or the management server. Pairs naturally with the file secret source (#181). Carried as a local patch; upstreaming to drop it.

Install a SIGHUP handler in the standalone (config-file) run mode that
re-reads the config file and swaps the transform pipeline in place, with
no restart and no dependency on the management API. Ignored (with a
warning) in managed mode or when no config file is set. Useful for
ops/orchestration that rotate allowlists/secrets via a file write +
signal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant