Skip to content

Federal Edition FIPS compliance for Aerospike on Kubernetes

For the complete documentation index see: llms.txt

All documentation pages available in markdown.

Aerospike Federal Edition provides FIPS 140-2 validated cryptographic modules for organizations that require compliance with federal security standards. Aerospike Kubernetes Operator (AKO) supports deploying and managing Federal Edition clusters with PKI-based authentication for local users and Lightweight Directory Access Protocol (LDAP) authentication for external users.

Prerequisites

Before deploying a Federal Edition cluster:

  • TLS certificates: Prepare TLS certificates for cluster communication and PKI authentication.
  • Admin certificates: Generate admin certificates with the Common Name (CN) matching the admin username for PKI-based authentication.

Key differences from Aerospike Enterprise Edition

Federal Edition clusters have the following requirements:

FeatureEnterprise EditionFederal Edition
Server imageaerospike/aerospike-server-enterpriseaerospike/aerospike-server-federal
AuthenticationPassword, PKI-based, or LDAPPKI-based or LDAP. Password authentication is disabled.
Local users in aerospikeAccessControlauthMode: Internal or authMode: PKIOnlyauthMode: PKIOnly
LDAP usersConfigured through security.ldapConfigured through security.ldap
TLSOptionalRequired (mTLS)
Operator authenticationPassword-basedCertificate-based (operatorClientCert)

PKI-only authentication for local users

Federal Edition disables password authentication. Local users that you declare under aerospikeAccessControl must use PKI-only authentication.

When configuring local users:

  • Set authMode: PKIOnly for all users in aerospikeAccessControl
  • Omit the secretName field, because AKO rejects a PKIOnly user that sets it
  • The certificate’s Common Name (CN) must match the username
aerospikeAccessControl:
users:
- name: admin
authMode: PKIOnly
roles:
- sys-admin
- user-admin

LDAP authentication

Federal Edition supports LDAP external authentication, the same as Enterprise Edition. LDAP users aren’t declared under aerospikeAccessControl. Enable LDAP by adding a security.ldap section to aerospikeConfig. Your feature-key file must set asdb-ldap to true, the same as on Enterprise Edition. For a sample configuration, see Use LDAP external authentication for Aerospike on Kubernetes.

AKO still logs in to the cluster as the local admin user with a client certificate.

Client certificates

For Federal Edition clusters, AKO must authenticate using client certificates instead of passwords. Configure the operatorClientCert section of the CR:

operatorClientCert:
secretCertSource:
secretName: aerospike-secret
caCertsFilename: cacert.pem
clientCertFilename: admin_chain.pem #admin user cert (CN must match admin username)
clientKeyFilename: admin_key.pem #admin user private key

The client certificate’s Common Name (CN) must match the admin username configured in aerospikeAccessControl.

Deploy a Federal Edition cluster

  1. Create TLS secrets.

    Create a Kubernetes secret containing all the required certificates for mTLS and admin user authentication. The example secrets directory on GitHub includes a collection of example TLS certificates and security credentials. Download these files into a local folder called secrets.

    Terminal window
    kubectl -n aerospike create secret generic aerospike-secret --from-file=secrets
  2. Create the cluster CR.

    Create a Federal Edition cluster using the following example CR:

    apiVersion: asdb.aerospike.com/v1
    kind: AerospikeCluster
    metadata:
    name: aerocluster
    namespace: aerospike
    spec:
    size: 2
    image: aerospike/aerospike-server-federal:8.2.0.0
    storage:
    filesystemVolumePolicy:
    cascadeDelete: true
    initMethod: deleteFiles
    volumes:
    - name: workdir
    aerospike:
    path: /opt/aerospike
    source:
    persistentVolume:
    storageClass: ssd
    volumeMode: Filesystem
    size: 1Gi
    - name: ns
    aerospike:
    path: /test/dev/xvdf
    source:
    persistentVolume:
    storageClass: ssd
    volumeMode: Block
    size: 3Gi
    - name: aerospike-config-secret
    source:
    secret:
    secretName: aerospike-secret
    aerospike:
    path: /etc/aerospike/secret
    podSpec:
    multiPodPerHost: true
    # PKI-based authentication for admin user
    aerospikeAccessControl:
    users:
    - name: admin
    authMode: PKIOnly
    roles:
    - sys-admin
    - user-admin
    # Operator client certificates for PKI authentication
    operatorClientCert:
    secretCertSource:
    secretName: aerospike-secret
    caCertsFilename: cacert.pem
    clientCertFilename: admin_chain.pem #admin user cert (CN must match admin username)
    clientKeyFilename: admin_key.pem #admin user private key
    aerospikeConfig:
    service:
    feature-key-file: /etc/aerospike/secret/features.conf
    cgroup-mem-tracking: true
    security: {}
    network:
    service:
    tls-name: aerospike-a-0.test-runner
    tls-authenticate-client: any
    tls-port: 4333
    heartbeat:
    tls-name: aerospike-a-0.test-runner
    tls-port: 3012
    fabric:
    tls-name: aerospike-a-0.test-runner
    tls-port: 3011
    tls:
    - name: aerospike-a-0.test-runner
    cert-file: /etc/aerospike/secret/svc_cluster_chain.pem
    key-file: /etc/aerospike/secret/svc_key.pem
    ca-file: /etc/aerospike/secret/cacert.pem
    namespaces:
    - name: test
    replication-factor: 2
    storage-engine:
    type: device
    devices:
    - /test/dev/xvdf
  3. Apply the CR.

    Terminal window
    kubectl apply -f aerospike-federal-cluster.yaml