Skip to main content

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:

ComponentRole
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 GatewayThe TAKAKRYPT platform service outside your server that stores keys and policies, and converts values into tokens.
DatabaseWhere 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.

TermMeaning
JobOne data protection task written in one mapping file. Example: protecting the nik column in the nasabah table with tokenization.
RunOne 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.

note

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.

warning

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 NeededObtained FromNotes
TBT programRelease package folderSee the Installation and Usage guide
Gateway addressPlatform administratorJust the host name or IP address:port
Platform access dataAccess Token menu in the platformAccess token, user key, and tenant
Database accessDatabase administratorType, host, port, user, password, and database name
File mappingCreated through the TBT menu screenSee the Installation and Usage guide

System Requirements​

RequirementSpecificationNotes
Operating systemLinux (amd64 or arm64)Programs for other operating systems (Windows, macOS) are also available in the package
Access rightsRegular userDoes not require root privileges
Network to gatewayThe server can connect to the TAKAKRYPT Gateway over HTTPSThe entire data protection process is performed in the gateway
Network to databaseThe server can connect to the database to be processedIncluding the destination database when using copy mode
Database accountAn account with read and write rights on the processed tablesFor 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:

FileFunction
takakrypt-batch-transformation-linux-amd64TBT program for 64-bit Linux (Intel/AMD)
takakrypt-batch-transformation-linux-arm64TBT program for Linux ARM
run.shScript that automatically selects the program matching the server (Linux/macOS)
takakrypt-batch-transformation-macos-amd64, -macos-arm64TBT program for macOS (Intel and Apple Silicon)
takakrypt-batch-transformation-windows-amd64.exeTBT program for Windows
run.batThe same script for Windows
BACA-DULU-macos.txtInstructions for running the program on macOS

Ready? Head to Installation and Usage for the step-by-step process.