Skip to main content

TAKAKRYPT Architecture

Overview​

This architecture illustrates how the TAKAKRYPT services are organized and how the products on the customer side communicate with them. TAKAKRYPT runs as a set of Docker containers on a shared network, with gRPC secured by mTLS between services. Data protection processes such as encryption, tokenization, and data masking are performed by the platform, and every product that protects customer data reaches it over HTTPS through a single entry point.

Zoomable Image

The following is a detailed explanation of the TAKAKRYPT system architecture:

Main Components​

This architecture consists of several main components, grouped by their role.

Client Products​

Client products are the applications and tools on the customer side that use TAKAKRYPT to protect data. They include web users working in the console, applications calling the API, databases using the TDP UDF extension, file and storage servers running the TFE agent, and the TBT and TDC command line tools.

Main functions:

  • Send requests to TAKAKRYPT over HTTPS
  • Receive protected data, configuration, policies, and keys from the platform
  • Interact with the customer's own database or storage, as they do without TAKAKRYPT

Entry Point​

ComponentRole
nginxThe entry point to the platform from outside. Accepts HTTPS connections on port 443 and routes traffic to the Website and the Gateway
WebsiteThe web console used to manage users, policies, agents, and security configuration
GatewayThe single API entry point for the backend services. Accepts REST and GraphQL requests and forwards them over gRPC with mTLS, so the backend services are not exposed directly to the outside

Backend Services​

ComponentRole
AuthAuthenticates users, including MFA, and applies role-based access control and tenant management. Connects to an LDAP / AD directory when one is configured
CryptoEncrypts and decrypts data, including batch operations. Requests keys from the Lock service
TokenizeTokenizes and detokenizes data using format-preserving encryption. Requests keys from the Lock service
Data MaskingReplaces sensitive values with masked values that cannot be reversed
LockThe key management service. Stores and manages encryption keys in an embedded BoltDB database, protects them with seal and unseal, and provides them to Crypto and Tokenize
AuditKeeps an audit trail of user and system activity, and can forward audit logs to a SIEM
NotificationSends email and in-app notifications
BackupCreates encrypted backups and restores them
DecryptorPrepares offline decryption bundles
DispatchCoordinates the services when the platform runs as a cluster, through an embedded NATS JetStream. Also exchanges messages between services, including the Audit service

External Integrations​

IntegrationUsed byPurpose
LDAP / AD directoryAuthSign in with directory accounts
S3 / NFSBackupBackup destination
SMTPNotificationSending email
SIEM (Splunk, Loki, syslog)AuditForwarding audit logs

System Communication Flow​

On the customer side, each TAKAKRYPT product is installed where the data lives, and each one connects to the platform over HTTPS.

Zoomable Image

1. Application Using the API

The application sends a data request to TAKAKRYPT through the API over HTTPS, using its access token (directly or through the TAKA SDK). The data sent is still in plaintext form.

After nginx and the Gateway pass the request to the right backend service, TAKAKRYPT encrypts, tokenizes, or masks the data and returns the protected result, such as ciphertext, a token, or masked data. The application then stores the protected data in its database, so the data at rest has a higher level of security.

2. Database Using the TDP UDF Extension

The database calls a TDP function in its SQL, such as encrypt, decrypt, tokenize, detokenize, or mask.

The function gets its configuration and keys from TAKAKRYPT over HTTPS, performs the operation, and returns the result to the database.

3. File System Using the TFE Agent

The application and its users reach files or database directories through the folder mounted by the TFE agent.

The agent gets its configuration, policy, and keys from TAKAKRYPT over HTTPS. It encrypts data when it is written and decrypts it when an authorized user reads it.

4. Object Storage Using the TFE Agent

The application sends Put and Get requests to the TFE agent instead of directly to AWS S3 or MinIO.

The agent gets its configuration and keys from TAKAKRYPT over HTTPS, encrypts the data before it reaches the storage, and decrypts it when it is read back.

5. Batch Transformation Using TBT

A user runs TBT from the command line on their own machine. TBT reads the schema and data from the database, then gets the security configuration and sends bulk operations to TAKAKRYPT over HTTPS, such as encrypt, decrypt, tokenize, and detokenize.

TBT then writes the protected data back to the database.

6. Activity Recording

Each of these requests to the platform is recorded by the Audit service, and the logs can be forwarded to a SIEM.


Key Handling​

How a key is handled depends on how a product uses TAKAKRYPT:

ProductHow keys are handled
Application using the REST APIThe value is sent to the platform and the protected result comes back, so the keys never leave the platform
TBTSends each value to the platform and receives the result, so it never holds a key
TFE agent and TDP functionsGet their configuration and keys from the platform, so they can encrypt and decrypt the data locally

Keys are stored in the Lock service and protected with seal and unseal. They can be managed centrally across their whole lifecycle, and an external key manager can be connected through KMIP.

For keys that are fetched by an agent, rotating or revoking the key centrally has consequences worth planning for. See How Keys Reach the Agent.