Authorize PostgreSQL, MySQL and SQL Server on macOS
Create the local policy that permits a macOS agent to inspect approved database targets. This task precedes agent enrollment and a managed database scan. It does not connect to a database, verify a remote certificate or prove that credentials work. The native wizard makes those boundaries explicit.
Authorize macOS database targets and validate local readiness
Loading video…
The video shows the real product interface and current native CLI interactions. Use these steps with the database scanning guide and macOS package instructions.
Prepare the agent account
Use the account that will actually run the agent. Obtain the supported unified macOS package and verify its published checksum. Extract it into a protected directory. Do not run the configuration as root merely to bypass a permission error. The private policy and credential files must remain accessible only to their owner.
Get the workspace identifier from your enrollment configuration. For each database, ask its administrator for the certificate hostname, approved destination IP, port, database name, trusted CA PEM file and restricted metadata account. A hostname is not an authorization to connect to any address to which it might resolve.
From the extracted package directory, start the native wizard:
./agent/runtime/quantum-ready database configure \
--directory "$HOME/.config/qscan/database" \
--tenant YOUR_WORKSPACE_ID \
--connections 3
Replace the workspace placeholder before running. Choose a new private output directory; do not overwrite existing authorizations without reviewing their use. Keep passwords out of command arguments and shell history.
On macOS, use the same account that will run the agent or its launch service. Supply an explicit trusted CA PEM file; selecting a Keychain item is not a substitute for that file path. This lesson does not install or change a launch service.
Configure PostgreSQL
- Enter
postgresqlat the engine prompt. - Enter the hostname on the server certificate, followed by the separately approved destination IP. Certificate validation cannot be disabled.
- Review the port, enter the database name, and provide the absolute path to the trusted CA PEM file. Enter a database name, not an entire connection string.
- Enter the restricted database username. Type and confirm its password at the hidden prompts. The lack of visible characters is intentional.
- Continue only after the wizard validates the local fields. This validation has not made a connection or tested database grants.
Configure MySQL
Choose mysql for the second connection and independently review its hostname,
approved address, port, database and CA file. Do not copy another server's identity
settings merely because both databases belong to the same application.
The wizard asks whether to include aggregate tablespace-encryption metadata. This can require additional grants. Leave it disabled unless that evidence is needed and the database administrator has approved the corresponding access. Then enter and confirm the restricted account's password. Disabling optional evidence limits what the scan can conclude; it must not be described as a verified encryption result.
Configure SQL Server
Choose sqlserver for the third connection. Review its approved endpoint, database
and CA file. The wizard presents Transparent Data Encryption and aggregate Always
Encrypted metadata as separate options. Review each option's required permissions;
enable only evidence collection that your administrator has authorized.
The recorded example leaves both optional capabilities disabled and uses a restricted account. That demonstrates a limited configuration, not complete SQL Server encryption coverage. Confirm the hidden password entry and review the save prompt for all three authorizations.
Save and inspect local readiness
Save the authorizations once. Note the returned connection identifiers: managed jobs refer to these approved local entries rather than supplying arbitrary targets or passwords through the web interface.
./agent/runtime/quantum-ready database list \
--policy "$HOME/.config/qscan/database/database-policy.json" \
--tenant YOUR_WORKSPACE_ID
./agent/runtime/quantum-ready database check \
--policy "$HOME/.config/qscan/database/database-policy.json" \
--tenant YOUR_WORKSPACE_ID
Inspect each entry and the overall readiness result. A passing local check confirms policy, credential access and required runtime checks. It does not prove remote reachability, TLS verification, authentication or metadata permissions.
Next, connect this policy to the intended agent account, enroll that agent and use Scans → Database to select the ready agent and approved local connection ID. Follow the submitted job through completion and review its evidence and limitations. See the full database workflow for the next stage.
Recover from common problems
| Symptom | Check |
|---|---|
| Permission or ownership rejection | Run as the actual agent account and inspect ownership and private-directory permissions. Do not broaden access to everyone. |
| Existing files prevent configuration | Review the existing policy and its consumers. Use a new protected directory for a separately reviewed configuration. |
| Password confirmation fails | Re-enter the intended credential at both hidden prompts. Do not print it to debug. |
| Local runtime readiness fails | Inspect the reported missing runtime or capability and use the supported package instructions. |
| Local check passes but a scan fails | Investigate the job's endpoint, certificate, authentication and permission diagnostics; local readiness did not test those conditions. |
| Optional metadata is absent | Check whether the option was enabled and whether the restricted account has its documented grants. Missing evidence is not a safe result. |
The demonstration uses example targets and temporary credentials, removes its own private scratch files, and makes no database connections or service changes. Use your real approved targets when configuring an operational agent; retain its policy for as long as that agent needs those authorizations.
Narration transcript
Let's prepare database access on your Mac. You'll authorize PostgreSQL, MySQL and SQL Server, protect the local credentials, and check readiness. This comes before enrollment and the first managed scan.
Start with PostgreSQL. The certificate hostname and approved destination address are separate fields: one verifies identity, the other limits where the agent may connect. Supply the port and database name, then the trusted certificate authority file. Choose a restricted database account. Enter its password twice; neither entry is displayed. These are example targets. Replace them with your approved environment, and keep the private policy directory accessible only to the agent account.
Now add MySQL to the same policy. Check its target and certificate settings independently; don't assume another database's settings apply. The wizard offers aggregate tablespace-encryption metadata. That requires additional grants, so leave it off unless you need that evidence and have approved the access. Enter the restricted account and confirm its password. The wizard is validating local fields, not connecting to the database.
For SQL Server, review the approved target, database and certificate authority again. Transparent Data Encryption and Always Encrypted are separate evidence options. Each can require additional metadata permissions. Here both stay disabled, keeping this example's access limited. Enter the restricted account through the hidden password prompts. A valid policy doesn't prove the remote certificate, credentials or database permissions will work; those need a subsequent scan and evidence review.
Confirm saving. Keep the generated connection IDs and the private policy path.
The Mac now has three local authorizations and a readiness result. We haven't contacted those databases. Connect the policy to the account running your agent, then inspect an actual scan. Local configuration and verified remote evidence are separate steps.