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

Key Package Rotation #1069

Closed
wants to merge 1 commit into from

Conversation

neekolas
Copy link
Contributor

@neekolas neekolas commented Sep 17, 2024

tl;dr

  • Rotates key packages after syncing welcomes
  • This deletes all key packages older than the previous key package

More info

I wrap the rotation in a transaction so that we can ensure key packages only get deleted after a successful upload, while also ensuring that key packages cannot get uploaded without a corresponding key_package_history record being inserted. This has a performance impact, but is optimizing for correctness.

Caveats

This will only work for new key packages. Existing key packages will be grandfathered in and never be deleted.

Copy link

graphite-app bot commented Sep 17, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

neekolas commented Sep 17, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @neekolas and the rest of your teammates on Graphite Graphite

@neekolas neekolas force-pushed the 09-16-actually_perform_rotation branch 5 times, most recently from 7ddcb5f to 8d772c7 Compare September 17, 2024 16:24
@neekolas neekolas force-pushed the 09-16-actually_perform_rotation branch from 8d772c7 to b201e80 Compare September 17, 2024 16:35
@neekolas neekolas requested a review from a team September 17, 2024 16:42
@neekolas neekolas changed the title Actually perform rotation Key Package Rotation Sep 17, 2024
@neekolas neekolas marked this pull request as ready for review September 17, 2024 16:43
@neekolas neekolas requested a review from a team as a code owner September 17, 2024 16:43
Copy link

graphite-app bot commented Sep 20, 2024

Merge activity

  • Sep 20, 7:38 AM PDT: neekolas added this pull request to the Graphite merge queue.
  • Sep 20, 7:39 AM PDT: The Graphite merge queue couldn't merge this PR because it had conflicts with the trunk branch.

@neekolas neekolas changed the base branch from 09-16-create_database_tables to graphite-base/1069 September 20, 2024 14:39
@neekolas neekolas deleted the branch graphite-base/1069 September 20, 2024 14:39
@neekolas neekolas closed this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants