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

feat(helm chart): add SecurityContext to pods and containers #917

Merged
merged 6 commits into from
Aug 15, 2022

Conversation

iainsproat
Copy link
Contributor

@iainsproat iainsproat commented Aug 11, 2022

Speckle pods should run with minimal privileges and capabilities to function.

To verify, run the following and follow the advisory guidance:

helm template my-speckle-server ./utils/helm/speckle-server \
 --values ../iain_speckle_dev-values.yaml \
 --namespace speckle | \
 docker run -i kubesec/kubesec:v2 scan /dev/stdin

Notes

References

https://kubernetes.io/docs/concepts/security/pod-security-standards/
https://cheatsheetseries.owasp.org/cheatsheets/Kubernetes_Security_Cheat_Sheet.html

Fixes #857
Fixes #919

Speckle pods should run with minimal privileges and capabilities to function.

Fix #857
@codecov
Copy link

codecov bot commented Aug 11, 2022

Codecov Report

Merging #917 (1498dce) into main (5535197) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #917   +/-   ##
=======================================
  Coverage   90.41%   90.41%           
=======================================
  Files          90       90           
  Lines        3433     3433           
  Branches       10       10           
=======================================
  Hits         3104     3104           
  Misses        328      328           
  Partials        1        1           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@iainsproat
Copy link
Contributor Author

Proof of work

Pods are running and healthy on minikube:
Screenshot 2022-08-12 at 16 55 15

Security context is applied (speckle-server as an example):
Screenshot 2022-08-12 at 16 56 50

@iainsproat iainsproat marked this pull request as ready for review August 15, 2022 09:53
@gjedlicska gjedlicska merged commit 65a00dc into main Aug 15, 2022
@gjedlicska gjedlicska deleted the 857-k8s-security-contexts branch August 24, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants