Repository navigation
v1.36.0 — BigQuery service-account impersonation
- Run BigQuery as a service account without holding its key. Add
"impersonateServiceAccount": "<service-account email>"to.df-credentials.jsonand the CLI
impersonates that account for every BigQuery query, using your Application Default Credentials
(or thecredentialskey, if one is set) as the source identity. The source needs
roles/iam.serviceAccountTokenCreatoron the target account.sqlanvil init-credsasks for it as
an optional last prompt and runs the connection test as the impersonated account, so a missing
grant fails before the file is written. Auth precedence is nowaccessToken→
impersonateServiceAccount→credentials→ ADC. The same field works in a
connections.<name>BigQuery entry for runner-extract sources. Ported from upstream Dataform
#2362; see the
BigQuery guide and the CLI reference. @sqlanvil/clinow depends ongoogle-auth-library10.x (it shares one copy with the BigQuery
client). No other dependency changes.
Pin sqlanvilCoreVersion: 1.36.0. Projects on 1.35.x compile unchanged; DF_VERSION stays at
3.1.0.
Install: npm i -g @sqlanvil/cli@1.36.0