Skip to content

feat: add --use-cloud-function flag to validate_config#3286

Merged
mikewilli merged 2 commits into
mainfrom
validation-no-cloud-function
Jul 23, 2026
Merged

feat: add --use-cloud-function flag to validate_config#3286
mikewilli merged 2 commits into
mainfrom
validation-no-cloud-function

Conversation

@scholtzan

Copy link
Copy Markdown
Collaborator

Add a --use-cloud-function/--no-use-cloud-function option to validate_config (default is still true). With --no-use-cloud-function, queries are dry run using the current user's credentials instead of the dry run Cloud Function's service account, allowing validation of configs that reference tables only the user can read (e.g. personal analysis tables).

This came up in https://mozilla.slack.com/archives/C4D5ZA91B/p1783631377972719

If I remember correctly, it was intentional for the dryrun SA not to have access to personal/tmp tables. Though I don't remember the full reason. This flag would be useful in any case though, e.g. if tables are in sandbox projects.

Add a --use-cloud-function/--no-use-cloud-function option to
validate_config (default on). With --no-use-cloud-function, queries are
dry run using the current user's credentials instead of the dry run
Cloud Function's service account, allowing validation of configs that
reference tables only the user can read (e.g. personal analysis tables).

@mikewilli mikewilli 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.

Change looks good, but need to update tests for the new parameter (and probably should add a new test or two for the new functionality).

@mikewilli
mikewilli added this pull request to the merge queue Jul 23, 2026
Merged via the queue into main with commit 47cca2f Jul 23, 2026
4 checks passed
@mikewilli
mikewilli deleted the validation-no-cloud-function branch July 23, 2026 16:04
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.

2 participants