Skip to content
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

Attestation url failure #1233

Closed
mosonyi opened this issue Mar 27, 2023 · 2 comments · Fixed by #1319
Closed

Attestation url failure #1233

mosonyi opened this issue Mar 27, 2023 · 2 comments · Fixed by #1319

Comments

@mosonyi
Copy link
Contributor

mosonyi commented Mar 27, 2023

If I build with feature=production I expect to use the URI
/sgx/attestation/v4/sigrl/
However, it always uses the
/sgx/dev/attestation/v4/sigrl/

Build options:
SGX_PRODUCTION=1 make

The file which contains the URL+URI:
core-primitives/attestation-handler/src/attestation_handler.rs

@OverOrion
Copy link
Contributor

This is a rather weird issue, because in theory this should not happen.

Nevertheless I have an idea why this may have happened:

  1. Let's say previously there had been a build with a simple make.
  2. Then a new build is produced with SGX_PRODUCTION=1 make.

I am not entirely sure that cargo/make would not reuse the build artifacts with the wrong features.

I think it would worth a shot to do a make clean between step 1 and 2.

@OverOrion
Copy link
Contributor

It is not mentioned that the SGX_PRODUCTION=1 env var is required for production deployment, it should be added to the docs.
https://docs.integritee.network/4-development/4.4-sdk/4.4.3-teeracle-oracle-framework#build-teeracle-mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants