keyshade icon indicating copy to clipboard operation
keyshade copied to clipboard

Support for snapshots

Open rajdip-b opened this issue 1 year ago • 3 comments

Description

We would like the users to enable the feature of snapshot on every workspace they own or are administrators in. A snapshot will create a restore point of the entire workspace at any point in time. This includes:

  • roles
  • environments
  • secrets
  • projects
  • workspace details
  • events

Snapshots can be created in the following ways:

  • manually
  • creating a cron job that will do it for them

Related functionalities:

  • Delete snapshot
  • Get a list of all snapshots
  • Restore to a particular snapshot (doing so will remove all the snapshots mad after this point)

Solution

  • [ ] We would need to store the snapshots in JSON/YAML format in an S3 compatible storage device.
  • [ ] Create a model in schema.prisma to store the details like name, createdOn, s3FileKey in our database.
  • [ ] Create service and controller for implementing the business logic.

rajdip-b avatar Feb 08 '24 14:02 rajdip-b