Skip to main content

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​

RequirementSpecificationNotes
Operating systemLinux with systemd 232+Example: Ubuntu 18.04+, Debian 10+, RHEL / Oracle Linux / Rocky Linux 8+
Kernel5.4 or laterRequired for TFE Local Directory (FUSE feature); not required for TFE Object Storage
Packagefuse or fuse3Only for TFE Local Directory: install with apt install fuse or yum install fuse
Access rightsroot (sudo)The agent runs with the highest privileges on the server
NetworkThe server can connect to the TAKAKRYPT Gateway over HTTPSWithout this connection the agent cannot retrieve its settings
Storage typeext4 or xfsRequired for TFE Local Directory. Encryption information is stored in special file attributes
PortPort 9000 is not used by another applicationOnly for TFE Object Storage. This port often conflicts with MinIO and can be changed during configuration
Object storageMinIO or Amazon S3Only for TFE Object Storage. The server must be able to connect to the object storage being used
PolicyAlready created in the Policy submenu of the dashboardEvery 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 diskThe 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.

DataTaken fromMandatoryNotes
Access TokenPage: Access TokenYesUse the access token of the same Account as the agent settings in the dashboard
User KeyAccount user key (starts with uk_)YesUsed together with the access token to sign in to the gateway
TenantName of the tenant that owns the access tokenYesExample: default
EndpointGateway addressYesMust start with http:// or https://
Agent IDMenu Agent > Config, agent detail page, bottom of the General Information cardNoLeave empty if the agent should register itself
About the Agent ID
  • 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​

DataDescription
Object storage typeminio or s3
Bucket nameThe bucket to be protected by TFE Object Storage
Bucket regionExample ap-southeast-1. Must match the actual bucket region
Client access key and secret keyA 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
warning

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.

FileFunction
install.sh, uninstall.shPrograms to install and remove the agent (shared by both TFE Local Directory and TFE Object Storage)
takakrypt-fteTFE Local Directory agent program
takakrypt-fosTFE Object Storage agent program
takakrypt-fte.servicesystemd unit for TFE Local Directory
takakrypt-fte.logrotate, takakrypt-audit.logrotateLog rotation settings for operational and audit logs
fte-install-config.yamlTemplate configuration file for TFE Local Directory, placeholder values, not real ones
bootstrap-fte.yaml.templateAn older, no longer valid example configuration (uses the cm: schema instead of gateway:)
host-settings.conf.templateExample trusted-program settings (optional, TFE Local Directory only)
takakrypt-guard.conf.templatesystemd drop-in template to bind an application's lifecycle to the agent's
README.md, DATASHEET.md, RELEASE_NOTES.mdSupporting documents shipped with the package
warning

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]
MethodDescriptionSuitable for
Environment variablesDashboard data is written directly in the installation commandAutomated installation or installation on many servers (recommended)
Bootstrap fileDashboard data is prepared first in a single settings fileComplete settings prepared in advance
InteractiveThe installer asks for the data one by oneManual 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:

  1. Bootstrap file (--bootstrap=)
  2. Environment variables
  3. Existing settings already on the server
  4. 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.