Skip to main content

Authorize MySQL and follow a scan into evidence

Connect a locally authorized MySQL database to a managed discovery job, then distinguish observed session cryptography from server defaults and unrequested tablespace inspection. This task follows agent enrollment and comes before expanding database privileges or making a migration decision.

SECTIGO QUANTUM READY · PLATFORM TRAINING

Authorize MySQL and inspect a managed scan

Loading video…

1:51 · English narration and captionsTranscriptDownload lesson

The demonstration uses a real, disposable MySQL 8.4 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 MySQL 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.

  1. Enter mysql as the engine.
  2. Enter the hostname on the database server certificate. Certificate identity and destination routing are separate inputs.
  3. Enter the exact approved destination IP and port.
  4. Enter the database name, not a connection string containing credentials.
  5. Supply the absolute path to the CA PEM file that validates the database certificate. Do not bypass certificate verification to make a connection succeed.
  6. Enter the dedicated reader username. Enter and confirm the password at the hidden prompts.
  7. Leave aggregate tablespace inspection disabled for this first task. It needs a separate permission decision; do not grant broader access implicitly.
  8. 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​

  1. Open Discovery scans, then New agent scan.
  2. Name the job so its purpose is clear in scan history.
  3. Select Database and enter the saved connection ID.
  4. 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.
  5. Queue the job once and follow its status. Do not enter a database password into the hosted job form.
  6. 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, and an AES-256-GCM cipher.
  • The connection records certificate verification and destination pinning.
  • The reader observes the requested server settings, including required secure transport and configured TLS versions.
  • Default table encryption and the redo, undo, and binary log encryption settings are false in this deliberately simple lab. These are scoped settings, not proof about every table or every storage layer.
  • Aggregate tablespace inspection is not requested, because the local authorization deliberately leaves it disabled.
  • The job completes for its requested scope. Key establishment and authentication remain unknown, and storage encryption remains not assessed. A completed job is not a statement that the database is post-quantum ready.

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 MySQL connection locally, submitted a managed scan referencing that authorization, and inspected real session evidence alongside explicitly unrequested checks. The next decision is which unanswered cryptographic question matters enough to justify another scoped check.

Narration transcript​

Let's authorize MySQL discovery and follow a real scan into the workspace. This lab database uses verified TLS and a dedicated metadata reader. On the agent host, choose MySQL, enter the certificate hostname, approved address and port, then select the database and CA file. The hostname verifies identity; the destination limits where the agent can connect.

Leave aggregate tablespace inspection off for this first scan. It needs a separate permission decision. Enter the reader's credentials at the hidden prompts, confirm the password, and save. Check the resulting connection ID. The workspace job uses that ID, not the database password.

Create a database discovery job and give it a useful name. Choose the database scanner and enter the locally approved connection ID. Search for the agent that owns the authorization, then select it. Review both values before you submit. A job can't use this ID to replace the agent's local destination or credentials. Different agents can have different approved connections.

Queue the job once and follow its status.

The managed job completed for its requested scope. Open the matching MySQL inventory asset and inspect the observations. Completion does not mean every database encryption setting, table, or storage layer has been assessed.

The session used TLS one point three and AES two-fifty-six. Review the observed server settings separately. Tablespace inspection was not requested. Defaults are not proof for every table, and encrypted transport does not establish storage encryption or post-quantum key exchange.

You've authorized a MySQL connection and followed a real scan into its evidence. Keep session facts, server settings, and unrequested checks separate. Expand permissions only when the next metadata question requires them, then rerun and compare the findings.