FiloSottile / FiloSottile/sunlight

Migration tool

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
307
Forks
29
PR merge metrics
No merged PRs in 30d

Description

[Directly manipulating the checkpoint DB](https://groups.google.com/a/chromium.org/g/ct-policy/c/Zw80ZBFdQgQ) is scary, but migrating logs is a legitimate use case. What if operators could do something like this instead:

Export the checkpoint for LOG_ID to file, and mark the log as frozen in checkpoint.db to prevent further updates on this instance:

```
$ sunlight-checkpoint export checkpoint.db LOG_ID file
```

Import the checkpoint from file to checkpoint.db, failing if checkpoint.db already contains a different checkpoint for the log:

```
$ sunlight-checkpoint import file checkpoint.db
```

Contributor guide

Open the contributing guide

Research direction

Start with the sunlight-checkpoint entry point and checkpoint.db handling; the issue gives the proposed export and import command forms. Done means export writes the specified LOG_ID to a file and freezes it in checkpoint.db, while import rejects a different existing checkpoint for that log.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.