> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AlloyDB table observations

> Observe one AlloyDB table through PostgreSQL on the instance's certificate-authenticated endpoint.

Use the [SQL mount and credential guide](https://docs.bijection.com/integrations/native-sql.md#mount-and-bind).
Bind `postgresRelation(endpoint, credential, data)` to one of the
instance's public IP, VPC IP, or Private Service Connect DNS names on port
5433\. The Bijection deployment must be able to reach the selected address.
Pass the same label to the receiver binder and as the app's `data`.

Enable the AlloyDB Admin API. Use a Google service account authorized
for the intended AlloyDB instance, with AlloyDB Client and Service Usage
Consumer permissions for the instance's project. Use a separate PostgreSQL
password login restricted to SELECT on the table. Seal connection JSON
containing the database login and the service account's signing key.

```json theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{
  "username": "inventory_reader",
  "password": "<database password>",
  "database": "inventory",
  "schema": "publishing",
  "table": "items",
  "key": ["account", "id"],
  "alloyDb": {
    "instance": "projects/acme-prod/locations/us-central1/clusters/inventory/instances/reader",
    "serviceAccount": {
      "client_email": "inventory-reader@acme-prod.iam.gserviceaccount.com",
      "private_key": "<service account PKCS#8 PEM>",
      "private_key_id": "<Google key ID>"
    }
  }
}
```

For each page, the receiver obtains an OAuth token, checks the instance
and reviewed address through the Admin API, and requests a certificate
for a freshly generated client key. The TLS 1.3 connection verifies the
peer name or address against the cluster CA returned with the certificate.
The receiver presents its ephemeral certificate, performs AlloyDB's
metadata exchange for native database login, then runs PostgreSQL wire
inside that TLS connection. It needs egress to `oauth2.googleapis.com:443`,
`alloydb.googleapis.com:443` and the installed instance. The driver
connects directly to the instance's connector endpoint.

The installation observes one read-only repeatable-read page at a time and retains
the exclusive full primary key of one to eight bigint or text parts.
A page carries up to 32 rows, 24 KiB of JSON per row and 48 KiB encoded.
The position includes the AlloyDB instance UID and PostgreSQL relation
identity. An identity change requires a reset. Missing keys remain
published. This profile uses a PostgreSQL password and covers observations.

[Language Connector and IAM permissions](https://docs.cloud.google.com/alloydb/docs/connect-language-connectors) ·
[Official connector transport](https://github.com/GoogleCloudPlatform/alloydb-go-connector)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.