Authorize PostgreSQL and follow a scan into evidence
Connect a locally authorized PostgreSQL database to a managed discovery job, then distinguish observed session cryptography from missing or inapplicable metadata. This task follows agent enrollment and comes before expanding database privileges or making a migration decision.
Authorize PostgreSQL and inspect its evidence
Loading video…
The demonstration uses a real, disposable PostgreSQL 16 database on the Linux lab host, the published native Linux agent, and the production workspace. The database is bound to loopback and uses a short-lived lab certificate explicitly trusted by this connection. The reader has a login but no grants on application tables. No database or control-plane response is mocked. The container, credentials, and temporary agent enrollment are removed afterward.
Get ready
Use an enrolled agent with the database capability, the current native runtime, and an existing private agent configuration. The recording starts with that agent identity already provisioned. It is a database-discovery task, not a second enrollment lesson. If you need the prerequisite, follow agent enrollment and validation and the database agent configuration guide.
Obtain approval to connect to the database. Know the certificate hostname, exact destination IP, port, database name, CA certificate file, and a dedicated metadata-reader account. The lab uses localhost and a temporary loopback port; those values describe the lab topology, not a recommendation to replace your server's certificate hostname with an arbitrary alias.
The reader must be able to authenticate and inspect permitted PostgreSQL metadata. Start with the narrowest privileges. Additional settings visibility may need an explicitly reviewed grant; it does not justify giving the scanner superuser access or application-table privileges.
Authorize the connection on the agent host
Run the native configuration wizard as the account that will read the agent's local policy:
./agent/runtime/quantum-ready database configure \
--directory /private/qscan/database \
--tenant YOUR_WORKSPACE_ID
Use an actual private directory writable only by the intended account. The path above is illustrative. Keep the policy and credential files on the agent host.
- Enter
postgresqlas the engine. - Enter the hostname on the database server certificate. Certificate identity and destination routing are separate inputs.
- Enter the exact approved destination IP and port.
- Enter the database name, not a connection string containing credentials.
- Supply the absolute path to the CA PEM file that validates the database certificate. Do not bypass certificate verification to make a connection succeed.
- Enter the dedicated reader username. Enter and confirm the password at the hidden prompts.
- Review and save the authorization. Record its connection ID and policy-file path.
On Linux, credential protection relies on private filesystem ownership and permissions. Keep that distinction separate from Windows user-bound DPAPI protection. Do not describe Linux credential files as encrypted merely because their permissions are restricted.
Attach the policy to the existing agent
Set databasePolicyFile in the existing agent JSON configuration to the policy path reported by the wizard. Preserve the rest of that agent's configuration and credential handling:
{
"databasePolicyFile": "/private/qscan/database/database-policy.json"
}
This is the field to add, not a replacement for your complete agent configuration. Restart or reload the agent using its documented operating mode after configuration changes. Run local preflight as the agent account:
./agent/runtime/quantum-ready database list \
--policy /private/qscan/database/database-policy.json --tenant YOUR_WORKSPACE_ID
./agent/runtime/quantum-ready database check \
--policy /private/qscan/database/database-policy.json --tenant YOUR_WORKSPACE_ID
A successful local check establishes configuration readiness. It is not proof that the database connection or metadata queries will succeed. Confirm the agent's database readiness in the workspace before queuing a job.
Queue the managed discovery task
- Open Discovery scans, then New agent scan.
- Name the job so its purpose is clear in scan history.
- Select Database and enter the saved connection ID.
- Search for and select the agent that owns that authorization. A connection ID belongs to that agent's local policy; it is not interchangeable with another agent's configuration.
- Queue the job once and follow its status. Do not enter a database password into the hosted job form.
- Wait for the job's terminal result and review the accepted observations. A queued job is not an assessment.
Read what was actually observed
Open the matching inventory asset and expand Observation metadata. In this demonstration:
- The current session reports encrypted transport, TLS 1.3, an AES-256-GCM cipher, and its cipher strength.
- The connection records certificate verification and destination pinning.
- The reader sees some PostgreSQL settings. Other settings remain missing because this role cannot establish them.
- Settings that do not apply to this PostgreSQL version are listed separately from missing settings.
- Key establishment, authentication assessment, and storage-encryption coverage retain their own evidence states. A TLS cipher name does not establish post-quantum key exchange or database-at-rest encryption.
Expand Evidence completeness and verification as well. The summary score and confidence fields do not replace the database-specific probes. Preserve coverage gaps when deciding what follow-up work is justified.
Recover from common problems
- No eligible agent appears: confirm the selected agent's database capability, runtime readiness, heartbeat, and local policy. Enrollment alone does not create a database authorization.
- The connection ID is rejected: verify that it is in this agent's policy and belongs to the same workspace. Do not substitute a hostname into the connection-ID field.
- Certificate verification fails: check the certificate hostname, trust chain, validity, CA file, and pinned destination. Do not turn off verification.
- Authentication fails: verify the dedicated account and update its private local credential through the documented configuration path. Keep the password out of logs and tickets.
- Some settings are missing: identify the specific metadata permission needed. Record the consequences before changing privileges. Do not grant application-table access just to remove a coverage-gap label.
- The job is partial: inspect each probe's state. Preserve the distinction between observed, missing, not applicable, permission denied, and failed.
What you accomplished
You approved one PostgreSQL connection locally, submitted a managed scan referencing that authorization, and inspected real session evidence alongside explicit coverage gaps. The next decision is which unanswered cryptographic question matters enough to justify another scoped check.
Narration transcript
Let's connect PostgreSQL discovery to the evidence you'll review in the workspace. We're using a real lab database and a login-only metadata reader. On the agent host, authorize the engine, certificate host name, exact destination, and port. Set the database name and trusted CA file. These choices bind the connection to an identity and destination. Enter the metadata reader's username and password locally. Password entry stays hidden, and confirmation catches typing mistakes. Save the authorization, then check the connection ID. Use that ID in the workspace. The database password doesn't belong in a hosted job form. Create a database discovery job and give it a useful name. Select the database scanner, then paste the locally approved connection ID. Search for the agent that owns that authorization and select it from the results. Check both values before submission. The job references an approved local connection. It cannot change the database address or credentials, and a connection ID from another agent won't grant access. Queue the job once and follow its status. Review the job outcome, then open the matching inventory asset. This reader can observe the current TLS session and some settings, but its scope is limited. Coverage gaps remain visible. They are not silently converted into a successful assessment. Expand the metadata. This session reports TLS one point three and AES two fifty-six with verified certificate identity and a pinned destination. Missing settings differ from inapplicable settings. These results don't prove post-quantum key establishment or storage encryption. You've authorized a PostgreSQL connection and followed a real managed scan into inventory. Keep confirmed session evidence separate from missing settings and unverified properties. Expand database permissions only for a specific metadata question, then review the result again.