-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add expiration to master keys & encryption subkey #64
Add expiration to master keys & encryption subkey #64
Conversation
I suppose there could be a slight difference in the creation and expiration time of the master key and encryption subkey now, but it should not matter in practice. |
Hey @trishankatdatadog, thanks for the PR! Typically, key expiry is set on the primary key only. Of course subkeys can expire separately, but most typically, the subkeys expire when the primary key expires. (This makes it easier to extend the lifetime of the entire key, since you just have to re-sign one signature.) |
@twiss, a few comments:
|
ping 🙂 |
Hey @trishankatdatadog, sorry for the delay, and thanks for the ping :)
|
@trishankatdatadog Just for clarity, and as a gentle ping, I'm happy to merge this without the failing test 😊 |
Oh, hey, sorry, lemme get around to this, was busy with other projects, thanks! |
Np, thanks! 🙏 |
Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
This reverts commit 444ef1f029871f07d29455cd40e03b3bc041a19a. Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
04012e6
to
48da1a1
Compare
@twiss Reverted the bad test, let me get around to returning the |
@trishankatdatadog Yeah, of course, thanks! 🙏 |
Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
Working on testing finding the newest instead of the first unexpired signing subkey... |
Signed-off-by: Trishank Karthik Kuppusamy <trishank.kuppusamy@datadoghq.com>
@twiss Done, please take a careful look. In particular, I found that I had to add this line to prevent keys from being considered immediately expired, but the corresponding line seems to have no effect on whether signatures are considered immediately expired (they are not). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trishankatdatadog Thanks! Yeah, makes sense. That's probably because SigExpired
is not called as often, but yes this change seems correct. I've left two very minor nitpicks, but other than that looks good to me 👍
Done, please take a final look 👀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks a lot! 👍
Signed-off-by: Trishank Karthik Kuppusamy trishank.kuppusamy@datadoghq.com