Skip to main content

Configure Google database discovery

SECTIGO QUANTUM READY · PLATFORM TRAINING

Configure Google database discovery

Simulated service: Actual local UI with explicitly mocked Google/workspace responses. No provider IAM changes, requests or real inventory publication.

Loading video…

3:27 · English narration and captionsTranscriptDownload lesson

What you will accomplish​

Configure separate Cloud SQL and AlloyDB connections, distinguish the database project from the identity-pool project, inspect generated federation and read permissions, test access, follow a scan to its resource results, and retire the examples. This follows the cloud key lesson and complements database-agent authorization.

Mock disclosure: this video interacts with the actual local product interface. Workspace and Google API responses are explicitly mocked, with a persistent on-screen label. No Google account is contacted, no IAM binding is changed, and no real inventory is published. A successful example result is not live provider acceptance.

Choose the evidence you need​

PathScopeWhat it can describeWhat it does not establish
Cloud SQLOne database projectAvailable instance configuration, storage-key references and configured transport policy for supported Cloud SQL enginesActual application-session TLS or identical fields for every engine
AlloyDBOne database project and regionCluster storage-key references and instance configurationAll regions, application-row access or a complete cryptographic inventory
Database agentAn explicitly authorized database target reachable from the agentSupported engine and session observationsProvider-wide authorization or automatically complete engine metadata

Hosted metadata connections require no endpoint agent or operating-system selection. Their browser configuration is the same on Windows, Linux and macOS. Separate agent lessons cover OS-local credential protection and database setup; do not treat hosted metadata as proof of agent execution on every operating system.

Before you begin​

  • Use a workspace administrator for connection configuration, trust review and access testing.
  • Identify the database project's textual ID. For AlloyDB, select one region.
  • Ask the Google administrator for the numeric project number that owns the workload identity pool, the pool ID and the provider ID. The pool can be in a different project from the databases.
  • Have that administrator establish the exact generated OIDC configuration and metadata-only IAM binding. The video displays the plan but does not navigate the Google console.
  • Use identifiers only. These forms do not need a database password, service-account JSON key, private key or application-row access.

Configure Cloud SQL​

  1. Open Discovery ? Cloud connections ? Google Cloud SQL.
  2. Enter a recognizable connection name.
  3. Enter the Database project ID, such as your actual project slug. Do not substitute the numeric project number.
  4. Enter the Identity-pool project number, Workload identity pool ID and Workload identity provider ID supplied by your administrator.
  5. Save once and review the selected project.
  6. Open Show trust configuration. Compare the issuer URL, allowed audience, attribute mapping and exact-subject condition with the provider configuration. The generated subject binds this particular connection.
  7. Have the Google administrator grant the displayed federated principal a project-scoped custom role containing cloudsql.instances.list on the database project. Review the exact generated plan for your deployment.
  8. Return to QScan and choose Test access. Open the matching operation's resource result. A saved configuration or copied policy does not establish access.
  9. Once verification succeeds, choose Run scan. Inspect the scan operation and its own resource results; do not confuse these with the preceding access test.
  10. Interpret the available metadata in context. Configured TLS policy is not a measured session cipher. Missing configuration fields remain missing evidence.
  11. For this disposable example, revoke the connection, review the warning, then delete it. Retained evidence and Google IAM cleanup are separate concerns.

Configure AlloyDB​

  1. Return to all connections and choose Google AlloyDB.
  2. Enter the database project ID and one region, such as your actual us-central1 deployment. Wildcard or all-region assumptions do not belong in this field.
  3. Enter the identity-pool project number, pool ID and provider ID, and save.
  4. Inspect this connection's own trust plan. Reusing a pool does not make a different connection's subject interchangeable.
  5. Have the administrator bind the displayed principal on the database project with a custom role containing alloydb.clusters.list and alloydb.instances.list.
  6. Test access, open the resource result, then start discovery and inspect the separate scan result.
  7. Keep cluster storage configuration and instance transport settings distinct. An unknown or denied observation is not a successful security check.
  8. Configure additional regions deliberately as separate scopes. Review access before expanding coverage.
  9. Revoke and delete the example when finished. This does not delete a Google database or remove its IAM bindings.

Recover from common problems​

SymptomCheckNext action
Project ID validation failsTextual database project ID versus numeric identity-pool project numberPut each value in the field matching its meaning
Federation is rejectedIssuer, audience, subject mapping, exact-subject condition, pool and providerHave the identity administrator compare the generated connection-specific plan
Access is denied after federationPrincipal and minimal role on the database projectCorrect the reviewed binding; do not grant broad administrator access as a shortcut
AlloyDB inventory misses another regionThe saved region scopeCreate an explicitly scoped connection for that region
Scan is unavailableWhether the current connection revision passed access verificationTest the current configuration before scanning
A result has missing cryptographic fieldsEngine-specific provider responses, permissions and supported evidencePreserve the gap and add an authorized agent scan where relevant
Revocation did not remove Google IAM accessWorkspace revocation and provider IAM are separate actionsHave the cloud administrator remove obsolete trust/bindings after reviewing other dependencies

What you accomplished​

You selected two distinct provider-inventory paths, configured their scopes, reviewed connection-specific federation, followed access tests and discovery to resource outcomes, and retired the examples. Pair provider configuration with independently authorized engine and session evidence; neither layer should silently stand in for the other.

Provider references​

Reviewed 5 November 2026. The permission set above follows the product-generated plan; the provider references explain federation and the named IAM permissions. They do not establish acceptance for this mocked recording.

Narration transcript​

Introduction​

Let's connect Google database inventory without installing an endpoint agent. We'll configure Cloud SQL first, then AlloyDB, review their identities, and follow each connection to its results. This follows the cloud key lesson. The interface is real, but Google and workspace responses are explicitly mocked. No cloud account is contacted.

Sql config​

Start with Cloud SQL. Give this connection a useful name, then enter the database project's ID. The identity pool's project number is a different value, and it can identify a different project. Add the pool and provider IDs, then save. These fields identify resources; they aren't passwords or downloaded service-account keys.

Sql trust​

Now open the generated trust plan. Match the issuer, audience, subject mapping, and subject condition exactly. The principal identifies this connection. Have your Google administrator bind the displayed metadata permission at the database project. Cloud SQL needs the instance-list permission shown here. We aren't changing Google IAM in this walkthrough, and copying this plan doesn't prove access.

Sql result​

Test access before scanning. Open the test's resource result, then run the scan and open its separate result. Our provider responses are mocked, so this success illustrates the workflow rather than proving authorization. Cloud SQL configuration can describe storage keys and configured transport policy. It doesn't prove which cipher an application session negotiated, or that every database engine exposes the same fields.

Sql cleanup​

Check the selected project once more, then revoke the example connection and confirm its deletion. Those are workspace actions. They don't remove a Google IAM binding or delete a database. Keep provider-side cleanup on your administrator's checklist, and keep historical scan evidence separate from the connection's lifecycle.

Alloy config​

Next, choose AlloyDB. It has its own connector and adds a region to the database project scope. Enter the pool's project number, pool ID, and provider ID, then save. This connection inventories clusters and instances in that selected region. If you need another region, configure it deliberately instead of assuming this scope covers it.

Alloy trust​

Review AlloyDB's own generated trust plan. The exact subject belongs to this connection, even if you reuse an identity pool. Its metadata role lists clusters and instances. Those permissions don't grant SQL login, application-row access, secret retrieval, or permission to probe the network. Your Google administrator must establish the real binding before the live access test can succeed.

Alloy result​

Test this connection, inspect its resource result, and then start discovery. Open the scan result so you can distinguish it from the earlier access test. Cluster storage configuration and instance transport settings describe different layers. Don't turn an absent field into a successful security check. Here the result is explicitly mocked; a real deployment still needs its own authorization and evidence review.

Recap​

We've configured two distinct Google database paths, reviewed their bounded trust, and followed tests and scans to their results. Revoke and remove the final example. Use hosted inventory for provider configuration, and pair it with authorized database-agent scans when you need engine or session evidence. The next step is to compare those evidence layers without treating either as complete by itself.