Skip to content

fix(bigquery-firestore-export): remove unused service account plumbing - #2957

Open
IzaakGough wants to merge 1 commit into
kitsfrom
fix/kits-bfe-remove-unused-service-account
Open

fix(bigquery-firestore-export): remove unused service account plumbing#2957
IzaakGough wants to merge 1 commit into
kitsfrom
fix/kits-bfe-remove-unused-service-account

Conversation

@IzaakGough

@IzaakGough IzaakGough commented Aug 19, 2026

Copy link
Copy Markdown

createTransferConfigRequest set serviceAccountName inside transferConfig, but that field belongs on CreateTransferConfigRequest. The proto drops it, so it never reached the API. Nothing populated it in a real deploy either, since there is no param for it.

Scheduled queries run as whichever identity created them, which is the kit's own function. That is the same account the dropped field was naming, so behaviour is unchanged.

This removes the config field, the parameter, and the two tests that pinned the misplaced field, and leaves a comment on createTransferConfigRequest naming the constraint so the placement is not repeated.

Build clean, 19 unit tests pass.

`serviceAccountName` belongs on the create request, not inside the transfer
config, so the value passed here never reached the API. Nothing populated it
either, since there is no param for it. The query runs as the function's own
account, which is what it would have used regardless.

Removing it rather than correcting the placement, because naming an account
explicitly needs `actAs` on it, even its own, which would mean requesting
project-wide `roles/iam.serviceAccountUser`.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the serviceAccount configuration and parameter from the BigQuery Firestore Export kit. Scheduled queries will now run as the identity that creates them, which is documented in the updated JSDoc for createTransferConfigRequest. Corresponding tests have been updated to reflect this removal. There are no review comments, so I have no feedback to provide.

@IzaakGough
IzaakGough marked this pull request as ready for review August 19, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants