Available

Secure credentials

Your AGOL OAuth2 secrets never sit in the database in plaintext — they're encrypted at rest with pgcrypto.

What it is

Why it matters

A bridge to ArcGIS Online needs credentials to act on your behalf. agol_fdw keeps those credentials encrypted and key-separated, so a database dump alone can't hand them over.

See it

# provide the encryption key to the Postgres server process
export AGOL_FDW_KEY="<32-byte-key>"

-- register your AGOL app credentials (stored encrypted)
SELECT agol_fdw.register_credentials(
  client_id := '<client-id>',
  client_secret := '<client-secret>'
);
Treat AGOL_FDW_KEY like any other secret: manage it via your secrets manager or infrastructure env, rotate as needed, and don't commit it.

Related

← Back to home