jasonmimick / atlas-osb

DEPRECATED: See https://github.com/mongodb/atlas-osb

Home Page:https://github.com/mongodb/atlas-osb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Plan Instance Termination Protection

jasonmimick opened this issue · comments

We should add a bool for EnablePlanTerminationProtection and add this as a field to Plan (or similar)
The field in Plan should support a default value, which can some from an env variable ATLAS_BROKER_ENABLE_PLAN_TERMINATION_PROTECTION default is false.

Then if the termination protection is enabled, then when deleting a plan we should:

  • Stop the cluster (if any)
  • Deactivate user (is this possible)
  • Deactivate apikey (if possible)
  • Tag the project as "deleted" or something.

then log all this, but really delete the service instance and don't fail the /deprovision broker call

@vasilevp - please review this and provide any feedback.

Originally posted by @jasonmimick in #17 (comment)

This is out of scope for current beta.
Closing issue.