Prerequisites
Work through this checklist before installing either TFE variant. TFE Local Directory and TFE Object Storage share the same installation package and installer script (install.sh / uninstall.sh), so most of what's below applies to both, and differences are called out where they matter.
1. System Requirements
| Requirement | Specification | Notes |
|---|---|---|
| Operating system | Linux with systemd 232+ | Example: Ubuntu 18.04+, Debian 10+, RHEL / Oracle Linux / Rocky Linux 8+ |
| Kernel | 5.4 or later | Required for TFE Local Directory (FUSE feature); not required for TFE Object Storage |
| Package | fuse or fuse3 | Only for TFE Local Directory: install with apt install fuse or yum install fuse |
| Access rights | root (sudo) | The agent runs with the highest privileges on the server |
| Network | The server can connect to the TAKAKRYPT Gateway over HTTPS | Without this connection the agent cannot retrieve its settings |
| Storage type | ext4 or xfs | Required for TFE Local Directory. Encryption information is stored in special file attributes |
| Port | Port 9000 is not used by another application | Only for TFE Object Storage. This port often conflicts with MinIO and can be changed during configuration |
| Object storage | MinIO or Amazon S3 | Only for TFE Object Storage. The server must be able to connect to the object storage being used |
| Policy | Already created in the Policy submenu of the dashboard | Every protected folder or bucket must use an existing policy (type Directory for TFE Local Directory, any type for TFE Object Storage buckets) |
| Memory / disk | ≥2 GB RAM, ≥1 GB free disk | The systemd unit sets MemoryMax=1G as a leak safeguard, not a target |
TFE Object Storage doesn't need FUSE or any particular filesystem type, since it keeps encryption information right alongside the file in object storage.
2. Data to Prepare from the TAKAKRYPT Dashboard
Both variants need the same data. The first four are mandatory; the Agent ID can be left empty.
| Data | Taken from | Mandatory | Notes |
|---|---|---|---|
| Access Token | Page: Access Token | Yes | Use the access token of the same Account as the agent settings in the dashboard |
| User Key | Account user key (starts with uk_) | Yes | Used together with the access token to sign in to the gateway |
| Tenant | Name of the tenant that owns the access token | Yes | Example: default |
| Endpoint | Gateway address | Yes | Must start with http:// or https:// |
| Agent ID | Menu Agent > Config, agent detail page, bottom of the General Information card | No | Leave empty if the agent should register itself |
- Left empty: the agent registers itself with the dashboard the first time it runs, then waits for admin approval. This is usually the easier route when installing across many servers.
- Filled in: you create the agent in the dashboard first (with Agent Mode Directory or Object Storage), then enter its Agent ID during installation.
- Once an agent is registered, you can't change its Account, Access Token, or Type from the dashboard anymore, so get the access token right from the start.
Additional data for TFE Object Storage
| Data | Description |
|---|---|
| Object storage type | minio or s3 |
| Bucket name | The bucket to be protected by TFE Object Storage |
| Bucket region | Example ap-southeast-1. Must match the actual bucket region |
| Client access key and secret key | A new access key defined by the admin (not taken from AWS, MinIO, or the dashboard) that applications will use to connect to TFE Object Storage. This key is different from the real object storage access key |
Check the agent's object storage region setting in the dashboard. It defaults to us-east-1, and the dashboard admin needs to change it to match the real bucket region. Get it wrong and applications get rejected with AuthorizationHeaderMalformed. This can only be fixed from the dashboard, not the server.
3. Installation Package Contents
All installation files live in a single package folder (deployment/). The installer only reads from that folder. Copies sitting elsewhere, like build/ or the repo root, get ignored, which keeps you from accidentally installing the wrong binary.
| File | Function |
|---|---|
install.sh, uninstall.sh | Programs to install and remove the agent (shared by both TFE Local Directory and TFE Object Storage) |
takakrypt-fte | TFE Local Directory agent program |
takakrypt-fos | TFE Object Storage agent program |
takakrypt-fte.service | systemd unit for TFE Local Directory |
takakrypt-fte.logrotate, takakrypt-audit.logrotate | Log rotation settings for operational and audit logs |
fte-install-config.yaml | Template configuration file for TFE Local Directory, placeholder values, not real ones |
bootstrap-fte.yaml.template | An older, no longer valid example configuration (uses the cm: schema instead of gateway:) |
host-settings.conf.template | Example trusted-program settings (optional, TFE Local Directory only) |
takakrypt-guard.conf.template | systemd drop-in template to bind an application's lifecycle to the agent's |
README.md, DATASHEET.md, RELEASE_NOTES.md | Supporting documents shipped with the package |
Don't use the make install-fte build target for a real installation. It writes an old-version config file with the cm: schema, so the agent starts without any gateway parameters and can't connect. Stick with install.sh.
4. Installation Methods
There are three ways to run the installer, chosen with one command:
sudo ./install.sh fte [--bootstrap=FILE] [--skip-config] [--start]
# or, for TFE Object Storage
sudo ./install.sh fos [--bootstrap=FILE] [--skip-config] [--start]
| Method | Description | Suitable for |
|---|---|---|
| Environment variables | Dashboard data is written directly in the installation command | Automated installation or installation on many servers (recommended) |
| Bootstrap file | Dashboard data is prepared first in a single settings file | Complete settings prepared in advance |
| Interactive | The installer asks for the data one by one | Manual installation on a single server |
All three run with root privileges. Running the installer on a server that already has the agent installed is also how you upgrade it. See Upgrading.
Mix more than one method and the installer picks in this order:
- Bootstrap file (
--bootstrap=) - Environment variables
- Existing settings already on the server
- Interactive prompts
--skip-config tells the installer to just use whatever's already on the server, no questions asked.
Ready to install? Head to Deployment for the step-by-step walkthrough.