My understanding is that flyctl secrets set will work before an app has been deployed for the first time, but when I try to do the same with import, the command errors:
Error Could not find App "***-pr-428"
My use case is I’m trying to spin up a brand new “preview app” for each PR in our repo, seeding its secrets with values which are stored in Github Actions. Because I can’t seed the secrets, the launch deployment fails, because the app starting up and becoming healthy requires some of the secret values to be set.
I could ignore the unhealthy deployment and set the secrets afterward, but then a legitimate deployment failure wouldn’t be distinguishable from a “successful” failure in CI, so things would be harder to debug and check.
Though I never implemented it, back then I thought an internal-only Fly app (in the same org) to vend out secrets to other apps over 6pn should work just as good. As if, that Fly app was the org’s mono-secret-vault.