-
-
Notifications
You must be signed in to change notification settings - Fork 47
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 new TS3 and TS5 CA pubkeys, introduce timestamp #81
Conversation
Oh wait, I didn't update the timestamp. It ain't here. That's an oversight I guess and it should be part of the |
i didn't realize that there is supposed to be a timestamp. yeah, sure, please add it. |
We should update Suite manually until trezor/trezor-suite#12982 is done. |
@komret do we want the timestamp field in the debug keys as well? Meaning |
Btw now we will introduce timestamp per each model. Currently we have it one timestamp for all if I am not mistaken. I think it is better like this though? @komret |
bb3ecd1
to
5fd22fc
Compare
For simplicity I have force-pushed and
|
The This means that Suite doesn't care about when the keys were added to the data repo nor does it have to differentiate between devices. You're saying that trezorctl doesn't need it either, so unless there is some other reason to have it here, we can remove it from this repo and generate it automatically in Suite when the data is synced. cc @karliatto |
When this file becomes signed, and Suite can download it on-line, you could in theory still run into a situation where your device is newer than the copy on data.trezor.io. Another use of the timestamp is downgrade attack prevention. Let's say we blacklist a batch and remove the bad key from the list. An attacker could substitute an older version of the (correctly signed) file, which did not blacklist the key yet. By requiring the timestamp to be no more than, say, one month old, this makes the attack more difficult. i'd say generating the date in Suite is the right thing to do, but keeping it also here seems vaguely useful |
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.
Yes, in case Suite ever downloads this data directly from the data repo, the timestamps make sense. However, now when we copy the keys to Suite either manually or automatically, we don't care about the timestamp and can just use one value for all devices corresponding to the day when we sync it.
Approving.
Adding here instead of trezor-suite as of #79.
@komret so is it enough to add here and let's just wait for trezor/trezor-suite#12982? I do not think we need to rush. cc @MiroslavProchazka