IronVault.
The IronVault. lockup forged in glowing metal on an anvil

Give your programs access to your services. Not your keys

API credentials are kept in an encrypted vault. Local applications can access cloud services without ever seeing your keys. Iron Vault adds the real key on the way out, over verified TLS, and returns the result.

v0.7.0-alphaLinux only, in progress. The proxy works end to end in development mode. The protected install hasn't had a release check yet, so don't trust it with real secrets.

The path of one request

Your application

Calls http://localhost/service/… with no credentials

Iron Vault

  1. Authenticates the caller
  2. Checks the route's method, path and rate limit
  3. Adds the credential to a header or query parameter
  4. Scrubs the key from the response

Provider API

Receives the real key over HTTPS with verified TLS. Redirects are never followed with the credential attached.

What it does

Three locks between a program and your keys

Your agents, users, and back-office apps need access to your cloud services, not their secrets.

Encrypted, approved, audited

The vault is encrypted at rest and every change to its rules needs your sign-off. A typed audit log records who did what, without ever writing a secret.

  • Credentials encrypted with age, plus an offline recovery key
  • Each config change signed with a strictly increasing approval version
  • Wrong passphrases trigger a cooldown from 30 s up to 15 min
day to day
iron-vault unlock          # vault passphrase
iron-vault recovery check  # the offline key still works
iron-vault lock            # secrets out of memory

Credential injection

Applications never see the provider key. Iron Vault stores it, adds it to each request, and takes it back out of anything that echoes it.

  • Static API keys and Basic authentication
  • All credentials are encrypted at rest
  • Scrubbed from response headers, compressed bodies and streams
store a key
# prompted or piped, never an argument
 iron-vault add brave \
  --origin api.search.brave.com

Restricted routes

Each caller gets only the routes it is granted. A key can only ever reach the hosts it was stored with, so editing a route can't send it anywhere else.

  • Callers identified by Unix account, caller token or isolated listener
  • Routes limited by credential, HTTP method, path and request rate
  • Permitted destinations sealed inside the encrypted credential
config.toml
[callers.dev]
listener = "local"
auth = "peer"     # the kernel names the account
user = "alice"
routes = ["venice-dev"]

Security boundary

What it promises, and what it doesn't

Iron Vault stops a caller from

  • Reading a stored provider credential, even one it is allowed to use.
  • Sending a key to another origin than the ones it was stored with.
  • Using a route its identity isn't granted, or exceeding the route's rate.
  • Running an unapproved config, or replaying an old config with its old approval.

It can't stop

  • Misuse of a granted route. Malware that can read a caller's token can use that caller's routes, within its limits.
  • Every transformed secret. Scrubbing catches the credential's known forms, not every encoding of it.
  • A hostile administrator. Root and other host administrators are trusted.

Installation

Install the Debian package

The protected service runs as the iron-vault system account, with the vault in /var/lib/iron-vault, out of reach of ordinary accounts. You administer it with sudo.

bash
sudo apt install ./iron-vault_0.7.0.alpha-1_amd64.deb
sudo iron-vault init     # two passphrases, one recovery key
sudo iron-vault unlock

Harden sudo and encrypt swap and hibernation storage first. Iron Vault is still in alpha, and the package hasn't had a release check on a real machine yet. Keep backups of all keys and critical data. Installation guide

Other ways to install

Build the package

from source

Builds the same .deb from a checkout, with the TPM signing helper.

bash
sudo apt install libtss2-dev pkg-config lintian   # once
cargo install cargo-deb --locked   # once
scripts/build-deb.sh
sudo apt install ./target/debian/iron-vault_*.deb

Building the package

Docker Compose

servers

The service in a container, with one isolated network and TLS listener per caller container, and a host unlock that opens the vault at startup from a TPM-sealed identity. Each release publishes its image to ghcr.io/cjs77/iron-vault.

The Compose profile hasn't had a release check on a real machine yet. Compose install guide

Development mode

testing

Runs as your own user, with files in your XDG directories. Callers, routes, TLS, scrubbing, encryption and approvals all work as normal.

bash
git clone https://github.com/CjS77/iron-vault
cd iron-vault
cargo install --path crates/iron-vault --features dev-mode \
  --root ~/.local/iron-vault-dev
chmod -R go-w ~/.local/iron-vault-dev
export PATH="$HOME/.local/iron-vault-dev/bin:$PATH"

iron-vault serve --log-to-stdout   # in its own terminal
iron-vault init
iron-vault unlock

Development mode gives no isolation from malware running as you. Full tutorial

The package is for Linux on amd64. Building from source needs Rust 1.98 (pinned in rust-toolchain.toml), and the tutorial needs curl and jq. macOS and Windows services are on the roadmap.