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

Problem: integration test doesn't use tx-query (CRO-618)#637

Merged
bors[bot] merged 1 commit intocrypto-com:masterfrom
tomtau:fix/tx-query-integration
Dec 6, 2019
Merged

Problem: integration test doesn't use tx-query (CRO-618)#637
bors[bot] merged 1 commit intocrypto-com:masterfrom
tomtau:fix/tx-query-integration

Conversation

@tomtau
Copy link
Copy Markdown
Contributor

@tomtau tomtau commented Nov 28, 2019

Solution:

  • changed chain-abci, client-cli and client-rpc default compilation not to use the complete mock
  • added decryption in tx-validation by default
  • extended client-rpc with mock feature for transaction obfuscation
  • added dockerfile etc. for tx-query
  • extended integration test setup + drone pipeline

NOTE: transaction confidentiality is still WIP -- currently data is sealed with a static key known at compile time
(rather than some enclave-only random secret that's periodically re-generated by validators' bootstrapping enclaves),
so it's still a "mock", but better in the sense that client workflows are more realistic / closer to the complete implementation
(decryption queries are over attested TLS to the tx-query enclave rather than plain abci query)

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Nov 28, 2019

bors try

bors bot added a commit that referenced this pull request Nov 28, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 28, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Nov 28, 2019

bors retry

bors bot added a commit that referenced this pull request Nov 28, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 28, 2019

try

Build failed

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 28, 2019

Codecov Report

Merging #637 into master will increase coverage by 0.4%.
The diff coverage is 19.46%.

@@            Coverage Diff            @@
##           master     #637     +/-   ##
=========================================
+ Coverage   70.17%   70.57%   +0.4%     
=========================================
  Files         133      133             
  Lines       16384    16369     -15     
=========================================
+ Hits        11497    11553     +56     
+ Misses       4887     4816     -71
Impacted Files Coverage Δ
client-cli/src/command.rs 0% <ø> (ø) ⬆️
client-rpc/src/server.rs 8.92% <0%> (-1.28%) ⬇️
chain-abci/src/enclave_bridge/mock.rs 87.5% <0%> (+36.5%) ⬆️
client-core/src/cipher/default.rs 0% <0%> (ø) ⬆️
client-common/src/block_header.rs 0% <0%> (ø) ⬆️
...lient-core/src/synchronizer/manual_synchronizer.rs 44.59% <100%> (+0.38%) ⬆️
client-core/src/handler/default_block_handler.rs 86.06% <100%> (ø) ⬆️
client-common/src/tendermint/types.rs 18% <16.66%> (-0.75%) ⬇️
...work/src/network_ops/default_network_ops_client.rs 79.2% <93.33%> (+0.76%) ⬆️
... and 4 more

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Nov 28, 2019

bors retry

bors bot added a commit that referenced this pull request Nov 28, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 28, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Nov 28, 2019

bors retry

bors bot added a commit that referenced this pull request Nov 28, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 28, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Nov 29, 2019

bors retry

bors bot added a commit that referenced this pull request Nov 29, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 29, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Nov 29, 2019

bors retry

bors bot added a commit that referenced this pull request Nov 29, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Nov 29, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 2, 2019

bors retry

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 2, 2019

try

Merge conflict

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 2, 2019

bors retry

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 2, 2019

bors retry

bors bot added a commit that referenced this pull request Dec 2, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 2, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 2, 2019

bors retry

bors bot added a commit that referenced this pull request Dec 2, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 2, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 3, 2019

bors try

bors bot added a commit that referenced this pull request Dec 3, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 3, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 6, 2019

bors try

bors bot added a commit that referenced this pull request Dec 6, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 6, 2019

try

Build failed

@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 6, 2019

bors retry

bors bot added a commit that referenced this pull request Dec 6, 2019
@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 6, 2019

try

Build failed

Solution:
- changed chain-abci, client-cli and client-rpc default compilation not to use the complete mock
- added decryption in tx-validation by default
- extended client-rpc with mock feature for transaction obfuscation
- added dockerfile etc. for tx-query
- extended integration test setup + drone pipeline
fixed client tx checking and generation:
- only send txids of transactions that are relevant to enclaves
- don't generate withdraw transaction if staked state isn't unbonded

NOTE: transaction confidentiality is still WIP -- currently data is sealed with a static key known at compile time
(rather than some enclave-only random secret that's periodically re-generated by validators' bootstrapping enclaves),
so it's still a "mock", but better in the sense that client workflows are more realistic / closer to the complete implementation
(decryption queries are over attested TLS to the tx-query enclave rather than plain abci query)
@tomtau tomtau force-pushed the fix/tx-query-integration branch from 1019649 to 2952ac4 Compare December 6, 2019 07:38
@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 6, 2019

bors r+

bors bot added a commit that referenced this pull request Dec 6, 2019
637: Problem: integration test doesn't use tx-query (CRO-618) r=tomtau a=tomtau

Solution:
- changed chain-abci, client-cli and client-rpc default compilation not to use the complete mock
- added decryption in tx-validation by default
- extended client-rpc with mock feature for transaction obfuscation
- added dockerfile etc. for tx-query
- extended integration test setup + drone pipeline

NOTE: transaction confidentiality is still WIP -- currently data is sealed with a static key known at compile time
(rather than some enclave-only random secret that's periodically re-generated by validators' bootstrapping enclaves),
so it's still a "mock", but better in the sense that client workflows are more realistic / closer to the complete implementation
(decryption queries are over attested TLS to the tx-query enclave rather than plain abci query)

Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 6, 2019

oops -- integration test is still executed on Travis: https://travis-ci.org/crypto-com/chain/jobs/621480585?utm_medium=notification&utm_source=github_status

so this will require some work -- some flag for travis and compiling with --features mock-enc-dec mock-validation + a different docker-compose file... @calvinaco @calvinlauco any ideas?

@bors
Copy link
Copy Markdown
Contributor

bors bot commented Dec 6, 2019

@bors bors bot merged commit 2952ac4 into crypto-com:master Dec 6, 2019
@tomtau
Copy link
Copy Markdown
Contributor Author

tomtau commented Dec 6, 2019

or disable integration test on Travis? it seems to ignore it

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.

4 participants