meilisearch / meilisearch-kubernetes

Meilisearch on Kubernetes Helm charts and manifests
https://www.meilisearch.com
MIT License
212 stars 59 forks source link

Run meilisearch as non-root user with readOnlyRootFilesystem #182

Closed legal90 closed 1 year ago

legal90 commented 1 year ago

Pull Request

Related issue

This PR was created in the continuation to our discussion here: https://github.com/meilisearch/meilisearch-kubernetes/pull/176#discussion_r1222197366

What does this PR do?

That PR changes the default behaviour of the chart so it runs meilisearch under a non-root user, following the principal of least permissions and improve the security posture:

Due to that I'm bumping the minor version of the chart to 0.2.0. Please let me know if you think we should update it differently.

Links

[1] https://kubernetes.io/docs/concepts/storage/volumes/#emptydir [2] https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods

PR checklist

Please check if your PR fulfills the following requirements:

alallema commented 1 year ago

Hi @legal90, Thanks a lot for this PR, it looks very nice and exciting. I'll try to have a look at it as soon as possible.

Due to that I'm bumping the minor version of the chart to 0.2.0.

You're absolutely right, as you can see, we haven't always used versioning as it should have been... That is perfect to go to the 0.2

alallema commented 1 year ago

bors merge

meili-bors[bot] commented 1 year ago

Build succeeded:

meili-bot commented 1 year ago

This message is sent automatically

Thank you very much for submitting your PR! Did you know that throughout the month of June we’re holding a rafle? If you share the link to your merged PR in our #giveaway Discord channel, you’ll automatically join a lottery for a chance at winning some Meiliswag. 🙂 Don’t hesitate to join us: https://discord.com/channels/1006923006964154428/1111273670657200198