-
Notifications
You must be signed in to change notification settings - Fork 203
security: Drop capabilities, set userid and enable seccomp #521
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,9 @@ spec: | |
prometheus.io/port: "8080" | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
# Required for AWS IAM Role bindings | ||
# https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html | ||
securityContext: | ||
# Required for AWS IAM Role bindings | ||
# https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts-technical-overview.html | ||
fsGroup: 1337 | ||
containers: | ||
- name: manager | ||
|
@@ -31,6 +31,11 @@ spec: | |
securityContext: | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: [ "ALL" ] | ||
seccompProfile: | ||
type: RuntimeDefault | ||
Comment on lines
+37
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This syntax requires Kubernetes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do support older versions, see: https://fluxcd.io/docs/installation/#prerequisites |
||
ports: | ||
- containerPort: 9090 | ||
name: http | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the comments here as they relate to
fsGroup
and notPodSecurityContext
.