Configure Google database discovery
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…
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
| Path | Scope | What it can describe | What it does not establish |
|---|---|---|---|
| Cloud SQL | One database project | Available instance configuration, storage-key references and configured transport policy for supported Cloud SQL engines | Actual application-session TLS or identical fields for every engine |
| AlloyDB | One database project and region | Cluster storage-key references and instance configuration | All regions, application-row access or a complete cryptographic inventory |
| Database agent | An explicitly authorized database target reachable from the agent | Supported engine and session observations | Provider-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
- Open Discovery ? Cloud connections ? Google Cloud SQL.
- Enter a recognizable connection name.
- Enter the Database project ID, such as your actual project slug. Do not substitute the numeric project number.
- Enter the Identity-pool project number, Workload identity pool ID and Workload identity provider ID supplied by your administrator.
- Save once and review the selected project.
- 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.
- Have the Google administrator grant the displayed federated principal a project-scoped custom role containing
cloudsql.instances.liston the database project. Review the exact generated plan for your deployment. - Return to QScan and choose Test access. Open the matching operation's resource result. A saved configuration or copied policy does not establish access.
- Once verification succeeds, choose Run scan. Inspect the scan operation and its own resource results; do not confuse these with the preceding access test.
- Interpret the available metadata in context. Configured TLS policy is not a measured session cipher. Missing configuration fields remain missing evidence.
- For this disposable example, revoke the connection, review the warning, then delete it. Retained evidence and Google IAM cleanup are separate concerns.
Configure AlloyDB
- Return to all connections and choose Google AlloyDB.
- Enter the database project ID and one region, such as your actual
us-central1deployment. Wildcard or all-region assumptions do not belong in this field. - Enter the identity-pool project number, pool ID and provider ID, and save.
- Inspect this connection's own trust plan. Reusing a pool does not make a different connection's subject interchangeable.
- Have the administrator bind the displayed principal on the database project with a custom role containing
alloydb.clusters.listandalloydb.instances.list. - Test access, open the resource result, then start discovery and inspect the separate scan result.
- Keep cluster storage configuration and instance transport settings distinct. An unknown or denied observation is not a successful security check.
- Configure additional regions deliberately as separate scopes. Review access before expanding coverage.
- Revoke and delete the example when finished. This does not delete a Google database or remove its IAM bindings.
Recover from common problems
| Symptom | Check | Next action |
|---|---|---|
| Project ID validation fails | Textual database project ID versus numeric identity-pool project number | Put each value in the field matching its meaning |
| Federation is rejected | Issuer, audience, subject mapping, exact-subject condition, pool and provider | Have the identity administrator compare the generated connection-specific plan |
| Access is denied after federation | Principal and minimal role on the database project | Correct the reviewed binding; do not grant broad administrator access as a shortcut |
| AlloyDB inventory misses another region | The saved region scope | Create an explicitly scoped connection for that region |
| Scan is unavailable | Whether the current connection revision passed access verification | Test the current configuration before scanning |
| A result has missing cryptographic fields | Engine-specific provider responses, permissions and supported evidence | Preserve the gap and add an authorized agent scan where relevant |
| Revocation did not remove Google IAM access | Workspace revocation and provider IAM are separate actions | Have 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.
- Google: federation with other identity providers
- Google: Cloud SQL permissions
- Google: AlloyDB IAM permissions
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.