data-diff icon indicating copy to clipboard operation
data-diff copied to clipboard

@ in redshift password

Open dlawin opened this issue 3 years ago • 5 comments

Describe the bug When my password includes an "@", I'm unable to use the data-diff CLI, as it causes the url to be parsed incorrectly.

I have only experienced this on redshift, but it likely is an issue for other providers

Make sure to include the following (minus sensitive information): data-diff redshift://user:@Password@redshift:5439/dev schema.table redshift://user:@Password@redshift:5439/dev schema.table -> failed: FATAL: password authentication failed for user "Password"

Quoting, escape sequences, and url escape codes do not resolve.

A .toml file and the --conf option should be a workaround, but I have not had a chance to test that yet: https://docs.datafold.com/os_diff/how_to_use/how_to_use_with_toml

dlawin avatar Mar 02 '23 00:03 dlawin

I have also experienced this issue. I tried passing in my password via an environment variable, URL encoding the password, escaping the @, and the toml file -- nothing worked.

jbonatakis avatar Mar 24 '23 02:03 jbonatakis

@jbonatakis

I have also experienced this issue. I tried passing in my password via an environment variable, URL encoding the password, escaping the @, and the toml file -- nothing worked.

I was able to workaround this with a toml file. Or are you running into this while trying to use the --dbt feature?

dlawin avatar Mar 24 '23 03:03 dlawin

Hmm no I'm definitely still having issues with the toml file. I'm not using the --dbt flag. The same user/password combo connects fine via DataGrip/dbeaver but not with data-diff. When I swap out for another user/password combo without the @ in the password, changing nothing else, I can connect. I'll try to provide some more specific info later.

jbonatakis avatar Mar 24 '23 18:03 jbonatakis

This issue has been marked as stale because it has been open for 60 days with no activity. If you would like the issue to remain open, please comment on the issue and it will be added to the triage queue. Otherwise, it will be closed in 7 days.

github-actions[bot] avatar May 24 '23 06:05 github-actions[bot]

Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment and it will be reopened for triage.

github-actions[bot] avatar May 31 '23 06:05 github-actions[bot]