-
Notifications
You must be signed in to change notification settings - Fork 58
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
Esys_ActivateCredential error #254
Comments
@puiterwijk @ueno @lukehinds Any ideas on this one? I cannot get past this error since Tuesday and IBM has not seen it before, either (they got the same error in their environment once they updated the Rust agent code). We also haven't changed much code since the commit where the agent was running without this error, which made me think maybe it is something that was updated in the TSS-ESAPI. Things I've tried so far:
|
I've just tested my changes with the latest master on a real Intel TPM and there it works.
I can try to reproduce this issue on my test setup next week. |
@THS-on @ueno Thank you both for testing. That's actually encouraging that it does not always happen, though puzzling. Especially as it happened in two separate test environments. @ueno Yes, it happens without any tenant interaction, just after registration, during activation. Something goes wrong when calling |
@ueno I'm trying to understand how your swtpm setup differs from what I regularly use, which is basically this. The biggest difference appears to be using When running this setup, I am getting a different error, namely the one you mention in #257 (even on first run). Edit: I found in my notes that the swtpm socket does indeed have to have tpm2-abrmd, so I will try with this. Edit2: However, running with the tabrmd seems to require starting tpm2-abrmd and then setting the TCTI var to |
Also: is anyone able to successfully
... and if so, what version of rustc / cargo / clippy are you using? |
Since the build failure was caused by the update of git checkout 890e8c9e226ffb9fe3b34571ed11901661437fc0
cargo update
# Edit Cargo.lock to replace zeroize_derive version to 1.1.0 and remove the checksum line
cargo build There might be a cleaner way to pin indirect dependencies other than by modifying Cargo.lock. |
Using the steps provided by @ueno it works for me:
TPM: Intel |
@ueno Good idea, thanks, or maybe I can just modify the deps in my fork of the TSS-ESAPI if I continue this debug method. |
@THS-on I notice this is on Arch Linux, are you also able to get it running correctly on F34 with a swtpm? |
Right now I'm building a new F34 test VM to see if this helps since the bug does not reappear for either of you. |
@lkatalin should I test with swtpm through QEMU/libvrit integration or running it locally by setting the TCTI environment variable? |
@THS-on I'd try it locally first as I believe that's what my setup is doing and what @ueno 's setup is doing. But I am still figuring out all the swtpm configurations so if you have a better idea then I welcome that too. |
After setting up an entirely new VM test environment, trying various After this, I went to checkout upstream main commit I'm leaving this open because I do not understand it and it may also recur, but I'm no longer actively blocked on it at this moment. |
Update: I believe this error was resolved in the |
This seems similar to #168 , but we are not passing in any
--allow-signing
flag to the swtpm.This error appeared without us changing any code, but we did update the TSS-ESAPI version, so I am trying to test whether reverting it will fix the error...
The error is occurring in my test setup on the F34 VM with swtpm as well as in IBM's setup.
The Python agent works normally.
The text was updated successfully, but these errors were encountered: