-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dbt compile should not need service account credentials #2239
Comments
This is expected behavior. The |
Agreed - this is working as intended. See #1584 for more information. I'm adding the wontfix label here as I don't anticipate making a code change in response to this issue, but i am more than happy to discuss it further :) Can you tell me more about the |
Thanks for the quick response. My usage is basically the 1st point here. Visually inspecting the compiled output of model files. So essentially its a test and would like to perform it in CI. if it passes can just push the image to be used in k8s. in production the container will just mount the secret volume. I think the need for credentials makes sense, so will just have to pass in and delete the secrets at the end. Not sure of a workaround to be honest, but will have to do. Thanks |
actually. slightly different. but same same. I have no run I now want to run
Would it be possible to remove the need for credentials in this case since compilation is no longer required and assets have all the right things generated or is there another dependency that needs to have access to your data warehouse to generate docs FYI |
not so @ekhaydarov! The
The first step can be skipped with |
Describe the bug
When running
dbt compile
I get an error stating thatGOOGLE_APPLIATION_CREDENTIALS
is missing. compile builds run read models and sql statements. However, they dont actually need to be run. Therefore there is no need to have a functioning service account key in order to complete the compile stepSecurity wise it means you need to put the service account key into container to be able to run a simple compile. We shouldnt really be doing that?
Steps To Reproduce
Try running dbt compile without setting
GOOGLE_APPLICATION_CREDENTIALS
Expected behavior
Be able to compile without getting an error that you need service account keys.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: macos and ubuntu 18.04 and debian 9
The output of
python --version
: 3.7.4Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: