Skip to content
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

Passwords with special characters #35

Open
funkrusher opened this issue Nov 28, 2022 · 1 comment
Open

Passwords with special characters #35

funkrusher opened this issue Nov 28, 2022 · 1 comment

Comments

@funkrusher
Copy link

funkrusher commented Nov 28, 2022

would it be possible to provide the database-config as Environment-Variables to the database-sanitizer instead of an mysql:// url ?

Also, "mysqldumper" console command often also needs to be called in a specific way to accept passwords with special characers. In bash i often needed to call the mysqldump in way like this to work with special characters in passwords:

mysqldumper -p''"[password]"''

Passwords often/still have special characters (#, !, &, @, ...) and as soon as a password with such special characters is used the mysql:// url may not be able to be parsed anymore by urlparse python function in your code.

It would be great if the database-sanitizer would be able to accept all kind of passwords, also with any kind of special characters. Thx :)

@funkrusher
Copy link
Author

funkrusher commented Nov 28, 2022

i have changed it by forking and accept parameters like follow (works then for all kind of passwords with all kind of special characters):

  python app.py -c ./config.yml --scheme mysql --hostname $HOST --username $USER --password ''"$PASS"'' --port $PORT --path /$BASE > dump.sql

i could create a pull request,
but it seems the project is not active currently.

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

No branches or pull requests

1 participant