4. Install the Transaction Log
The Inway and the Outway are able to log metadata of the requests they process, these log records can be viewed using the Controller. The Transaction log is mandatory when deploying the FSC reference implementation. In this step you will learn how to setup the Transaction Log.
Certificate
Run the following command to install a certificate for the transaction-log API on the Kubernetes cluster:
kubectl apply -f txlog-api-internal-tls.yaml
Check if the certificate has been created
kubectl -n fsc get secrets | grep txlog-api-internal-tls
The output should look similar to:
txlog-api-internal-tls kubernetes.io/tls 3 35s
Install the Transaction Log API
The transaction logs can be viewed in the Controller. The Controller communicates with the Transaction Log API to retrieve the logs from the database. Now let's install the Transaction Log API on the Kubernetes cluster.
First open the txlog-api-values.yaml
, edit the values below and save the file:
<postgres-password>
replace this with the Postgres password you saved earlier.- The values
<file: ca.crt>
must be replaced by the contents of the fileca.crt
. You have this file in your working directory.- Copy the contents of the files excluding the '-----BEGIN XXXXXXXXX-----' and '-----END XXXXXXXXX-----' lines.
- Paste the content between the start and end lines and make sure the alignment is the same as the start and end lines
- Save the modified file
Run the following commands to install the Transaction Log API on the cluster:
helm -n fsc upgrade --install txlog-api -f txlog-api-values.yaml commonground/fsc-nlx-txlog-api
Check if the Transaction Log API is running:
kubectl -n fsc get pods
A similar line should now show up:
txlog-api-fsc-nlx-txlog-api-69f9487bf5-fqj2w 1/1 Running 1 1m30s
You are now ready to setup the Audit Log