flagsmith icon indicating copy to clipboard operation
flagsmith copied to clipboard

Cancel the API Key when an environment is deleted

Open gnumoreno opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe.

It is more of an oversight. Whenever an Environment is deleted within a project the API still returns calls if the key is provided.

Describe the solution you'd like

We should delete the API key along with the environment.

Describe alternatives you've considered

Maybe we want to wait for a period before deleting the API key or do a soft delete of sorts in the case the Env needs to be restored.

Additional context

NA

gnumoreno avatar Dec 07 '23 17:12 gnumoreno

Related: https://github.com/Flagsmith/flagsmith/issues/1875

gagantrivedi avatar Dec 08 '23 02:12 gagantrivedi

Related https://github.com/Flagsmith/flagsmith/issues/3060

gnumoreno avatar Dec 08 '23 17:12 gnumoreno

#3060 is caused by soft delete; unrelated to this.

gagantrivedi avatar Dec 26 '23 07:12 gagantrivedi