Prerequisites
What TBT is, how it works at a high level, and what you need before installing and running it on a Linux server.
What Is TBT?
TAKAKRYPT Batch Transformation (TBT) is a tool for changing database column contents in bulk, protecting original data into tokens or encrypted values, or restoring them.
Source database --read--> TBT --send--> TAKAKRYPT Gateway
^ <---result (token)--+
|
+--write--> the same table (in_place)
or a new table (copy)
Three components are involved:
| Component | Role |
|---|---|
TBT (takakrypt-batch-transformation) | A program that is run when there is a job. TBT is not an application that runs continuously in the background. |
| TAKAKRYPT Gateway | The TAKAKRYPT platform service outside your server that stores keys and policies, and converts values into tokens. |
| Database | Where the data to be protected is stored. TBT supports MySQL, MariaDB, PostgreSQL, MSSQL, Oracle, SQLite, and ClickHouse. |
TBT isn't a service. It has no daemon, opens no port, and doesn't need registering in the dashboard's Agent menu. Copy it to the server, run it when there's a job, and it finishes on its own. It also doesn't hold any keys: policies and the token generation process live in the TAKAKRYPT Gateway, and each column value is sent there and received back. One job is described in one mapping file (YAML), which can be reviewed and approved before it runs.
| Term | Meaning |
|---|---|
| Job | One data protection task written in one mapping file. Example: protecting the nik column in the nasabah table with tokenization. |
| Run | One execution of a job. Each run creates one result folder that can be continued (resume) or retried (retry) if needed. |
The complete list of terms is in the Glossary.
This guide runs TBT through the ./run.sh script. A command written as tbt run ... is the same as ./run.sh run ... in this guide. Access data (access token, user key, database password) is never written in commands. It is stored in environment variables instead.
Run ./run.sh version to check which TBT version you're running. If your release behaves differently from what's described here, check its release notes.
Before touching real data, always run validate and preview first, since neither of them changes anything. There are also three conditions that can make data impossible to open ever again; read Three Things That Can Cause Data Loss before running the first job.
Who This Guide Is For
Operators running TBT on Linux servers, database administrators, and operations teams responsible for protecting data in databases. Notes for macOS are in Troubleshooting.
Items to Prepare
Gather these five things before you start:
| What Is Needed | Obtained From | Notes |
|---|---|---|
| TBT program | Release package folder | See the Installation and Usage guide |
| Gateway address | Platform administrator | Just the host name or IP address:port |
| Platform access data | Access Token menu in the platform | Access token, user key, and tenant |
| Database access | Database administrator | Type, host, port, user, password, and database name |
| File mapping | Created through the TBT menu screen | See the Installation and Usage guide |
System Requirements
| Requirement | Specification | Notes |
|---|---|---|
| Operating system | Linux (amd64 or arm64) | Programs for other operating systems (Windows, macOS) are also available in the package |
| Access rights | Regular user | Does not require root privileges |
| Network to gateway | The server can connect to the TAKAKRYPT Gateway over HTTPS | The entire data protection process is performed in the gateway |
| Network to database | The server can connect to the database to be processed | Including the destination database when using copy mode |
| Database account | An account with read and write rights on the processed tables | For copy mode, the account also needs the right to create tables in the destination database |
Installation Package Contents
The TBT release package is a single self-contained folder that can be used right away:
| File | Function |
|---|---|
takakrypt-batch-transformation-linux-amd64 | TBT program for 64-bit Linux (Intel/AMD) |
takakrypt-batch-transformation-linux-arm64 | TBT program for Linux ARM |
run.sh | Script that automatically selects the program matching the server (Linux/macOS) |
takakrypt-batch-transformation-macos-amd64, -macos-arm64 | TBT program for macOS (Intel and Apple Silicon) |
takakrypt-batch-transformation-windows-amd64.exe | TBT program for Windows |
run.bat | The same script for Windows |
BACA-DULU-macos.txt | Instructions for running the program on macOS |
Ready? Head to Installation and Usage for the step-by-step process.