Captivo AccessDatabase AccessVendor AccessPostgreSQL

Vendor Database Access: Without the Password, With Every Statement Logged

SQL
ON THIS PAGE
IN SHORTThe vendor connects with their own database client but never sees the password. The account is sealed on your side, access is timed and rechecked continuously, and every statement is logged inside your network.

The application vendor wants to inspect a query, correct some data or find a slow report, and for that they need to look at the database. In most places the answer is one of two things: the password of a database user goes out by e-mail, or a VPN is opened for the vendor. With the first, the password stays with the vendor forever; with the second, the vendor sees the rest of the network along with the database.

Three costs of sharing a database password

  • It never expires. You forget to change it when the job ends, and if you do change it, the application itself breaks.
  • You cannot see who got in. The database log shows only the account name; you cannot tell which person at the vendor it was.
  • The account is usually over-privileged. The application's own account gets shared and the vendor can do anything.

The ticket model

In Captivo Access the vendor connects with their own client (psql, mysql, SSMS, DBeaver, redis-cli, mongosh) to a Captivo address. The only things that change on the client are the address and the user name: a short-lived ticket goes where the user name would. Captivo signs in to the database for them with a stored account, logs every statement and drops the connection when access ends.

  1. Store the account once. An administrator enters the server and an account on the resource. The password is sealed to the Connector and never shown again.
  2. The person gets a ticket. Someone with the entitlement presses Connect and gets a 24-character ticket. It is valid for at most eight hours and never outlives the entitlement.
  3. They connect with a normal client. The Connector signs in to the real server with the stored account; a proxy in between passes the traffic and logs it.

Access is rechecked on every new connection and every minute. A person whose entitlement ended, who was disabled, or who connects from outside the IP allowlist has the session closed.

CAPTIVO ACCESSOpen one door for your vendor, not your networkTime-boxed, passkey-verified, recorded access. Free tier: 1 connector, 5 resources; no credit card.Explore Access Start free

Every statement is logged, inside your network

Each statement is kept on the Connector that carried the session, with its time, duration, row count and error; nothing is stored in the cloud. Results and parameter values are not stored, and password statements are masked. Statements such as DROP, TRUNCATE, DELETE and UPDATE without a WHERE, and GRANT and REVOKE (FLUSHALL on Redis, dropDatabase on MongoDB) are flagged for review in the log. That is a hint, not a block. Administrators watch statements live on the Sessions page and can end a session.

How to give read-only access

Something is missing on purpose: there is no read-only switch. A proxy that tried to parse statements and block writes would be easy to get around and would give false confidence.

What a session can do is what the stored account can do. For read-only access store an account that can only read; for write access store one that can write, and give the person who needs to write a separate resource and a separate entitlement. It keeps your database roles tidy as well.

A user per connection

On PostgreSQL and MySQL / MariaDB you can go one step further: each connection gets a throwaway user holding only the role you named, dropped when the connection closes. The server's own log shows the user of that connection.

What to know

  • PostgreSQL, MySQL / MariaDB, SQL Server, Redis and MongoDB are supported.
  • SQL Server has only SQL Server sign-in; there is no Windows (Kerberos and NTLM) or Entra ID sign-in.
  • On Redis and MongoDB commands are recorded, not statements; values, scripts and documents do not enter the log.
  • The allowed-databases list exists only on PostgreSQL. On the other engines what decides is the account's own privileges.
  • Clients reach the proxy on its own port over TLS; the firewall in front of the console must allow the ports of the engines you use.

With Captivo Access

Details are on the database access page. To rotate the password itself or never store it, read alternatives to a shared admin password.