-
Notifications
You must be signed in to change notification settings - Fork 20
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
RA-report contains the old MRENCLAVE #1820
Comments
@Kailai-Wang I tried reproducing this bug with scripts, but I was not able to. |
In my experience it normally happens when you do back-to-back enclave updates with different MRENCLAVE, then the registry would contain the MRENCLAVE in the first attempt |
@Kailai-Wang when you say 'back-to-back`, do you mean updating different MRENCLAVEs in a short time?
|
Yes in my experience the registry will have B-MRENCLAVE |
A follow up question to the above:
|
Yes but I can't guarantee that it won't happen under dev. From the code it's getting the mrenclave from RA-report, so we have to really check what's inside it and how it's generated. |
Performed couple of
All of them were able to successfully go on to be a part of
It is difficult to determine that the cause of this could be RA report. But will research more into RA Report generation and if it indeed does some caching that we are not aware of. |
@felixfaisal did you test it in prod mode? Maybe it only happens with prod mode. I'm pretty sure it happened a few times already, and not only when I did the enclave update. You can search for "mrenclave mismatch" in slack |
I tested it on |
|
Haven't observed it for a long time, closing it now |
Context
It normally happens after the enclave update, sometimes the new registered enclave in the teerex registry still contains the old MRENCLAVE, which probably comes from the RA report, even if it's generated live.
Why is that? Maybe ra-report has a cache/time threshold where it only updates the MRENCLAVE in a fixed frequency?
It's a big issue for IDHub because it will convey the wrong MRENCLAVE, related: #1779
✔️ Please set appropriate labels and assignees if applicable.
The text was updated successfully, but these errors were encountered: