Infrastructure

Zero secrets in config.
Zero secrets in logs.

Every platform, every orchestrator, every CI runner. The proxy works with anything that makes HTTP calls. The CLI works with anything that can shell out. If your system is older than your career, it still works.

The proxy is the universal integration.

If your workload makes HTTPS calls, the Clavitor proxy injects credentials at the network layer. No code changes. No SDKs. No secrets in environment variables, config files, or logs. Set HTTPS_PROXY and your existing code works unchanged — the proxy resolves clavitor:// references in request headers before the request leaves the machine.

$ export HTTPS_PROXY="http://clavitor:$(cat /path/to/proxy-auth)@127.0.0.1:1983"
$ curl -H "Authorization: Bearer clavitor://Stripe/key" \
  https://api.stripe.com/v1/charges
# The agent never sees sk_live_... — only clavitor:// appears in logs

Environment files

.env files without the secrets

Apps that read their settings from environment variables usually get them from a .env file, and that file ends up in backups, screenshots, chat messages and git. clavitor-cli run lets the file hold a pointer instead of the key, and your vault supplies the key as the app starts.

The file as it is today:

STRIPE_KEY=sk_live_51H...
DB_PASSWORD=correct-horse-battery

The same file with pointers:

STRIPE_KEY=clavitor://Stripe/key
DB_PASSWORD=clavitor://Production%20DB/password

Start the app with run in front of it:

$ clavitor-cli run --env-file .env -- ./server

The app sees the real values. The file, your shell and your history only ever see the pointers, so the file can be committed, shared or screenshotted without a secret in it. The same works in CI and in a systemd unit: put clavitor-cli run -- in front of the command, and keep the pointers wherever you kept the secrets.

Every pointer is resolved before the program starts. If one entry is missing, matches more than one, or can't be decrypted, nothing starts, so the app never runs half set up. Each read is in your vault's audit log under the client's name.

Once the app is running, its values are in its own environment, where that program and the processes it starts can read them. When your app can read a config file instead, clavitor-cli render piped straight into it keeps the values out of the environment altogether. The details are in the run and render docs.

Containers

Docker and Kubernetes

Docker Compose

Run the Clavitor proxy on the host and point your containers at it. Credentials are injected transparently into outbound requests — no secrets in environment variables, no secrets baked into images.

# On the Docker host
$ clavitor-proxy serve &
# docker-compose.yml — containers route through the host-mode proxy
services:
  app:
    environment:
      - HTTPS_PROXY=http://host.docker.internal:1983
    extra_hosts:
      - "host.docker.internal:host-gateway"

Or use render to resolve a config template at startup:

$ clavitor-cli render app.config.template.yml | docker compose -f - up

Kubernetes

Create secrets from the vault without hardcoding values in manifests:

$ kubectl create secret generic app-secrets \
  --from-literal=db-pass="$(clavitor-cli get 'Production DB' --field password)" \
  --from-literal=api-key="$(clavitor-cli get 'Stripe API' --field key)"

For runtime credential injection, deploy the proxy as a sidecar container in your pod. Application containers set HTTPS_PROXY to the sidecar. Credentials are resolved per-request, never stored in etcd.

IaC

Terraform, Ansible, Pulumi

Terraform

Resolve credentials into the provider environment before terraform apply. The AWS provider reads its credentials from standard environment variables — Clavitor populates them inline, the .tf file mentions no secret.

$ export AWS_ACCESS_KEY_ID=$(clavitor-cli get "AWS Root" --field access_key_id)
$ export AWS_SECRET_ACCESS_KEY=$(clavitor-cli get "AWS Root" --field secret_key)
$ terraform apply

The provider "aws" {} block stays empty in your code. Same pattern works for any Terraform provider that supports env-var credentials (which is most of them).

Ansible

- name: Get database password
  command: clavitor-cli get "Production DB" --field password
  register: db_pass
  no_log: true

- name: Configure app
  template:
    src: app.conf.j2
  vars:
    db_password: "{{ db_pass.stdout }}"

Pulumi

import { execSync } from 'child_process';
const dbPass = execSync('clavitor-cli get "Production DB" --field password').toString().trim();
new aws.rds.Instance("db", { masterPassword: new pulumi.secret(dbPass) });

CI/CD

GitHub Actions, GitLab CI, Jenkins

Store the client's enrollment blob and key as two CI secrets. Every example below pipes them on stdin, blob first, keeping the key out of argv so it does not appear in /proc/<pid>/cmdline or build logs. A client is pinned to the first IPv4 and the first IPv6 address it connects from, within 10 minutes of its first request, unless you set its allowed IPs in the vault, so give a CI client the addresses or ranges your runners use.

GitHub Actions

- name: Deploy
  env:
    CLAVITOR_BLOB: ${{ secrets.CLAVITOR_BLOB }}
    CLAVITOR_KEY: ${{ secrets.CLAVITOR_KEY }}
  run: |
    printf '%s\n%s\n' "$CLAVITOR_BLOB" "$CLAVITOR_KEY" | clavitor-cli init
    kubectl create secret generic app-secrets \
      --from-literal=api-key="$(clavitor-cli get 'Deploy Token' --field key)" \
      --dry-run=client -o yaml | kubectl apply -f -

GitLab CI

deploy:
  script:
    - printf '%s\n%s\n' "$CLAVITOR_BLOB" "$CLAVITOR_KEY" | clavitor-cli init
    - clavitor-cli get "Deploy Key" --field private_key | ssh-add -
    - ssh deploy@production "systemctl restart app"

Jenkins

pipeline {
  stages {
    stage('Deploy') {
      steps {
        sh 'printf "%s\\n%s\\n" "$CLAVITOR_BLOB" "$CLAVITOR_KEY" | clavitor-cli init'
        sh 'clavitor-cli get "Deploy Key" --field private_key | ssh-add -'
        sh 'ssh deploy@production "systemctl restart app"'
      }
    }
  }
}

SSH

Vault-stored keys

$ clavitor-cli get "Deploy Key" --field private_key | ssh-add -
$ ssh deploy@production

The private key is piped directly into ssh-add. It never touches disk, never appears in shell history, and is cleared from the agent when the session ends.

Legacy systems

If it makes an HTTP call, it works.

The proxy doesn't care what language made the request. COBOL, FORTRAN, Perl, Visual Basic, a 30-year-old batch job — if the process makes an HTTPS request, the proxy intercepts it, resolves the clavitor:// reference, and injects the real credential. No code changes required.

For systems that can't make HTTP calls, use clavitor-cli render to resolve a config template before the process starts. The template is safe to store anywhere. The resolved output goes to stdin or a temporary file with restricted permissions.

# Resolve credentials before the batch job starts
$ clavitor-cli render db-connect.template.cfg > /tmp/db-connect.cfg
$ chmod 600 /tmp/db-connect.cfg
$ /opt/legacy/batch-job --config /tmp/db-connect.cfg
$ rm /tmp/db-connect.cfg

The pattern is always the same.

CLI for scripts and pipelines. Proxy for HTTP workloads. Render for config files. Every secret resolved at runtime, never stored.