Skip to content
Webinar - May 13th: How Criteo powers real-time decisions with a reduced footprintRegister now

TLS between AGS and Aerospike DB

Overview

This page describes how to set up Transport Layer Security (TLS) for encrypting network traffic between Aerospike Graph Service (AGS) and an Aerospike database instance.

Prerequisites

  • Aerospike Database TLS setup:
  • TLS certificate files:
    • Verify that the required TLS certificate file (PEM-encoded X.509 format) is in the local filesystem.

Procedure

  1. Configure AGS.

    In your AGS properties file, set the following configuration options:

    aerospike.client.tls=true
    aerospike.client.host=<host>:<tls-name>:<port>
    # Replace <host> and <port> with your Aerospike DB host name and port.
    # Replace <tls-name> with the "tls-name" value from your Aerospike Database TLS configuration setup
    # in which you set up TLS on the Aerospike DB instance.
  2. Prepare TLS certificates directory.

    Create a local directory for storing your TLS certificate files, for example, /home/graph-user/graph/tls.

  3. Run the Docker image

    The AGS Docker image must have access to the TLS certificates. When starting the Docker image, use the -v flag to create a volume bind which binds a local directory containing the TLS files to the Docker image directory /opt/aerospike-graph/aerospike-client-tls.

    In the following example, the directory /home/graph-user/graph/tls contains the required certificate files.

    docker run -p 8182:8182 \
    -v /home/graph-user/graph/conf/aerospike-graph.properties:/opt/aerospike-graph/aerospike-graph.properties \
    -v /home/graph-user/graph/tls:/opt/aerospike-graph/aerospike-client-tls \
    aerospike/aerospike-graph-service

    If AGS encounters any problems with the TLS setup, the image startup fails with an error. If the images starts up without errors, the TLS connection is successful.

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?