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

[bitnami/postgressql] Allow to configure the uid of non-root postgres user #65827

Closed
brpaz opened this issue May 2, 2024 · 3 comments
Closed
Assignees
Labels
feature-request postgresql solved stale 15 days without activity triage Triage is needed

Comments

@brpaz
Copy link

brpaz commented May 2, 2024

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.

@github-actions github-actions bot added the triage Triage is needed label May 2, 2024
@brpaz brpaz changed the title Allow to configure the uid of non-root postgres user [bitnami/postgressq] Allow to configure the uid of non-root postgres user May 2, 2024
@brpaz brpaz changed the title [bitnami/postgressq] Allow to configure the uid of non-root postgres user [bitnami/postgressql] Allow to configure the uid of non-root postgres user May 2, 2024
@carrodher
Copy link
Member

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:

These references provide valuable insights into the best practices and considerations when working with non-root containers in Bitnami applications.

Copy link

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.

@github-actions github-actions bot added the stale 15 days without activity label May 19, 2024
Copy link

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.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request postgresql solved stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

4 participants