fly-apps / fly-laravel

Run your Laravel apps on Fly
40 stars 3 forks source link

Web App: Generate APP_KEY secret #25

Closed KTanAug21 closed 1 year ago

KTanAug21 commented 1 year ago

Origin( Launch-f ): https://flyio.slab.com/posts/discussion-on-artisan-command-1p074z7a

Flyctl secrets:

  1. The command: https://github.com/superfly/flyctl/blob/de50bb2804720b4800fe98b467e90a7bcdaf6ae8/internal/command/secrets/set.go
  2. The graphql query: https://github.com/superfly/flyctl/blob/de50bb2804720b4800fe98b467e90a7bcdaf6ae8/api/resource_secrets.go#L5

As far as I can tell, flyctl doesn't do any encryption - that's done server-side after graphql receives the secret. So we should be able to make a graphql api call for secrets!

Secrets generate a new release on already-deployed apps. This won't matter on a launch command but could in future uses of adding secrets. This may not matter to us at all, just a note.