-
Notifications
You must be signed in to change notification settings - Fork 16
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
using tpm to store node identity seed #1790
Conversation
02b04d5
to
a92415d
Compare
also change the vm script to auto-start tpm if required
5ed5e31
to
d1b088c
Compare
This to make sure identityd daemon uses the latest tpm binaries. It simply make sure identityd restarts when binaries are installed before continuing with the update
// so there is a key on disk, but tpm already has a stored key | ||
// then we still just return no need for migration to avoid | ||
// overriding the key in tpm | ||
return tpm, nil |
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.
What about old data/signatures in this case?
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.
This is actually to avoid overriding the key inside tpm if someone decided to put another key on disk. The idea is that key migration will happen one time (and one time only) and then delete the key file. If suddenly a key appeared then it means something is fishy and the new key file is just ignored.
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.
Ok, got it. I think we also assume there's no other key at our chosen address, right? (not managed by us).
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.
That's actually hard to grantee. Maybe we should add a validation (and clearing step) if the key is invalid.
Depends on #1787
This will does the following:
This PR uses the tpm2 utils. The branch and build and install tpm is not merged yet.