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

grpc task file system vulnerability #1460

Open
Alan-Cha opened this issue May 10, 2023 · 0 comments
Open

grpc task file system vulnerability #1460

Alan-Cha opened this issue May 10, 2023 · 0 comments

Comments

@Alan-Cha
Copy link
Member

The grpc task fetches the protobuf + other assorted files and saves them in the pod file system (see here).

Writing to the file system is considered a vulnerability according to kube-linter.

The grpc task needs to be rewritten to store the fetched files in a different manner and readOnlyRootFilesystem needs to be set to true for both job and cronjob templates.


kube-linter error message:

iter8.yaml: (object: <no namespace>/release-name-1-job batch/v1, Kind=Job) container "iter8" does not have a read-only root file system (check: no-read-only-root-fs, remediation: Set readOnlyRootFilesystem to true in the container securityContext.)

iter8.yaml: (object: <no namespace>/release-name-1-job batch/v1, Kind=Job) container "iter8" is not set to runAsNonRoot (check: run-as-non-root, remediation: Set runAsUser to a non-zero number and runAsNonRoot to true in your pod or container securityContext. Refer to https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ for details.)
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

No branches or pull requests

1 participant