-
Notifications
You must be signed in to change notification settings - Fork 72
Move IAK and IDevID code to a dedicated module #886
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
Conversation
Move the IAK/IDevID initialization code to the dedicated module 'device_id'. The module implements the builder pattern to set the parameters set through configuration. The goal is to simplify the code in main. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This makes the tests/run.sh script to generate the IAK and IDevID certificates if the tpm2-openssl provider is available. The added test is executed only if both the IAK and IDevID certificates are available. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
72cbe78 to
2f2f4e0
Compare
de7c314 to
d9b28d4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Hopefully, the fix in the CI image will be sufficient for the current test failure: keylime/keylime#1699 |
Instead of invoking docker ourselves, set the github job to run in the CI container directly. This also adds a workaround for: actions/runner#2033 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
9ee8ab1 to
1e90317
Compare
|
The |
When IAK/IDevID are enabled, but the paths to the certificates are explicitly configured as the empty string, continue normally and register without IAK and IDevID certificates. This is to make it possible to use IAK and IDevID without the certificates, in case the user does the public key matching check separately. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Isaac-Matthews
left a comment
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.
Thanks for the changes, looks good.
sergio-correia
left a comment
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.
LGTM
This moves the code from the
main.rsfile to a new dedicated module inkeylimelibrary,keylime::device_id.The new module implements the builder pattern in
DeviceIDBuilderto setup the arguments and then generate an instance of theDeviceIDstructure.This modifies the
tests/run.shscript to generate the IAK and IDevID certificates using the TPM state placed intest-data/tpm-state(which is generated if not present) and place the resulting certificates inkeylime/test-data/iak-idevid-certs