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

Mounted volume group ownership fix #575

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

adyyoung
Copy link
Contributor

When attempting to host this image in K8S with a persistent volume, the permission on the postgres directory were not correct.

 Error: The cluster is owned by group id *** which does not exist

I'm overriding the default command to set the permissions correctly using

`mkdir -p /var/lib/postgresql/14/main && sudo chown postgres:postgres /var/lib/postgresql/14/main && bash /app/start.sh`

When attempting to host this image in K8S with a persistent volume, the permission on the postgres directory were not correct. 

```
 Error: The cluster is owned by group id *** which does not exist
```
Copy link

what-the-diff bot commented Aug 12, 2024

PR Summary

  • Change of File Ownership Strategy in init.sh
    Previously, the script init.sh was designed to change the file ownership only to 'postgres'. Now, after this modification, the file ownership will change to both 'postgres:postgres'. This change will make the system more secure by ensuring that both the 'postgres' user and group have appropriate access rights. This guards against any unauthorized modifications or invasions that could potentially compromise the database.

@leonardehrenfried leonardehrenfried merged commit 429cf9e into mediagis:master Aug 20, 2024
30 checks passed
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