FARM Service
The Front-end Applications for Remote Management (FARM) Service provides a gateway between front-end CENM service interfaces, and the Auth Service that underpins authentication and authorisation in CENM services.
Once installed and configured, users can connect with the FARM Service via the CENM CLI Tool to manage CENM service tasks. Administrators can use the FARM Service address plus /admin
to access the (CENM User Admin Tool)[user-admin] via a web browser.
Install the gateway FARM Service
You can install the FARM Service by installing the FARM Service JAR file:
java -jar farm-application.jar -f config.conf
Configure the FARM Service
When you configure the FARM Service, you need to:
Specify the endpoint where the Auth Service is exposed - this must match the IP or host name of the machine/VM/container and the port that is configured in the Auth Service config file.
Specify the SSL configuration for connecting to the Auth Service. You can do this using the PKI tool.
Your authentication credentials, as specified in your Auth Service configuration.
Your Zone Service address.
You can create a configuration file as shown in the sample, and then add this to your CENM services using the command line commands below.
# Configuration dependent on the Auth Service install
auth {
# This is the endpoint where the Auth Service is exposed, should be the IP or host name of
# the machine/VM/container and the port that was configured in the Auth Service conf file
serverUrl = "https://auth-service:8081/"
# SSL config for connecting to the Auth Service
# Should be the same trust store that is used when configuring the Auth Service
# Generally generated by the PKI Tool
sslConfig = {
trustStore = "/usr/farm/certificates/corda-ssl-trust-store.jks"
trustStorePassword = "trustpass"
}
# Client credentials that were configured in the Auth Service conf file like so:
# clientConfig = {
# clients = [
# {
# clientId = "farm1"
# clientSecret = "secret1"
# scopes = [
# "accounts:admin"
# ]
# audience = [
# "zone",
# "network-map",
# "identity-manager"
# ]
# }
# ]
clientCredentials = {
clientId = "farm1"
clientSecret = "secret1"
}
}
# CENM zone-service address
cenm {
zoneHost: "zone-service"
# Admin listener port of the Zone Service
zonePort: 5063
}
# port to bind to (defaults to 8080)
server {
port = 8080
}
Manage FARM Service configuration
Name of the distribution: farm-application.jar
Command line arguments:
-v, --verbose
- If set, prints logging to the console as well as to a file.--logging-level=
- Enable logging at this level and higher. Defaults to INFO. Possible values: OFF, INFO, WARN, TRACE, DEBUG, ERROR, ALL-f, --config-file=
--config-obfuscation-passphrase[=]
- The passphrase used in the key derivation function when generating an AES key--config-obfuscation-seed[=]
- The seed used in the key derivation function to create a salt-h, --help
-V, --version
Was this page helpful?
Thanks for your feedback!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.
We're sorry this page wasn't helpful. Let us know how we can make it better!
Chat with us
Chat with us on our #docs channel on slack. You can also join a lot of other slack channels there and have access to 1-on-1 communication with members of the R3 team and the online community.
Create an issue
Create a new GitHub issue in this repository - submit technical feedback, draw attention to a potential documentation bug, or share ideas for improvement and general feedback.
Propose documentation improvements directly
Help us to improve the docs by contributing directly. It's simple - just fork this repository and raise a PR of your own - R3's Technical Writers will review it and apply the relevant suggestions.