Skip to main content

TFE Architecture

Overview​

This architecture illustrates how the TAKAKRYPT File Encryption (TFE) agent works on the customer's servers and how it communicates with TAKAKRYPT. The agent runs in one of two modes, depending on where the data lives. File system mode (TFE Local Directory) protects folders on the server, and object storage mode (TFE Object Storage) protects buckets in AWS S3 or MinIO. In both modes the agent syncs with TAKAKRYPT, and applications do not need to change.

Zoomable Image

The following is a detailed explanation of the TFE architecture:

Main Components​

This architecture consists of several main components as follows:

Application and Users

Applications and users are the ones who read and write the protected data.

Main functions:

  • Access files or database data through the mounted folders (file system mode)
  • Send Put and Get requests to the TFE agent (object storage mode)

TFE Agent

The TFE agent runs on the server as a background agent, and every access to the protected data goes through it. It is takakrypt-fte in file system mode and takakrypt-fos in object storage mode.

Main functions:

  • Mount the protected folders in file system mode, using FUSE in user space
  • Act as an intermediary between the application and the object storage in object storage mode
  • Check each request with Role-Based Access Control (RBAC), where policies can be set by user, resource, or process
  • Encrypt data when it is written and decrypt it when it is read by an authorized party
  • Sync with TAKAKRYPT: policy and keys in file system mode, configuration and keys in object storage mode

Mount Point

A mount point is a protected folder that the agent mounts in file system mode. The diagram shows two kinds: Mount File for files and Mount DB for database data.

Main functions:

  • Give applications and users access to the protected data
  • Keep what is stored on disk encrypted, in a companion folder with the .encrypted suffix

Object Storage

The object storage is the AWS S3 or MinIO bucket used in object storage mode.

Main functions:

  • Receive the Put requests the agent passes on, and return data for the Get requests
  • Only ever see encrypted files, because the agent encrypts them first

TAKAKRYPT

TAKAKRYPT is the platform the agent syncs with.

Main functions:

  • Provide the policy, configuration, and keys the agent syncs
  • Communicate with the agent over a single outbound connection on port 443

System Communication Flow​

The following diagram shows how access to the protected data is controlled:

Zoomable Image

1. Syncing with TAKAKRYPT

The agent syncs with TAKAKRYPT over a single outbound connection on port 443. In file system mode it syncs policy and keys, and in object storage mode it syncs configuration and keys.

2. Sending the Access Request

A user or application reaches the data. In file system mode, they go through the mounted folder. In object storage mode, the application sends a Put or Get request to the agent, which passes it on to the object storage.

3. Checking the Policy

The agent applies Role-Based Access Control (RBAC) to the request, which decides who can decrypt. The outcome depends on who is asking:

RequesterAt the agentResult
Authorized user (role matches a policy, for example Finance)Policy matchDecrypted, the file is readable
Unauthorized user (a role with no matching policy, for example Guest)No matching policyAccess denied
Cyber criminal (no credentials)Blocked at the agentBlocked, ciphertext only

4. Returning the Data

Authorized users see normal files, and everyone else sees ciphertext. The agent encrypts data when it is written and decrypts it again when an authorized party reads it.

5. Storing the Data

In file system mode, what is stored on disk is the encrypted data, in the companion .encrypted folder of each protected folder. In object storage mode, the object storage only ever sees encrypted files.


How Keys Reach the Agent​

TFE and TFE Object Storage encrypt and decrypt locally, on the server where the agent runs, not on the TAKAKRYPT Gateway itself. That means the encryption key for a protected folder or bucket has to be exported from the gateway to the agent's host, where it's cached for local use.

This is a different model from some other TAKAKRYPT products. TAKAKRYPT Batch Transformation, for example, sends column values to the gateway and gets the result back. The key itself never leaves the gateway. For TFE, the key does leave, which has a practical consequence:

warning

Once a key has been exported to an agent, that copy is outside the gateway's reach. Rotating or revoking the key centrally doesn't retroactively protect data already encrypted with the cached copy, and the agent keeps using it until the agent's own cache is cleared (for example, by re-enrolling the agent or removing its local key cache). Plan key rotation with this in mind, especially for agents on servers you don't fully control.


For the full product introduction and how the two TFE variants differ, see Overview. For the installation details of each variant, see TFE Local Directory and TFE Object Storage.