Hi all!
We’re looking into an issue involving our Fly.io sync at Doppler. We updated our sync to work with machines for the new V2 platform. Currently, this works by updating the secrets via the GraphQL API and then using the Machines API to perform a no-op update on each machine to trigger a restart so they pick up the new secrets. The problem is related to the fact that Fly.io seems to push all the deployment/restart logic to the client-side from what I can see looking at the CLI source.
Is there some higher level API we could use to trigger whatever deployment process the user has selected in a way that won’t cause some downtime (as triggering a restart of all running machines does)? Ideally, this would all be handled automatically on Fly.io’s side when the secrets change, but barring that, some endpoint that could be hit that triggers a machine restart using the customer-selected method would work best. Our syncs aren’t really designed to implement longer lived deployment/rolling-restart logic, so having to worry about this on our end is kind of problematic.
Would love to hear if there’s already some endpoint I’m unaware of or a better way of ensuring machines pick up modified secrets!
Regards,
-Joel