proofcarryingdata / zupass

Zuzalu Passport
259 stars 64 forks source link

prevent paused pipelines from issuing any command #1786

Closed ichub closed 1 month ago

ichub commented 1 month ago

note: this is a change mostly to simplify logic that already works properly.

my understanding of paused pipelines is that they are by definition not loaded, meaning that the issue capability does not issue the DeleteAllInFolder command.

https://github.com/proofcarryingdata/zupass/blob/ivan/pause-pipelines/apps/passport-server/src/services/generic-issuance/pipelines/LemonadePipeline.ts#L825-L831

To add an extra layer of safety to this behavior, I've updated the pipeline issue functions to always return an empty array of actions for paused pipelines, so that:

I think this change is the final thing blocking me from being 100% comfortable with pauseing the ETH Berlin pipeline in production.