Documentation Index
Fetch the complete documentation index at: https://docs.knoxcall.com/llms.txt
Use this file to discover all available pages before exploring further.
Bucket B: Database migration
Bucket B handles database credentials stored in a cloud secret store. The KnoxCall agent binds a local TCP listener on127.0.0.1. Your application connects to 127.0.0.1:{agent_port} — the agent authenticates to the real database using KnoxCall-managed credentials, then pipes the connection through bidirectionally.
The only application change: update the database connection string. No credential rotation, no SDK changes, no code changes beyond the host and port.
How it works
Supported protocols
| Protocol | Default port range | Notes |
|---|---|---|
| PostgreSQL | 5432–5440 | Full wire protocol; ScramSHA-256 upstream auth |
| MySQL | 3306–3316 | Full wire protocol; CLIENT_PLUGIN_AUTH |
| MongoDB | 27017–27027 | OP_MSG with SCRAM auth |
| Redis | 6379–6389 | RESP protocol; AUTH command injection |
Application change required
Update the connection string in your application’s configuration:For connection poolers like PgBouncer or ProxySQL running in front of the database, update the pooler’s upstream to
127.0.0.1:{agent_port} instead. The application points at the pooler as usual.Setting up a DB proxy route
Via admin UI
- Go to Infrastructure → Secret Store Migrations
- Open the migration → click the DB Proxy Routes tab
- Click Add route
- Configure:
- Protocol: PostgreSQL / MySQL / MongoDB / Redis
- Local port: the port the agent will bind on
127.0.0.1 - Upstream host: your real database hostname
- Upstream port: real database port
- Credentials secret: the KnoxCall secret holding the database username/password
- UID allowlist (optional): Linux UIDs permitted to connect to this proxy port
Via API
Security model
Peer attestation
The agent validates the UID of every connecting process viaSO_PEERCRED on Linux (or named-pipe ACL on Windows). If the connecting process UID is not in the allowlist, the connection is refused before any data is exchanged.
TLS to upstream
The agent always opens TLS to the upstream database — even when the application connects to the agent over unencrypted localhost. The agent strictly validates the upstream certificate by default. For development environments where the DB has a self-signed cert, TLS verification can be relaxed per route (not recommended for production).mTLS
If the upstream database requires client certificates for mutual TLS, store the client certificate as a KnoxCall certificate secret and reference it in the route config. The agent presents the certificate automatically during the TLS handshake.Verification and cutover
Once your application is routing through the agent proxy:- The migration verification dashboard tracks probe results showing the old-provider endpoint becoming unreachable
- When all probes pass and consumers are confirmed, click Confirm migration complete
- The “safe to delete cloud secrets” banner appears
Cancelling a Bucket B migration
Cancelling removes all DB proxy routes. Applications that were connecting through the agent will lose database connectivity immediately. Only cancel if you’re reverting the migration entirely.Agent database proxy protocols
Wire-level details: ScramSHA-256, SCRAM, AUTH injection
Migration verification
Probe results and safe-to-delete confirmation
Bucket A: HTTPS API migration
For HTTP-based secret store consumers
Migrations API reference
DB proxy route endpoints