Skip to content

v1.36.0 — BigQuery service-account impersonation

Choose a tag to compare

@ihistand ihistand released this 16 Oct 18:10
· 138 commits to main since this release
  • Run BigQuery as a service account without holding its key. Add
    "impersonateServiceAccount": "<service-account email>" to .df-credentials.json and the CLI
    impersonates that account for every BigQuery query, using your Application Default Credentials
    (or the credentials key, if one is set) as the source identity. The source needs
    roles/iam.serviceAccountTokenCreator on the target account. sqlanvil init-creds asks 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 now accessToken →
    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/cli now depends on google-auth-library 10.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