-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[CT-2953] [Bug] DBT profile could not be rendered because of sequence of special characters in password #8345
Comments
Thanks @IAMLEGION98! I believe this was resolved in #7630, included in v1.6.0. We also backported the fix (#7653) for inclusion in v1.5.1. Could you try upgrading, and see if you're still running into the same error? |
Hey, thankyou so much for the response @jtcohen6. Great to see the fix was in place. |
@IAMLEGION98 per a discussion offline with @jtcohen6 and @graciegoheen, we're going to release backports for 1.4 and 1.3 (but not earlier, because 1.2, etc are outside of critical support). In the meantime, if 1.5 or 1.6 isn't a possibility for you, your only option for a workaround is to reset your password to something that doesn't have paired curly braces like that. e.g. change the password to this:
to replace this:
I know you mentioned that you don't have control over the choice or sequence of special characters that go into the DB random password -- is there any possibility that you can get someone (or some process) to generate a new random database password for you? |
Thankyou @dbeatty10 and team. That's wonderful news. We will await that. Any idea about the timeline on when we can expect it? |
Hey @IAMLEGION98 we're going to try to do this now (in our current sprint), but if it proves trickier than expected it may take longer. Hopefully we can get this out ASAP - issue to backport opened here. |
Hey team @graciegoheen, @dbeatty10. Do you have an update regarding this issue? Thankyou! |
Hi - sorry for the delay! We're tracking the work here: |
Hey @IAMLEGION98 - we should have a new patch release out with this fix - can you check that this resolves your issue? |
Hey @graciegoheen. Yes, I tested out our setup upgrading to v1.4.8, and its working now. Thanks so much. Its right in time for our release too. This issue is good to close now. |
Resolved by #7630 (and associated backports). |
Is this a new bug in dbt-core?
Current Behavior
We are using dbt version 1.4.4 (Restricting to v1.4.4 due to Vertica DB adaptor limitation)
So we have our dbt running on a container, and the profiles.yaml is dynamically created by script at bootup time based on a Vertica DB which is also spun up using IaC (and has its db password rotated at compliant intervals)
Today we had an issue where the DBT failed to execute because of failure to load the profiles.yaml due to an issue with the connection password string that was randomly generated.
The connection password happened to be bN{%UgRk?U!yGe4}ZfQ.IPwD@
DBT fails with the below log:
The password does contain special characters and as per the DBT connection profile doc here i did have it wrapped in quotes. However this issue still persists.
A little bit of googling and I think it has to do with dbt/yaml rendering thinking its a jinja template because of the sequence of "{%" in the password string.
Expected Behavior
Is there anyway i can resolve this rendering issue? Is there a way to inject the connection string outside of the profiles.yaml file?
(Also it so happens i dont have control over the choice or sequence of special characters that go into the DB random password, so thats a dead end)
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
other (mention it in "Additional Context")
Additional Context
Database adaptor: Vertica https://github.com/vertica/dbt-vertica
The text was updated successfully, but these errors were encountered: