Security & threat model

What each system can and can't do when a key is revoked or expires, what Loxmith sees, how to check a release, and how to report a problem.

What each system can do

Every system declares what it can do, and a test suite holds it to that in both directions: a system can't claim more than it does, or less. Postgres, MySQL and Redis are tested against real servers on every change, and API keys through the shipped connector.

System Lists live keys Revokes one key Closes open connections Ends on its own at expiry
Postgres Yes Yes Yes New sign-ins only
MySQL Yes Yes Yes No
Redis Yes Yes Yes No
API keys (connector) Yes Yes Yes Yes

The limits, system by system:

  • Postgres. At expiry Postgres refuses new sign-ins, but a connection already open stays open until your connector removes the key. The admin role needs CREATEROLE, not superuser.
  • MySQL. No expiry of its own: a key lasts until your connector removes it, so it outlives a Loxmith outage. The admin user needs CREATE USER, PROCESS and CONNECTION_ADMIN. RDS and Aurora aren't supported yet.
  • Redis. No expiry for users either. Point the connector at one primary: after a failover, keys made on the old primary stay there until someone removes them.
  • API keys. Revoking stops requests in flight. Rules allow methods and paths, not request bodies. No vendor SDK has been run through the connector yet.

Cloud and SaaS keys made by Loxmith's broker (AWS, Linode, Pinecone) have only been tested against stand-ins so far. AWS can't list its sessions, and IAM doesn't say how long a revoke takes to apply.

When Loxmith is down

Your connector removes nothing while it can't reach Loxmith, so keys already issued keep working. By default it makes no new keys either. If you turn on its policy cache, it can repeat a request Loxmith already allowed for up to an hour. Those keys have no row in the audit log, only a line in the connector's own log, and the connector removes them once Loxmith is back.

Verify a release

Every release is signed with Sigstore, without a long-lived key. Check the checksum file, then the files you downloaded:

cosign verify-blob SHA256SUMS \
  --bundle SHA256SUMS.cosign.bundle \
  --certificate-identity "https://github.com/getward/ward/.github/workflows/release.yml@refs/tags/${VERSION}" \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

sha256sum --check --ignore-missing SHA256SUMS

What Loxmith can see

Loxmith sees

  • Who asked: a person, a service or an agent run
  • Which rule, which service and for how long
  • Whether it was allowed
  • The key's name, like ward_…, and when it was made and revoked
  • Secrets you store with ward set, encrypted with a key held in a cloud KMS

Stays in your network

  • The admin password your connector holds
  • The keys your connector makes
  • Your queries, commands and data
  • What your APIs send back

Report a problem

Report a vulnerability

Email security@loxmith.dev with the steps to reproduce it and the version you're running.