Get started

InsightsBetter with OwlDB

The database address changes: does the AI connection follow?

Copied connection details don't follow the original

Over the weekend, the database server moved to new hardware. The database management platform already lists the new address, but on Monday morning a revenue question to the AI ends in a connection failure. When this database was connected to OwlAI, an administrator typed in its address, port, account, and password by hand, and that copy does not change when the server moves. The same is true of a failover or a scheduled password rotation: each time, someone has to fix the connection on the OwlAI side.

With OwlDB, that work goes away. OwlAI picks the database from the list OwlDB manages and does not receive connection details. OwlDB makes the connection, so whatever changes on the database side, there is nothing to fix in OwlAI.

Direct connection vs. OwlDB connection
Figure 1. Direct connection vs. OwlDB connection

OwlAI connects to your databases on its own

Without OwlDB, OwlAI connects directly to PostgreSQL, MySQL, MariaDB, Oracle, and Tibero, and it reaches databases deep inside the internal network through SSH tunnels and bastions (“The bastion gets one key line that only forwards to the database, not an account”). Passwords for direct connections are kept in OwlAI's vault with envelope encryption, where the key that locks the password is itself locked with another key (“Database backups carry stored passwords, so the key lives elsewhere”). For a handful of databases, that is all you need.

The burden shows up when there are dozens of databases and a management platform already keeps their list and connection details. You copy the same information into OwlAI and have to bring the two back in line every time the original changes. OwlDB does not replace direct connections. It lets a company that already manages its databases with OwlDB stop managing the same information twice. A single OwlAI can use directly connected databases and OwlDB-connected databases side by side.

Picking from the OwlDB list completes the connection

When you connect through OwlDB, what the administrator sees in OwlAI is the list of databases OwlDB manages. Each database's identifier, name, and engine type come from OwlDB, and the administrator picks which of them to open to the AI. There are no fields for an address, account, or password.

At query time, OwlAI tells OwlDB only which database to run on, and OwlDB makes the actual connection. So the OwlAI settings stay as they are when any of the following happens on the database side.

Security reviews lose one place where passwords are kept

For a database connected through OwlDB, OwlAI has no password to keep in the first place. Even if the OwlAI server were compromised, this database's password could not be pulled from it. When a security review asks "where, and in how many places, do you keep database passwords?", there is one fewer place to answer for.

Responsibility for managing databases also sits in one place. OwlDB manages which databases exist and who connects with which account, and OwlAI handles what to ask of them.

What to check before adoption

Settle these three things before you start with OwlDB connections.