[bitnami/postgressql] Allow to configure the uid of non-root postgres user
Name and Version
bitnami/postgressql:16
What is the problem this feature will solve?
Right now, the image has the non-root user with id 1001. This is a very low number (considering, Linux usually starts creating users at 1000). I have 3 users in my system, so 1001 id is taken.
What is the feature you are proposing to solve the problem?
It would be nice to be able to configure the uid. or at least change the default, to a higher number to reduce the chances of conflicts.
What alternatives have you considered?
The workaround was for me to hardcode the uids for the users in the system, and let 1001 free for Postgres, but this is not ideal.
Bitnami containers are designed to operate as non-root by default. Consequently, any files or directories used by the application should be owned by the root group, as the random user (1001 by default) is a member of this root group. To ensure proper permissions, you'll need to adjust the ownership of your local directory accordingly.
For more comprehensive information about non-root containers and their significance for security, you can explore the following resources:
- Why non-root containers are important for security
- Use Non-Root Containers
- Work With Non-Root Containers for Bitnami Applications
- Running non-root containers on Openshift
These references provide valuable insights into the best practices and considerations when working with non-root containers in Bitnami applications.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.