Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add script to copy stores and uploads to a new space #392

Closed
wants to merge 7 commits into from

Commits on Jun 14, 2024

  1. feat: add script to copy stores and uploads to a new space

    There are many ways a user might lose control of a space. Because we can't fake the crypto our system is built upon, the simplest solution to this is to have them create a new space that they do control and then ask us to copy the contents of the old space into the new.
    
    Of course this doesn't require copying bits around - we just need to update some indices in DynamoDB. This script finds all entries in the store and upload tables for a space and creates new entries for each of those items in the new space. This should result in the new space being functionally identical to the old
    
    This is a somewhat sensitive operation - we should only do this when we trust the customer a great deal - the contents of a particular space may be sensitive and this is a potential attack vector to discover them.
    travis committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    70f2987 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. fix: integrate copy script into CLI

    also clean up and test
    travis committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    0485c06 View commit details
    Browse the repository at this point in the history
  2. fix: lint

    travis committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    d754b05 View commit details
    Browse the repository at this point in the history
  3. fix: lint a little more

    travis committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    ee869e7 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. feat: add a tool to rebuild space metrics

    combined with the `copy-stores-and-uploads` command this enables space forks
    travis committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    9e153e8 View commit details
    Browse the repository at this point in the history
  2. fix: lint

    travis committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    7dd250f View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. feat: add an option to create a space snapshot

    we already record the "snapshot date" and the "recorded date" separately, so this works even better than I thought it would!
    travis committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    def08e3 View commit details
    Browse the repository at this point in the history