Commit Graph

10915 Commits

Author SHA1 Message Date
chris-j-h c043865dd7 Travis build change for debugging 2019-08-22 16:01:59 +01:00
chris-j-h 47d098b231 Push vendored dependencies 2019-08-21 20:22:02 +01:00
chris-j-h facee712eb Use value receiver for VaultWallet Store as no state change is performed 2019-08-19 16:44:17 +01:00
chris-j-h dc1cfa3e4a Add vault dependencies using govendor 2019-08-19 16:43:20 +01:00
chris-j-h f428a9b00b
Merge branch 'master' into feature/vault-account-management 2019-08-19 11:44:37 +01:00
chris-j-h e9d71100af Mutex changes 2019-08-19 11:43:29 +01:00
chris-j-h 3f195484bd Get accts immediately on open; combine acct & key retrieval loops
* Don't wait for vaultPollingInterval before trying to retrieve accounts the first time

* Combine privateKeyRetrieval and accountRetrievalLoop

* Use indefinite timedUnlock in accountRetrievalLoop to reduce code duplication
2019-08-19 11:41:28 +01:00
Zhou Zhiyao 4b45dd2004 Minor fixes (#803) 2019-08-17 08:37:57 -04:00
chris-j-h 939a06c522 Merge remote-tracking branch 'jpmorganchase/feature/vault-account-management' into hashicorp-vault-tdd 2019-08-16 15:43:50 +01:00
chris-j-h d0cd4e231a gofmt 2019-08-16 15:43:25 +01:00
chris-j-h 19d634c0fd Add godoc 2019-08-16 15:37:29 +01:00
chris-j-h f7626e1341 Minor code and docs changes 2019-08-16 15:36:45 +01:00
chris-j-h 1530ae5dfb Zero keys before returning if an error is encountered during getKey 2019-08-16 14:49:41 +01:00
chris-j-h 9a635f65e0
Merge branch 'master' into feature/vault-account-management 2019-08-16 13:16:56 +01:00
chris-j-h e0f6e73536 Add docs for Quorum acct management with Hashicorp Vault 2019-08-16 12:22:54 +01:00
chris-j-h 3880653d9c Rename StorePrivateKeys config option to UnlockAll 2019-08-16 10:33:02 +01:00
chris-j-h 16d286042d Add cmp and cmpopts dependencies using govendor 2019-08-15 16:45:37 +01:00
chris-j-h 22a571adac Give tests more time to run, fixing failures when running with coverage 2019-08-15 16:45:10 +01:00
chris-j-h 1d61e7d3c3 Validate the correct key has been retrieved from Vault before signing 2019-08-15 13:54:59 +01:00
chris-j-h 38b4bcb975 Minor refactoring/code changes 2019-08-15 13:54:59 +01:00
chris-j-h 421e24cf9c Add mutexes for concurrency safety 2019-08-14 21:16:22 +01:00
Krish1979 6a3a6900bc Tessera 0.10.0 - Documentation update (#801)
Tessera 0.10.0 Release updates
2019-08-13 18:29:02 -04:00
chris-j-h fbacb43162 Refactor vault_wallet.go, moving Hashicorp specific code to new file 2019-08-13 10:15:51 +01:00
chris-j-h 6fd7ab01dc Bug fixes (incl. fix panic if no response from vault) 2019-08-13 09:55:59 +01:00
chris-j-h 2740e167ac Include individual Vault acct statuses (i.e. locked/unlocked) in status 2019-08-12 18:17:36 +01:00
chris-j-h e68ef0a561 Add Store to VaultWallet & create new accts through the geth CLI
* Implement Store for VaultWallet and use in CLI account creation

* Define Hashicorp Vault CLI flags

* Update account new usage with Vault CLI flags

* Export Vault Client and Secret config types
2019-08-12 17:26:12 +01:00
Libby Kent 7e87e40340 VM read-only mode: check `operation.writes` not `op.isMutating`.
`op.isMutating()` was added for checking mutating VM operation, but `operation.writes`
should be used now as it registers all mutating ops and is consistent with upstream.
Additionally, there is a new  mutating opcode `CREATE2`, but `CREATE2` has not been added to the
`op.isMutating()` set. The VM is in read-only mode when a private contract calls a public contract.
2019-08-12 10:14:23 -04:00
chris-j-h 002fc84f2c Extend geth console's web3.js to include vault acct lock/unlock 2019-08-11 12:29:04 +01:00
jpmsam c894c2d70e v2.2.5 2019-08-08 15:24:12 -04:00
Krish1979 4c74f47525 Update the key usage on Tessera transaction flow (#782) 2019-08-07 16:52:54 -04:00
chris-j-h 28ad6812ba Add Lock/TimedUnlock for Hashicorp accts & expose in PrivateAccountAPI
* Vault keys can be retrieved and stored for a limited time, reducing the number of calls needed to the Vault server

* Existing timed unlocks can be overriden

* Unlocks can be indefinite, requiring an explicit call to lock
2019-08-07 13:16:43 +01:00
Krish1979 cfaa9d2ebd Cakeshop documentation inclusion (#773) 2019-08-06 09:48:20 -04:00
fixanoid b204d1702a
Updating running notes (#794) 2019-08-06 09:43:19 -04:00
Brajesh Awasthi baa7efcf3d max code size option in genesis config (#786) 2019-08-02 15:53:15 -04:00
chris-j-h 2e86d84c7d Validate user-provided config and create hashicorpBackend on node start 2019-07-31 16:45:30 +01:00
chris-j-h c8b47deb09 Refactor retrieval of address and key from vault
* Create getSecretFromVault for common key and acct retrieval behaviour

* Use getKeyFromVault in privateKeyRetrievalLoop

* Create getAddressFromVault method to handle address retrieval
2019-07-31 13:05:00 +01:00
chris-j-h 307ad2dee1 Rename keyGetter to keyHandler 2019-07-31 12:31:34 +01:00
chris-j-h 131944e2a6 Implement SignWithPassphrase methods 2019-07-31 11:32:00 +01:00
chris-j-h b480978a0f Implement SignTx 2019-07-31 11:28:55 +01:00
chris-j-h 24c37842bf Merge branch 'master' of https://github.com/jpmorganchase/quorum into hashicorp-vault-tdd 2019-07-31 10:31:44 +01:00
chris-j-h 54910e7d9e Use milliseconds for vault retrieval loop polling interval
Allows for shorter sleeps in tests
2019-07-30 17:41:39 +01:00
chris-j-h 25a5fd5ce8 Implement SignHash and make updates to retrieval loops
* Introduce a keyGetter (final name TBD) to get signing keys either from memory or vault
* Update retrieval loops to use keyGetter data structure
2019-07-30 17:39:50 +01:00
amalraj 97b59dfe21 internal/ethapi: ask transaction pool for pending nonce (#784)
internal/ethapi: ask transaction pool for pending nonce
2019-07-30 09:56:57 -04:00
Christian Muehlhaeuser acb00b6cf1 Fixed typos (#781)
Typo fixes.
2019-07-25 15:31:38 -04:00
chris-j-h fc441ec6c4 Use first account instead of coinbase in quorum ex docs (#783)
This command fails with unknown account err when using istanbul
2019-07-23 11:19:01 -04:00
four f2055c06df Set tcp port of p2p node by raft peer correctly. (#775) 2019-07-18 16:55:55 -04:00
chris-j-h 58673bbb60 Test that account and key retrieval loops stop once done 2019-07-18 11:20:09 +01:00
chris-j-h 7b40efebb9 Add loop to start retrieving keys from vault on wallet open if enabled 2019-07-18 11:06:09 +01:00
Satpal a9f96e0954 Bugfix/geth console displays incorrect block timestamp (#762)
Fix issue where geth console displays incorrect timestamp under Raft, due to Raft holding block timestamp in nanoseconds, instead of seconds.
2019-07-17 17:11:37 -04:00
chris-j-h 9c0195fd57 Restructure and reorder Getting Started docs (#777)
* Create new page for installation instructions, add quorum cloud details

* Break up QuorumExamples docs & move above CreatingFromScratch in sidebar
2019-07-17 16:01:30 -04:00