You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
functions:secrets:set does not destroy the stale version of the secret #6074
Updating a secret that was previously created and is used in one or more functions claims to "destroy the stale version" of the secret after the re-deploy, but does not do so.
Steps to reproduce
firebase functions:secrets:set MY_KEY
answer Y to Do you want to re-deploy the functions and destroy the stale version of secret MY_KEY
Expected behavior
new MY_KEY version to be added
previous MY_KEY version to be in "Destroyed" state
Actual behavior
new MY_KEY version to be added
previous MY_KEY version still in "Enabled" state
Note: subsequent firebase functions:secrets:prune does identify and destroy the old version
Hi @kitfit-dave, thanks for bringing this to our attention. I was able to replicate this. Let me check what we can do for this issue or bring someone here who can provide more context about this behavior.
Looks like this bug is left over from #4459 where we pulled out the feature to remove secrets on a successful set operation due to a nasty bug that removed almost all secrets IN USE 😱. Working on a bug-free, safer version now.
Activity
aalej commentedon Jul 5, 2023
Hi @kitfit-dave, thanks for bringing this to our attention. I was able to replicate this. Let me check what we can do for this issue or bring someone here who can provide more context about this behavior.
taeold commentedon Jul 5, 2023
Looks like this bug is left over from #4459 where we pulled out the feature to remove secrets on a successful
setoperation due to a nasty bug that removed almost all secrets IN USE 😱. Working on a bug-free, safer version now.Prune old versions when creating new secret version using `secrets:se…
Merging master into next. (#6619)