-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Override credential validation to run commands like dbt run-operation
#523
Comments
Hello @yu-iskw ! Curious what your use case here is as to why you would like us to support this? |
Hi @amychen1776, I don't think a regular dbt project should work without the application default credentials. But, some dbt Packages might need to run I posted an article about how to do unit testing dbt Package in addition to integration tests to dbt Developer Blog before. We can implement unit tests utilizing https://docs.getdbt.com/blog/unit-testing-dbt-packages We consider if a dbt Package supports multiple major warehouses as BigQuery, Snowflake ans so on. And the developers want to run unit tests not only in CI jobs but also their local machines. For instance, first, the repository owner who doesn't mainly use BigQuery on a daily basis has to set the application default credentials in CI jobs. Second, the contributos have to set the application default credentials, even if he/she wants to enhance parts for a warehouse other than BigQuery. I suppose it can be hassle for them. That's why I want dbt-bigquery 1.9 to act as before. That would be helpful, though the behaviro might be directly related to some dbt Package develoeprs. |
Thanks you @yu-iskw for the context! It was very helpful. At this time, we do expect users to execute dbt with default credentials so I do not consider this a regression but validating what we expect to the current expected behavior. Due to this - I'm going to update this issue to a feature request to support overriding this validation. At this time, this is not a priority for our current roadmap but I will leave this issue open for others to also validate that they would like this. |
dbt run-operation
requires the application default credentialsdbt run-operation
@amychen1776 Thank you for sharing your thought. I totally understand the less prioritized issue to resolve this. I would love to contribute to the enhancement. Please let me know, if there is anything I can help. |
Is this a regression in a recent version of dbt-bigquery?
Current Behavior
dbt-bigquery 1.9 requires the application default credentials even if the executed macro doesn't need to use the credentials.
Expected/Previous Behavior
I expect we can execute a macro which don't need to access BigQuery without the application default credetials.
Steps To Reproduce
jaffle_shop
projectmacros/echo.sql
dbt run-operator echo
without the appliction default credentialsgcloud auth application-default revoke
Relevant log output
Additional Context
No response
The text was updated successfully, but these errors were encountered: