-
Notifications
You must be signed in to change notification settings - Fork 19
Enable attestation in f/agent-registration-with-non-default-tpm-algor… #908
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
…ithms Signed-off-by: Sergio Correia <scorreia@redhat.com>
Reviewer's GuideThis PR enables optional attestation in the non-default TPM algorithms registration test by introducing a skip flag, and adds a new support-detection script to dynamically survey and log TPM EK algorithm availability before running functional tests. Flow diagram for TPM support detection script executionflowchart TD
A["Start TPM support detection script"] --> B["Setup: Import test helpers and start TPM emulator if present"]
B --> C["Create temporary directory"]
C --> D["Survey ECC curve support"]
D --> E["Survey RSA key size support"]
E --> F["Test ECC curves for EK creation"]
F --> G["Test RSA key sizes for EK creation"]
G --> H["Log supported algorithms"]
H --> I["Submit logs"]
I --> J["Cleanup: Stop TPM emulator, remove temp directory"]
J --> K["End"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
@@ -0,0 +1,79 @@ | |||
#!/bin/bash | |||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k | |||
. /usr/share/beakerlib/beakerlib.sh || exit 1 |
Check warning
Code scanning / shellcheck
SC1091 Warning
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.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `functional/agent-registration-with-non-default-tpm-algorithms/tpm_support_detection.sh:76` </location>
<code_context>
+ rlRun "limeCondStopAbrmd"
+ fi
+ limeSubmitCommonLogs
+ rlRun "rm -r ${TmpDir}" 0 "Removing tmp directory"
+ rlPhaseEnd
+
</code_context>
<issue_to_address>
**nitpick (bug_risk):** Use double quotes around variable expansion to prevent word splitting.
Quoting "${TmpDir}" ensures correct removal even if the directory name includes spaces or special characters.
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
the required functionality is being backported in https://gitlab.com/redhat/centos-stream/rpms/keylime/-/merge_requests/65 and https://gitlab.com/redhat/centos-stream/rpms/keylime-agent-rust/-/merge_requests/23 |
…ithms
Summary by Sourcery
Enable attestation in the non-default TPM algorithms functional test by default and introduce a new TPM support detection script for enumerating supported ECC curves and RSA key sizes in an emulated TPM.
New Features:
Enhancements:
Tests: