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

Unprivileged containers #855

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Conversation

mathieu-benoit
Copy link
Contributor

@mathieu-benoit mathieu-benoit commented Jun 21, 2022

Partially fixing #517 just for the apps, but not for the 2 databases yet.

Update the Kubernetes manifest of any Deployments with securityContext features.

Like we did with Online Boutique here: GoogleCloudPlatform/microservices-demo#887

Implementation:

  • All: securityContext
  • Apps: Mount pub key in /tmp instead of /root folder

Out of scope for now: The 2 databases are still running in privilege mode, there is more work and test to do in a future PR. We need to take inspiration of what is made here: https://github.com/bitnami/charts/blob/master/bitnami/postgresql/templates/primary/statefulset.yaml)

Tests:

  • CI / staging
  • My own GKE cluster

@mathieu-benoit mathieu-benoit requested a review from a team as a code owner June 21, 2022 13:53
@mathieu-benoit mathieu-benoit marked this pull request as draft June 21, 2022 13:53
@github-actions
Copy link

🚀 PR staged at http://34.66.157.132

@mathieu-benoit mathieu-benoit linked an issue Jun 21, 2022 that may be closed by this pull request
@mathieu-benoit mathieu-benoit marked this pull request as ready for review June 21, 2022 16:50
@mathieu-benoit
Copy link
Contributor Author

Ready for your review, thanks!

Proposing to merge this taking into account all the apps, for the 2 databases that will be done later in a future PR.

Copy link
Member

@bourgeoisor bourgeoisor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM!

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