Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

build: Add configure flags for controlling tpm logging #1996

Merged
merged 3 commits into from
Feb 1, 2016

Conversation

krnowak
Copy link
Collaborator

@krnowak krnowak commented Jan 19, 2016

It is enabled by default to follow the secure-by-default principle.

CI platforms are unlikely to have the headers installed, so we enable
TPM conditionally.

Fixes #1815.

@alban
Copy link
Member

alban commented Jan 19, 2016

What about Documentation/devel/release.md, should it use --enable-tpm=auto? I guess not, to be sure TPM is enabled in the releases.

Does it have run-time dependencies?


AC_ARG_ENABLE([tpm],
[AS_HELP_STRING([--enable-tpm],
[enable logging to TPM, use 'auto' to enable it if required development files are found, default: 'yes'])],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"the required"

@krnowak
Copy link
Collaborator Author

krnowak commented Jan 19, 2016

What about Documentation/devel/release.md, should it use --enable-tpm=auto? I guess not, to be sure TPM is enabled in the releases.

Right. For now we just continue if we fail to log to tpm, so it still should work for users without TPM.

Does it have run-time dependencies?

I guess that there is some daemon which handles writing stuff into TPM. See https://github.com/coreos/rkt/blob/master/pkg/tpm/tpm.go#L25

@iaguis
Copy link
Member

iaguis commented Jan 19, 2016

I don't know if we should merge this now because of #1816 (comment)

@krnowak krnowak force-pushed the krnowak/enable-tpm-by-default branch from 2776960 to acd80fc Compare January 19, 2016 14:57
[AS_VAR_IF([HAVE_TPM],[no],
[AC_MSG_ERROR([*** TPM is enabled, but could not find required development files])])
TPM_TAGS=tpm],
[AC_MSG_ERROR([*** Invalid value passed to --enable-tpm, should be either 'yes', 'no' or 'auto'])])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can ./configure say whether TPM is enabled or not? (AC_MSG_RESULT at the end)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good point. Will do.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added.

@krnowak krnowak force-pushed the krnowak/enable-tpm-by-default branch from acd80fc to 3c89fc7 Compare January 19, 2016 15:13
@alban
Copy link
Member

alban commented Jan 19, 2016

Should rkt version say whether it was build with tpm? (question related to #1998)


## Security

There is only one security-related flag - to enable TPM for logging.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the dash? maybe a semi-colon would be better?

@alban alban modified the milestones: v1.0.0, v0.16.0 Jan 20, 2016
@alban
Copy link
Member

alban commented Jan 20, 2016

Moving milestone for now, until we know the outcome of google/go-tspi#3

@jonboulle
Copy link
Contributor

I don't care about this getting into 1.0 so I've bumped the milestone. I do, however, want a fix for #1816 to happen.

@jonboulle
Copy link
Contributor

Sorry, I was a little hasty and misunderstood. I think we can land this without being dependent on google/go-tspi#3 (rather, we could have #1816 in place). Moving back to 1.0..

@jonboulle jonboulle modified the milestones: v1.0.0, v1.1.0 Jan 27, 2016
@krnowak krnowak force-pushed the krnowak/enable-tpm-by-default branch from 3c89fc7 to d68d4c3 Compare January 29, 2016 12:30
@krnowak
Copy link
Collaborator Author

krnowak commented Jan 29, 2016

Updated. The unanswered question for now is whether rkt binary in new releases should depend on trousers.

@blixtra
Copy link
Collaborator

blixtra commented Jan 31, 2016

This needs to be updated following the merge of this commit: 5e8ac50

@krnowak krnowak force-pushed the krnowak/enable-tpm-by-default branch from d68d4c3 to b278151 Compare February 1, 2016 12:39
@krnowak
Copy link
Collaborator Author

krnowak commented Feb 1, 2016

Updated. The unanswered question for now is whether rkt binary in new releases should depend on trousers.

@jonboulle
Copy link
Contributor

I think we should build without for now for the release on GitHub. But make it very clear how to enable it, and do so in the CoreOS build.


With this release, `rkt` RPM/dpkg packages should have the following updates:

- Pass `no` to the new configure flag `--enable-tpm`, if `rkt` should not use TPM.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean --enable-tpm=no? Or --disable-tpm? It is not so clear to me what "pass no" mean.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both forms are fine. But I'll be more explicit about it then.

@alban
Copy link
Member

alban commented Feb 1, 2016

Either here or in a following PR:

@krnowak
Copy link
Collaborator Author

krnowak commented Feb 1, 2016

Bah, didn't notice the checkbox about TPM in rkt version.

@alban
Copy link
Member

alban commented Feb 1, 2016

LGTM and Semaphore is green.

It is enabled by default to follow the secure-by-default principle.

CI platforms are unlikely to have the headers installed, so we enable
TPM conditionally.
@krnowak krnowak force-pushed the krnowak/enable-tpm-by-default branch from 76eeff2 to 89a9ce7 Compare February 1, 2016 17:57
@krnowak
Copy link
Collaborator Author

krnowak commented Feb 1, 2016

Updated with printing the features. The features also also printed in configure instead of "TPM enabled" now.

@krnowak krnowak force-pushed the krnowak/enable-tpm-by-default branch from 89a9ce7 to 100105b Compare February 1, 2016 18:12
@alban
Copy link
Member

alban commented Feb 1, 2016

LGTM.

For some reason, the green Semaphore logo has not been updated on this PR but Semaphore has completed with success: https://semaphoreci.com/coreos/rkt/branches/pull-request-1996/builds/8

alban added a commit that referenced this pull request Feb 1, 2016
build: Add configure flags for controlling tpm logging
@alban alban merged commit 360d717 into rkt:master Feb 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants