OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
115 stars 31 forks source link

Don't require ws-worker keys to run migrations in prod #2211

Open taylordowns2000 opened 1 week ago

taylordowns2000 commented 1 week ago

When running OpenFn in production mode on kubernetes, some folks may choose to automatically run migrations using an initContainer:

initContainers:
        - name: migrate-demo
          image: *demoImage
          command: ["/app/bin/lightning", "eval", "Lightning.Release.migrate"]

You shouldn't have to pass in a whole bunch of worker secrets and keys to this container only to run the migrations.

It would be great to be able to run migrations with the bare minimum in terms of secrets.