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.
This PR adds a
--watch
flag to therun
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