-
Notifications
You must be signed in to change notification settings - Fork 880
stage0: re-evaluate tpm.Extend in critical path #1816
Comments
If I listen to the tpmd port I can block the execution of subsequent
This is unfortunate because it's an unprivileged port:
|
Ick. Maybe for now we should set a connection timeout and fail hard? |
The solution could be to get tpmd to listen on a privileged port. See google/go-tspi#3 |
We still need to deal with unexpected/bad services listening on that port.. On Tue, Jan 19, 2016 at 8:42 PM, Alban Crequy notifications@github.com
|
Let's continue discussing this for 1.0. |
So we could fix this if tpmd listens on a privileged port and we implement some kind of timeout, right? |
I would like to see the timeout for 1.0. |
When we send requests to tpmd, we could potentially block for a long time if an unexpected service is listening on that port. Allow setting a timeout so users of the library can limit this possibility. See rkt/rkt#1816 (comment)
We still need to decide whether to enable TPM on the release binary. |
When we send requests to tpmd, we could potentially block for a long time if an unexpected service is listening on that port. Allow setting a timeout so users of the library can limit this possibility. See rkt/rkt#1816 (comment)
Capturing discussion in #1775 (diff) : I raised the concern that the
tpm.Extend
operation is happening during the critical path of container instantiation.Currently we just try to log in the TPM in every case (irrespective of whether rkt is built with/without TPM support, and whether there happens to be a local TSPI service running), and ignore any error returned by the operation. However, this involves an HTTP request which could fail in arbitrary ways, and potentially time out, etc.
We should deal with this more thoughtfully, especially as we consider adding TPM support to the default build. This will also set us up to deal with the eventual future where we will want to fail hard if the TPM operation does not succeed.
The text was updated successfully, but these errors were encountered: