DopplerHQ / cli

The official CLI for interacting with your Doppler secrets and configuration.
https://docs.doppler.com
Apache License 2.0
214 stars 43 forks source link

Add support for restarting process when secrets change #408

Closed Piccirello closed 12 months ago

Piccirello commented 1 year ago

This PR adds a --watch flag to the run command that will automatically restart the user's process when secrets change. It monitors for changed secrets using a long-lived request. When secrets change, the CLI fetches the latest secrets, sends a SIGTERM to the process, waits up to 10 seconds, sends a SIGKILL if necessary, and then starts the process again.

This feature is currently in beta and is not yet broadly available in customer workplaces. Given this, the feature will not be mentioned in the CLI's release notes.

Closes ENG-6390

Piccirello commented 1 year ago

All feedback addressed.