Security Practices
Host key verification, transfer boundaries, the Vault and plugin governance.
FleetKite's security model has four boundaries: who you are connecting to (host keys), where you may write (transfer protection), how secrets are kept (the Vault) and what a plugin may do (permissions and scopes).
Known host verification is enforced
strict_host_key_check is true by default, and it verifies not only the target machine but every ProxyJump jump host against known_hosts as strictly (jump hosts are never trusted automatically on first use).
On the first connection to an unknown host, the desktop app shows the SHA-256 fingerprint for you to check; the CLI fails and prints the fingerprint instead. Once you confirm it, the key is written to the local ~/.ssh/known_hosts (or the path in global.known_hosts_path).
When a recorded host key changes, the connection is refused and the record has to be updated after you have verified the host through the server's own console.
The transfer boundaries
- Every remote SFTP upload and download refuses path traversal, refuses non-absolute remote paths, and limits a single file to
100 MiBby default; - A single file is committed atomically through a temporary sibling +
Chmod+PosixRename, so a half-written file can never damage a live configuration; - Recursive directory uploads stay inside a safe workspace path (at most 4096 entries, no symbolic links, no parent directory writable by others);
- In production, set
global.transfer_security.allowed_directoriesto restrict which remote roots may be written at all.
global:
transfer_security:
allow_path_traversal: false
require_absolute: true
max_file_size: 104857600 # 100 MiB
allowed_directories:
- /etc/nginx/fleetkite-sites
- /opt/demoappCredential protection and the Vault
Automatic redaction
FleetKite recognises two kinds of sensitive keys on its own:
- exact key names:
password,root_password,secret,api_key,token,private_key,auth(plus whateverglobal.sensitive.keywordsadds); - fuzzy substrings: any variable name containing
password,secret,token,key,auth,credential,passphraseorcookie(plusglobal.sensitive.patterns).
Recognised keys are replaced with ***MASKED*** in logs, error messages and debug output. The template, expect, transfer_file and http plugins, when they render a target file or a credential header, instead take the real plaintext out of the Vault in memory, and immediately register that plaintext with the log redactor so it cannot leak into a log or a diff.
When you need a stricter boundary, state it on the task:
- name: Change a configuration file that holds a secret
type: template
no_log: true # no log, no diff, no desktop detail record
diff: false # no diff even when --diff is on globally
args:
src: templates/secret.conf.tmpl
dest: /etc/demoapp/secret.confThe Vault
export FLEETKITE_VAULT_PASS="strong-passphrase"
fleetkite vault encrypt "my-db-secret"
# prints something like $FLEETKITEVAULT$eyJ2IjoidjIi...Put the ciphertext into vars or servers[].password and the playbook runs as usual; the safe resolver decrypts it in memory at run time.
servers:
- ip: 192.0.2.10
user: ops
password: "$FLEETKITEVAULT$eyJ2IjoidjIi..."Once the desktop app's workspace passphrase is set under Global configuration → FleetKite Vault, the values it produces are fully interchangeable with the CLI's.
The encrypted local workspace
- Host assets, SSH credentials, quick commands, interaction macros and the workspace are all stored encrypted on the local machine — no account to create and no mandatory cloud sync;
- System settings → Data and storage exports an encrypted
.fkbackup(the database, the encryption keys, quick commands, macros, project assets, roles, execution logs, terminal recordings and the installed plugins with their approvals); restoring it on a new machine and switching workspaces picks up where you left off; - SSH private keys and
known_hostsstay under the local machine's own control and are not part of the backup.
The plugin governance loop
Plugin code that has not been authorised is never executed. The full install, lock, sign and approve flow is described in External plugins.
The core principles:
- Content-addressed install — a plugin is stored in the local cache under its SHA-256 digest, so the same content is the same package on every machine;
- Project lock —
plugins.lock.jsonin the project directory binds the plugin's version and full digest; - Publisher signature (optional) — an Ed25519 signature only verifies the publisher's key fingerprint; it does not replace the local approval;
- Explicit local approval —
trust.jsonrecords that digest together with its minimal scope, andrevoketakes it away again.
Every version upgrade (a changed digest) requires lock and trust to run again, even when the id and version fields are unchanged.
The security audit
The desktop app has a dedicated security audit workbench that runs 8 agentless read-only baseline checks against up to 32 Linux hosts:
- SSH configuration and brute-force exposure
- High-risk ports reachable from the internet
- Firewall and Fail2ban state
- Inventory of high-privilege accounts
- Suspicious scheduled tasks and processes
- Disk, memory and load health
- Pending security updates
- Basic security configuration checks
It produces a 0–100 health score with red / yellow / blue / green risk items, and can export an offline HTML report.
For the frequent risks (SSH hardening, a basic firewall, Fail2ban) the desktop app can generate a standard hardening playbook with its own safety preconditions and jump to the playbook workbench. The playbook never changes a live configuration silently: you confirm the change with a diff preview (--check --diff) and then run it.
The audit is read-only; hardening needs consent
Every script the security audit runs is read-only, and nothing is installed on the managed host — no resident agent, no eBPF, no auditd. The hardening playbooks need you to run them explicitly and preview them first.
Next steps
- CLI and MCP — the
vaultsubcommand and the exit code contract - External plugins — the permission list and the scope model