Skip to content

Conversation

fuero
Copy link

@fuero fuero commented Oct 16, 2025

The default for the user directive in pgBouncer is "not present".
Using it creates problems running this container in Kubernetes/OpenShift with securityContexts given.
Making it optional allows using a UID that's not postgres or root.

Also, I filtered the entrypoint script through shellcheck, applied autofixes, and manually applied the POSIX compatibility recommendations.

@jflambert
Copy link
Collaborator

jflambert commented Oct 16, 2025

Thanks for the contribution @fuero

For my information, can you point out where user is optional under [pgbouncer]? In fact I seem unable to find documentation on that particular config item.

At this point my preferred approach would be to maintain postgres as a default value, unless disabled or overridden, out of concern for existing deployments.

@fuero
Copy link
Author

fuero commented Oct 16, 2025

In the link you mentioned under the text for the user directive it says Default: not set
Which to me says "optional"

@jflambert
Copy link
Collaborator

jflambert commented Oct 16, 2025

In the link you mentioned under the text for the user directive it says Default: not set Which to me says "optional"

Thanks, it's right at the top under "Generic settings"

I'm still worried about previously imposing postgres and suddenly switching to unset.

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

Successfully merging this pull request may close these issues.

2 participants