How can I unstage secret changes?

Hello,

I accidentally added secrets to a fly instance and ended up staging updates to secrets that I did not want to update. I did not deploy the update though, how can I remove those pending secrets?

there is no way to “unstage” secret changes; you can delete the incorrect secret, or set it back to the previous value.

What happens if I leave it as the pending? I want it to be back to the previous value but I don’t remeber what that value was, if I delete the secret will it delete it from the environment?

yes, it would delete the secret on next deploy. you can generally fly ssh console -C env to read the current value of secrets.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.