Skip to main content

Authorize PostgreSQL, MySQL and SQL Server on Linux

Create the local policy that permits a Linux 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.

SECTIGO QUANTUM READY · PLATFORM TRAINING

Authorize Linux database targets and validate local readiness

Loading video…

1:56 · English narration and captionsTranscriptDownload lesson

The video shows the real product interface and current native CLI interactions. Use these steps with the database scanning guide and Linux package instructions.

Prepare the agent account​

Use the account that will actually run the agent. Obtain the supported unified Linux 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.

Configure PostgreSQL​

  1. Enter postgresql at the engine prompt.
  2. Enter the hostname on the server certificate, followed by the separately approved destination IP. Certificate validation cannot be disabled.
  3. 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.
  4. Enter the restricted database username. Type and confirm its password at the hidden prompts. The lack of visible characters is intentional.
  5. 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​

SymptomCheck
Permission or ownership rejectionRun as the actual agent account and inspect ownership and private-directory permissions. Do not broaden access to everyone.
Existing files prevent configurationReview the existing policy and its consumers. Use a new protected directory for a separately reviewed configuration.
Password confirmation failsRe-enter the intended credential at both hidden prompts. Do not print it to debug.
Local runtime readiness failsInspect the reported missing runtime or capability and use the supported package instructions.
Local check passes but a scan failsInvestigate the job's endpoint, certificate, authentication and permission diagnostics; local readiness did not test those conditions.
Optional metadata is absentCheck 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 authorize three database connections on Linux. You'll configure PostgreSQL, MySQL and SQL Server, then validate the saved policy. This prepares local permissions before enrollment or a 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.

List and check the saved authorizations. You've configured three local targets without contacting their databases. Next, connect this policy to your agent and review an actual scan. Configuration success alone isn't cryptographic assurance.