* feat: additional server setup for admin token recovery - new server to only serve admin token regeneration without an admin token has been added - minor refactors to allow reuse of some of the utilities like trace layer for metrics moved to their own functions to allow them to be instantiated for both servers - tests added to check if both the new server works right for regenerating token and also ensure none of the other functionalities are available on the admin token recovery server closes: https://github.com/influxdata/influxdb/issues/26330 * refactor: tidy ups + extra logging * refactor: address PR feedback - recovery server now only starts when `--admin-token-recovery-http-bind` is passed in - as soon as regeneration is done, the recovery server shuts itself down - the select! macro logic has been changed such that shutting down recovery server does not shutdown the main server * refactor: host url updates when regenerating token - when `--regenerate` is passed in, `--host` still defaults to the main server. To get to the recovery server, `--host` with the recovery server address should be passed in |
||
---|---|---|
.. | ||
cli | ||
server | ||
lib.rs |