TBT Architecture
Overview
This architecture illustrates how TAKAKRYPT Batch Transformation (TBT) works on a user's machine and how it communicates with the database and TAKAKRYPT. TBT is a command line tool that is run when there is a job. It reads data from the database, sends it to TAKAKRYPT for protection, and writes the result back to the database.
The following is a detailed explanation of the TBT architecture:
Main Components
This architecture consists of several main components as follows:
User
The user is the person who runs and controls a TBT job from their own machine.
Main functions:
- Operate TBT through the command line
- Review the job before it runs, using a dry run or the mapping file
TBT Tools CLI
TBT is a program that is run when there is a job. It is not a service, it does not open any port, and it does not need to be registered in the Agent menu of the dashboard. It runs on the user's machine and finishes when the job is done.
Main functions:
- Get the security configuration from TAKAKRYPT
- Read the schema and data from the database
- Send the values to TAKAKRYPT for bulk operations: encrypt, decrypt, tokenize, and detokenize
- Insert or update the protected data in the database
- Keep the result of each run in a results folder
Database
The database holds the data to be protected. The diagram shows PostgreSQL, and TBT also supports MySQL, MariaDB, MSSQL, Oracle, SQLite, and ClickHouse.
Main functions:
- Provide the schema and data that TBT reads
- Receive the protected data that TBT inserts or updates
TAKAKRYPT
TAKAKRYPT is the platform that does the protection work. TBT only asks it to transform values.
Main functions:
- Provide the security configuration, including the protection functions TBT lists for each column
- Perform the bulk operations on the values TBT sends
- Hold the keys, the policies, and the token generation process
System Communication Flow
1. Starting the Job
The user operates TBT from the command line. TBT connects to TAKAKRYPT over HTTPS. Before it sends any access data, TBT tests the gateway address first, so an access token is never sent to the wrong address.
2. Getting the Security Config
TBT gets the security configuration from TAKAKRYPT. This is where the list of protection functions comes from, which the user chooses from for each column.
3. Reading the Schema and Data
TBT reads the schema and data from the database. It reads each table in groups of rows, based on the key column: every group asks for the rows after the last key the previous group saw. That is what lets a stopped job continue from where it left off.
4. Protecting the Data
TBT sends each value to TAKAKRYPT for the operation that was set: encrypt, decrypt, tokenize, or detokenize. TAKAKRYPT sends the result back. Data masking is also available as a protection function.
5. Writing the Result Back
TBT inserts or updates the protected data in the database. With the in_place strategy, it changes the columns directly in the same table. With the copy strategy, it writes all rows to a destination table and leaves the source table unchanged. See Mapping File and Working Modes for the difference.
6. Recording the Run
Each run creates its own results folder, with the run's report and summary and the checkpoint used to continue a stopped run. See Run Results and Data Safety.
Where the Keys Are
TBT does not store any encryption key. Each value is sent to TAKAKRYPT and the result is received back, so the keys, the policies, and the token generation process stay in the platform.
This is different from the TAKAKRYPT File Encryption agent, which has keys exported to its host. See How Keys Reach the Agent for that side of the comparison.
For the full product introduction, see Overview. To install and run TBT, see Prerequisites and Installation and Usage.