-
Notifications
You must be signed in to change notification settings - Fork 286
Hash history comments and sign them with the author's personal key. #6004
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
base: trunk
Are you sure you want to change the base?
Conversation
It seems to work now.
|
Some tests with 'continue-on-error: true' have failed:
Created by continue-on-error-comment |
|
We need a passphrase option here, right? Or what's the standard |
Hrmm, this is a deep rabbit hole to go down that adds a ton of work;
I was planning on having ucm manage these complete for the user as basic EdDSA keys, rather than having the user configure their own keys; thus it's basically treated the same as your Share token, but with the added ability of cryptographic signing and a public key. Do you think passphrases or the other mentioned features are table-stakes? |
Overview
Adds a migration which hashes and signs all of a codebase's history comments, as a step towards syncing them with Share.
Implementation approach and notes
Adds a Migration which:
credentials.jsonfile.TODO:
Interesting/controversial decisions
It's hard to know whether personal keys are overkill or not, while it would likely be possible to get away with just Share auth in the short term, I don't think it's really sound in the presence of multiple codeservers; I opted to implement personal keys because I believe I'll get mileage out of them in the future, e.g. they can be used for things like service-account auth in CI and such.
Test coverage
I tested the migration by creating some comments on a trunk build and running the migration on it, then creating some new comments.
Loose ends
Next up is to implement the comment sync APIs.