Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Problem: no tx-validation enclave attested TLS listener for receiving secrets from TDBE (fixes #1994) #2189

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

tomtau
Copy link
Contributor

@tomtau tomtau commented Aug 26, 2020

Solution: made parts of TDBE helpers reusable + a simple listening for mock key being pushed
by incomplete TDBE enclave code (launched in chain-abci) + build modifications

@tomtau
Copy link
Contributor Author

tomtau commented Aug 26, 2020

bors try

bors bot added a commit that referenced this pull request Aug 26, 2020
@bors
Copy link
Contributor

bors bot commented Aug 26, 2020

try

Build failed:

chain-abci/src/enclave_bridge/edp/mod.rs Show resolved Hide resolved
chain-abci/src/enclave_bridge/edp/mod.rs Outdated Show resolved Hide resolved
chain-abci/src/enclave_bridge/edp/tdbe.rs Outdated Show resolved Hide resolved
chain-abci/src/main.rs Outdated Show resolved Hide resolved
chain-tx-enclave-next/tdbe/enclave-app/src/sgx_module.rs Outdated Show resolved Hide resolved
@tomtau
Copy link
Contributor Author

tomtau commented Aug 26, 2020

bors try

bors bot added a commit that referenced this pull request Aug 26, 2020
@bors
Copy link
Contributor

bors bot commented Aug 26, 2020

try

Build failed:

@tomtau
Copy link
Contributor Author

tomtau commented Aug 26, 2020

bors retry

bors bot added a commit that referenced this pull request Aug 26, 2020
@bors
Copy link
Contributor

bors bot commented Aug 26, 2020

try

Build succeeded:

@tomtau
Copy link
Contributor Author

tomtau commented Aug 26, 2020

bors try

bors bot added a commit that referenced this pull request Aug 26, 2020
@bors
Copy link
Contributor

bors bot commented Aug 26, 2020

try

Build failed:

Copy link
Collaborator

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just one small question.

spawn_chain_abci_thread(chain_abci_receiver, storage.clone());
spawn_persistence_thread(persistence_receiver, storage);
// FIXME: spawn these when they actually do something
// spawn_chain_abci_thread(chain_abci_receiver, storage.clone());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is chain_abci_thread removed? Isn't it supposed to spawn a new thread?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not removed, it's commented out, as it's unused in this step

@codecov
Copy link

codecov bot commented Aug 26, 2020

Codecov Report

Merging #2189 into master will decrease coverage by 3.87%.
The diff coverage is 6.08%.

@@            Coverage Diff             @@
##           master    #2189      +/-   ##
==========================================
- Coverage   59.44%   55.56%   -3.88%     
==========================================
  Files         223      217       -6     
  Lines       31935    31382     -553     
  Branches    10717    10763      +46     
==========================================
- Hits        18983    17437    -1546     
- Misses      12597    13291     +694     
- Partials      355      654     +299     
Impacted Files Coverage Δ
chain-abci/src/enclave_bridge/edp/mod.rs 0.00% <0.00%> (ø)
chain-abci/src/enclave_bridge/edp/tdbe.rs 0.00% <0.00%> (ø)
chain-abci/src/enclave_bridge/mock.rs 79.12% <0.00%> (-2.70%) ⬇️
chain-abci/src/enclave_bridge/mod.rs 0.00% <ø> (ø)
chain-abci/src/main.rs 0.00% <0.00%> (ø)
chain-storage/src/lib.rs 55.96% <0.00%> (-1.59%) ⬇️
...tx-enclave-next/enclave-ra/ra-client/src/config.rs 17.64% <0.00%> (-5.43%) ⬇️
chain-tx-enclave-next/enclave-utils/src/lib.rs 96.77% <ø> (ø)
chain-tx-enclave-next/enclave-utils/src/tls.rs 0.00% <0.00%> (ø)
chain-tx-enclave-next/tdbe/tdbe-common/src/lib.rs 0.00% <0.00%> (ø)
... and 152 more

… secrets from TDBE (fixes crypto-com#1994)

Solution: made parts of TDBE helpers reusable + a simple listening for mock key being pushed
by incomplete TDBE enclave code (launched in chain-abci) + build modifications
@tomtau
Copy link
Contributor Author

tomtau commented Aug 26, 2020

bors try

bors bot added a commit that referenced this pull request Aug 26, 2020
@bors
Copy link
Contributor

bors bot commented Aug 26, 2020

try

Build succeeded:

@tomtau
Copy link
Contributor Author

tomtau commented Aug 26, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 26, 2020

Build succeeded:

@bors bors bot merged commit 4427431 into crypto-com:master Aug 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants