You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This backup will be needed for generating a new configuration.
35
43
36
-
### 3. Record the Current Tree ID
44
+
### 4. Record the Current Tree ID
37
45
38
46
Store the `treeID` of the currently active CT log shard:
39
47
40
48
```bash
41
49
CURRENT_TREE_ID=$(kubectl get ctlog -o jsonpath='{.items[0].status.treeID}')
42
50
```
43
51
44
-
### 4. Drain the CT Log
52
+
### 5. Drain the CT Log
45
53
46
54
Stop new entries from being added by setting the current log to a `DRAINING` state. This will prevent new entries but allow already submitted entries to be processed:
It's critical to ensure that all pending entries in the log queue are processed before proceeding. Follow the instructions in [Trillian's documentation on freezing a log](https://github.com/google/trillian/blob/master/docs/howto/freeze_a_ct_log.md#monitor-queue--integration) to monitor the queue.
55
63
56
-
### 6. Freeze the CT Log
64
+
### 7. Freeze the CT Log
57
65
58
66
Once the queue has fully drained, freeze the log by setting the log state to `FROZEN`:
You will now modify the old configuration stored in `config.txtpb` to:
85
93
- Add a `not_after_limit` field to the frozen log entry.
@@ -130,7 +138,7 @@ In this configuration:
130
138
- The `frozen log` (identified by `CURRENT_TREE_ID`) has the `prefix` renamed to `trusted-artifact-signer-0`, and it includes a `not_after_limit` timestamp to stop accepting certificates with a `NotAfter` date beyond this point.
131
139
- The `new active log` (identified by `NEW_TREE_ID`) is set up with a new prefix (`trusted-artifact-signer`), a new private key, and includes a `not_after_start` timestamp, marking when the log will start accepting certificates.
132
140
133
-
### 10. Create a new Kubernetes secret
141
+
### 11. Create a new Kubernetes secret
134
142
135
143
Store the new configuration and keys in a Kubernetes secret:
At this point, the log will not accept new entries, but there may be some that have already been submitted but not yet integrated.
@@ -58,7 +64,7 @@ Follow these steps to shard the log:
58
64
**Warning**: Be sure to have completed the queue monitoring process set out in the previous section. If there are still queued leaves that have not been integrated, then setting the tree to frozen will put the log on a path to exceeding its MMD (Maximum Merge Delay).
0 commit comments