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

Pgbouncer's entrypoint works incorrectly if the password contains * symbol #52

Closed
alexandersm opened this issue Aug 26, 2021 · 1 comment

Comments

@alexandersm
Copy link

alexandersm commented Aug 26, 2021

Steps to reproduce

  1. Define DATABASE_URL env. variable with the password containing * sign , for example
DATABASE_URL=postgres://user:1*[email protected]:5432/db

Resulting pgbouncer.ini file will contain wrong connection parameters.

This part of the entrypoint.sh script does not work as expected in this case

  # extract the host -- updated
  hostport=`echo $url | sed -e s,$userpass@,,g | cut -d/ -f1`
@alexandersm alexandersm changed the title Pgbouncer is incorrectly if the password contains * symbol Pgbouncer works incorrectly if the password contains * symbol Oct 29, 2021
@alexandersm alexandersm changed the title Pgbouncer works incorrectly if the password contains * symbol Pgbouncer's entrypoint works incorrectly if the password contains * symbol Oct 29, 2021
@jflambert
Copy link
Collaborator

#76

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

2 participants