Commit Graph

168 Commits

Author SHA1 Message Date
56c6ec967c ENT-1803: Allow change of updateDeadline on parameters update (#814)
* Allow change of updateDeadline on parameters update

ENT-1803. Parameters that where already advertised still need explicit
cancellation.
2018-05-09 15:01:57 +01:00
d254bf6d46 ENT-1548: Improve docs for hsm (#805)
* Improve docs for hsm

Add information on different configs depending on which execution mode
for hsm is run

* Remove default config file argument for hsm, add required to cli flag.
2018-05-04 15:58:36 +01:00
2e1cee00f7 ENT-1608: Check that notary identities are registered (#799)
Check that notary identities are registered

On loading new parameteres check that provieded notary identities were
registered by doorman.
Refactor of NetworkParameters loading code in network-management.
2018-05-03 11:09:11 +01:00
5ed60ab60d Bug fix: registration tool doesn't register for service identity if keystore already contains node cert (#756)
* fix a bug where registration tool will refuse to register for a service identity if the keystore contain NODE_CA key already.
some refactoring
2018-05-02 09:54:28 +01:00
8ce718f4bf Merge pull request #785 from corda/merges/april-27-09-38
Merges: April 27th at 09:38
2018-04-27 17:26:50 +07:00
70b32636b5 Merge remote-tracking branch 'remotes/open/master' into merges/april-27-09-38
# Conflicts:
#	docs/source/changelog.rst
#	node-api/src/main/kotlin/net/corda/nodeapi/internal/config/ConfigUtilities.kt
#	node/src/main/kotlin/net/corda/node/services/config/NodeConfiguration.kt
2018-04-27 10:12:15 +01:00
df5d45a4a6 Enable integration tests to run doorman against remote database (part of ENT-1447) (#776)
Change integration tests in remote database mode infrastracture to allow passing parameterised dataSource configuration to doorman. Add doorman tables to SQL clearup scripts.
2018-04-27 09:57:16 +01:00
e618b49a6c fix a bug which prevent us from starting network map server without doorman. (#760) 2018-04-20 17:45:27 +01:00
57291c435c ENT-1661 Doorman crashes ungracefully when started with incorrect or … (#747)
* ENT-1661 Doorman crashes ungracefully when started with incorrect or no program arguments. Should display a meaningful message instead.
2018-04-19 21:22:04 +01:00
9cbf7fd7ab register crypto provider in main when program startsup (#745) 2018-04-18 17:09:45 +01:00
38a38aa4c4 Fixing Azure deadlock when CSR is persisted (#749) 2018-04-18 11:21:11 +01:00
0e663250ca add old config annotation to doorman config (#731) 2018-04-17 10:35:28 +01:00
7f8c36faa0 ENT-1586 Update entire service stack to support private network maps (#691)
* private network map
2018-04-13 15:54:53 +01:00
a320c8d49f ENT-1456 Adding try-catch to jira ticket processing (#667)
* Adding try-catch to jira ticket processing

* Addressing review comments

* Addressing review comments

* Refactoring getTransitionId method.

* Addressing review comments

* Refactoring to use requireNotNull

* Refactoring to use more requireNotNull

* Fixing missing map population
2018-04-13 07:46:16 +01:00
45d6bca071 Merge branch 'master' into os-merge-f88542f 2018-04-12 15:14:28 +01:00
a83f3f3abe Removing explicit waits for the default notary in driver tests.
This issue was fixed in https://github.com/corda/corda/pull/2947.
2018-04-12 15:13:01 +01:00
eae7d1d3a6 CORDA-1159 Node attempts duplicate CSR if process terminates before receiving Request ID (#723)
* CORDA-1159 Node attempts duplicate CSR if process terminates before receiving Request ID
2018-04-12 13:53:17 +01:00
f9ed55b731 ENT-1323 Network map service to check all identities in submitted node info (#499)
* ENT-1323 Network map service to check all identities in submitted node info

* fixup after rebase

* address PR issues, refactored createValidNodeInfo

* address PR issues
2018-04-12 13:05:15 +01:00
c7ad2ca391 Merge fixes 2018-04-11 11:16:31 +01:00
f1ddd2b747 ENT-1756 register providers first thing on doorman boot. 2018-04-10 16:27:01 +01:00
6761824ba7 Update database integration tests setup for the test related to ENT-1684 (#703) 2018-04-09 12:36:22 +01:00
11af3992db Doorman db entity attributes which are hashes are of type SecureHash where possible. (#695)
Also made use of InputStream.readObject extension method.
2018-04-07 17:26:09 +01:00
00a22c91df ENT-1684: Remove nodes that didn't accept update from network map (#692)
On flag day all nodes that didn't accept new parameters update will be kicked out of the network map.
2018-04-07 15:28:57 +01:00
c4df6b0c85 Fixing CRR signing execution mode (#677)
* Fixing CRR signing execution mode

* Addressing review comments
2018-04-06 17:00:47 +01:00
84398362ab ENT-1626 Validating cert path on node info submission (#650)
* Validating cert path on node info submission

* Addressing review comments

* Refactoring user exceptions

* Changing response message.
2018-04-05 14:21:54 +01:00
6c2cfc3880 ENT-1732 Preventing non-notaries composite keys being submitted in node info (#676)
* Preventing non-notaries composite keys being submitted in node info

* Addressing review comments
2018-04-04 14:33:40 +01:00
6593560655 Adding revocation reasons to docs. (#670) 2018-04-03 16:59:40 +01:00
625d0447aa ENT-992: Introducing the CRR submission tool (#633)
* Introducing the CRR submission tool

* Addressing review comments

* Addressing review comments - round 2 - Redesign of the tool.

* Fixing messages
2018-04-03 08:33:22 +01:00
296e74aca7 Adding the @Produces annotation for the GET endpoints in the Network Map service (#652) 2018-03-29 15:09:39 +01:00
109af246e6 ENT-992: Adding docs for the CRL/CRR (#608)
* Adding docs for the CRL/CRR

* Addressing review comments

* Addressing review comments - round 2
2018-03-29 10:48:28 +01:00
848c516422 ENT-1662: Print better message when no keystore (#634)
Print better message when no keystore

ENT-1662
Clarify how to run the node in network-management README.
2018-03-28 14:47:22 +01:00
b93f12d413 Finished porting change to make JPA entities non-final and serializable. 2018-03-28 10:58:41 +01:00
68cdd5e374 ENT-1683 Ensuring that the updateDeadline time is in the future (#609)
* Ensuring that the updateDeadline time is in the future

* Addressing review comments
2018-03-27 15:20:08 +01:00
76298fc34b Update to ENT-1433: Network parameter update entities in the db are not deleted, but rather marked as CANCELLED or APPLIED. (#600)
Also, the node info entity refers to the update entity, and not to the network parameters entity, which brings in a natural check that the parameters hash that the node is accepting is a planned update.
2018-03-26 18:20:13 +01:00
16c98800cb ENT-1672: Fixed database configuration for description field of parameters_update to fix doorman crash (#604) 2018-03-26 15:15:08 +01:00
a888d78b42 Fix serialization on network map startup (#598)
Fix serialization on network-management startup

Minor documentation fixes
2018-03-23 17:01:46 +00:00
101eee1ff5 Adding jira integration to CRL (#579)
* Adding jira integration

* Addressing review comments

* Adding review comments

* Fixes after rebase
2018-03-23 12:54:38 +00:00
c9caaf8be4 Adding sockets (#570)
* Adding sockets

* Addressing review comments

* Adding review comments

* Addressing review comments
2018-03-23 07:43:13 +00:00
f433ec88fe Add support for database integration tests to new tests created for ENT-1433 (#594) 2018-03-22 11:45:03 +00:00
ff4bbaf63f ENT-1524 & ENT-1358: Cleaned up doorman db schema (#565)
* Renamed tables and constraints to have name < 30 characters
* Using AttributeConverters were possible for custom types
* NodeInfoEntity has relationship to accepted NetworkParametersEntity, not the hash
* Improved logging in the node
2018-03-22 06:39:02 +00:00
a386e71cbd Fixed a deadlock that occurs when running a split network map and doorman. (#470) 2018-03-21 15:00:46 +00:00
75b467e340 ENT-1433: Implementation of NetworkParameters updates (#477)
* Implementation of NetworkParameters updates

Implementation of NetworkParameters updates for network-management
server side of the process.
Change the way network parameters are read up on network-management
startup. Introduced 3 flags to clearly communicate intentions:
initial-network-parameters, update-network-parameters and flag-day.

* Address Shams comments

* Address comments

* NetworkMapStorage refactor

getLatestNetworkParameters returns NetworkParametersEntity

* TODO Exit after parameters update

Started implementing feature requested by devops. TODO: Fix
NodeRegistrationTest

* Code cleanup

* Merged the two cmd line flags into one --set-network-parameters. The idea being to simply check if there are any active network parameters to determine if it's an update or not.

Applying network parameters causes the server to exit once done (ENT-1559).

* Merge fixes

* Minor cleanup

* Small fixes

* Merge fixes and cleanup

* TODO Implementation of cancelUpdate flag

Will slightly change after more manual testing

* Small cleanup

* Address comments

Add OneToOne relation between ParametersUpdate and NetworkParameters.

* Address comments fix tests
2018-03-21 12:29:27 +00:00
8a561cddbf Merge remote-tracking branch 'remotes/open/master' into merges/march-19-14-41
# Conflicts:
#	client/rpc/src/test/kotlin/net/corda/client/rpc/RPCPerformanceTests.kt
#	node-api/src/main/kotlin/net/corda/nodeapi/internal/persistence/CordaPersistence.kt
#	node/src/integration-test/kotlin/net/corda/node/modes/draining/P2PFlowsDrainingModeTest.kt
#	node/src/main/java/CordaCaplet.java
#	node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt
#	testing/node-driver/src/main/kotlin/net/corda/testing/node/MockServices.kt
2018-03-19 15:17:49 +00:00
a26c5c1483 Fixing exception logging for the HSM cert generator (#561) 2018-03-19 08:26:27 +00:00
060f7cc3cb Using CordaX500Name in the doorman database entity objects (ENT-1524) (#573)
certificate_signing_request.legal_name is nullable - invalid names from CSRs are not stored in the db.
2018-03-16 18:45:28 +00:00
6d99f7e5d4 Adding CRL signing (#528)
* Adding CRL signing

* Adding CRL

* Addressing review comments

* Address review comments
2018-03-16 11:48:41 +00:00
78b2bc7549 network_map table references the network_parameters table (ENT-1524). (#567) 2018-03-16 10:57:30 +00:00
a99a910730 Removed duplicate SignedNetworkParameters and SignedNetworkMap type aliases (#562) 2018-03-15 20:55:40 +00:00
d2b29b42fe ENT-1592 Add private network id to CSR (#533)
* * add private network id to CSR
* TODO : Doc
* TODO : Signing server and network map end points

* Remove private network attribute from CSR

* revert unnecessary changes

* remove private network identifier from node as we are not shipping this to the node in DP3

* revert unnecessary changes

* address PR issues
2018-03-15 15:20:07 +00:00
a71ab3f1a1 ENT-1594 Remove usages of Guava cache. Replace with Caffeine. Added whether message is session initiation or not to cache key for de-duplication to account for the 2 P2P consumers. (#557) 2018-03-15 07:58:28 +00:00