2017-11-13 15:40:44 +00:00
|
|
|
Running a doorman service
|
|
|
|
=========================
|
|
|
|
|
|
|
|
|
|
|
|
See the Readme in under ``network-management`` for detailed building instructions.
|
|
|
|
|
|
|
|
|
|
|
|
Configuration file
|
|
|
|
------------------
|
2017-11-24 11:32:12 +00:00
|
|
|
At startup doorman reads a configuration file, passed with ``--configFile`` on the command line.
|
2017-11-13 15:40:44 +00:00
|
|
|
|
2017-11-24 11:32:12 +00:00
|
|
|
This is an example of what a doorman configuration file might look like:
|
2017-11-13 15:40:44 +00:00
|
|
|
.. literalinclude:: ../../network-management/doorman.conf
|
|
|
|
|
2017-11-24 11:32:12 +00:00
|
|
|
Invoke doorman with ``-?`` for a full list of supported command-line arguments.
|
2017-11-13 15:40:44 +00:00
|
|
|
|
|
|
|
|
2017-11-15 13:04:16 +00:00
|
|
|
Configuration parameters
|
|
|
|
------------------------
|
|
|
|
Allowed parameters are:
|
|
|
|
|
|
|
|
:keystorePassword: the keystore password
|
|
|
|
|
|
|
|
:caPrivateKeyPassword: the ca private key password
|
|
|
|
|
|
|
|
:rootKeystorePassword: Password for the root store
|
|
|
|
|
|
|
|
:rootPrivateKeyPassword: Password for the root private key
|
|
|
|
|
|
|
|
:host: host on which doorman runs
|
|
|
|
|
|
|
|
:port: port on which doorman runs
|
|
|
|
|
|
|
|
:mode: must be one of: DOORMAN (default), CA_KEYGEN, ROOT_KEYGEN.
|
|
|
|
|
2018-01-25 15:41:59 +00:00
|
|
|
:database: database properties. The same (including its default value) as for node configuration (see :doc:`corda-configuration-file`).
|
2017-11-15 13:04:16 +00:00
|
|
|
|
2018-01-13 11:00:01 +00:00
|
|
|
:dataSourceProperties: datasource properties
|
2017-11-15 13:04:16 +00:00
|
|
|
|
2018-02-08 16:54:07 +00:00
|
|
|
:doorman: Doorman specific configuration
|
|
|
|
|
|
|
|
:approveAll: Whether to approve all request (defaults to false), this is for debug only.
|
|
|
|
|
|
|
|
:approveInterval: How often to process Jira approved requests in seconds.
|
|
|
|
|
|
|
|
:jira: The Jira configuration
|
|
|
|
|
|
|
|
:address: The URL to use to connect to Jira
|
2017-11-15 13:04:16 +00:00
|
|
|
|
2018-02-08 16:54:07 +00:00
|
|
|
:projectCode: The project code on Jira
|
2017-11-15 13:04:16 +00:00
|
|
|
|
2018-02-08 16:54:07 +00:00
|
|
|
:username: Username for Jira
|
2017-11-15 13:04:16 +00:00
|
|
|
|
2018-02-08 16:54:07 +00:00
|
|
|
:password: Password for Jira
|
2017-11-15 13:04:16 +00:00
|
|
|
|
|
|
|
|
2018-02-08 16:54:07 +00:00
|
|
|
:networkMap: Network map specific configuration
|
|
|
|
|
|
|
|
:cacheTimeout: Network map cache entry expiry time (in milliseconds)
|
|
|
|
|
|
|
|
:signInterval: How often to sign the network map in seconds
|
2017-11-15 13:04:16 +00:00
|
|
|
|
2017-11-24 11:32:12 +00:00
|
|
|
:keystorePath: Path for the keystore. If not set (or null is passed) doorman will NOT perform any signing.
|
|
|
|
This is required in case of the HSM integration where signing process is offloaded (from doorman) to an external service
|
|
|
|
that binds with an HSM.
|
2017-11-15 13:04:16 +00:00
|
|
|
|
|
|
|
:rootStorePath: Path for the root keystore
|
|
|
|
|
2017-11-13 15:40:44 +00:00
|
|
|
Bootstrapping the network parameters
|
|
|
|
------------------------------------
|
2017-11-24 11:32:12 +00:00
|
|
|
When doorman is running it will serve the current network parameters. The first time doorman is
|
2017-11-13 15:40:44 +00:00
|
|
|
started it will need to know the initial value for the network parameters.
|
|
|
|
|
|
|
|
The initial values for the network parameters can be specified with a file, like this:
|
2017-11-29 16:46:36 +00:00
|
|
|
.. literalinclude:: ../../network-management/network-parameters.conf
|
2017-11-13 15:40:44 +00:00
|
|
|
|
2017-11-29 16:46:36 +00:00
|
|
|
And the location of that file can be specified with: ``--update-network-parameters``.
|
2017-11-13 15:40:44 +00:00
|
|
|
Note that when reading from file:
|
|
|
|
|
|
|
|
1. ``epoch`` will always be set to 1,
|
2017-11-24 11:32:12 +00:00
|
|
|
2. ``modifiedTime`` will be the doorman startup time
|
2017-11-13 15:40:44 +00:00
|
|
|
|
|
|
|
``epoch`` will increase by one every time the network parameters are updated.
|
2017-11-24 11:32:12 +00:00
|
|
|
|
|
|
|
Bootstrapping the network map
|
|
|
|
-----------------------------
|
|
|
|
|
|
|
|
The network map is periodically refreshed, with frequency driven by the 'signInterval' parameter when local signing is in use.
|
|
|
|
In case of an external signing service it depends on that service configuration. Due to the design decisions dictated by the security concerns
|
|
|
|
around the external signing service, doorman is not allowed to connect directly with the signing sevice. Instead, the external service is
|
|
|
|
expected to access the doorman database in order to obtain signature requiring data.
|
|
|
|
Therefore, doorman takes a passive role considering all signing process related aspects.
|
|
|
|
Network map refresh happens only if there is a change to the current one (i.e. most recently created version of the network map).
|
|
|
|
See the :doc:`signing-service` for a more detailed description of the service.
|
|
|
|
|
|
|
|
When dealing with a fresh deployment (i.e. no previous data is present in the doorman database),
|
|
|
|
it may take some time until the network map is available. This is caused by the aforementioned decoupling of the signing
|
|
|
|
process from doorman itself.
|