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

Container Running As Root @ /deploy/k8s/base/community/deployment.yaml #97

Open
AaronZhouYu opened this issue Feb 7, 2023 · 0 comments

Comments

@AaronZhouYu
Copy link
Owner

AaronZhouYu commented Feb 7, 2023

Checkmarx (IaC-Security): Container Running As Root
Checkmarx Project: AaronZhouYu/TotallySecureApp
Repository URL: https://github.com/AaronZhouYu/TotallySecureApp
Branch: main
Scan ID: d9fa6dd5-d23b-4436-b75a-41a016305f39


Containers should only run as non-root user. This limits the exploitability of security misconfigurations and restricts an attacker's possibilities in case of compromise

Locations:

Result #1:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
    File: /deploy/k8s/base/community/deployment.yaml[35,0]
    Expected value: metadata.name={{crapi-community}}.spec.template.spec.containers.name={{crapi-community}}.securityContext.runAsUser is higher than 0 and/or 'runAsNonRoot' is true
    Actual value: metadata.name={{crapi-community}}.spec.template.spec.containers.name={{crapi-community}}.securityContext.runAsUser is 0 and 'runAsNonRoot' is false
    Review result in Checkmarx One: Container Running As Root

Result #2:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
    File: /deploy/k8s/base/community/deployment.yaml[16,0]
    Expected value: metadata.name={{crapi-community}}.spec.template.spec.initContainers.name={{wait-for-postgres}}.securityContext.runAsUser is higher than 0 and/or 'runAsNonRoot' is true
    Actual value: metadata.name={{crapi-community}}.spec.template.spec.initContainers.name={{wait-for-postgres}}.securityContext.runAsUser is 0 and 'runAsNonRoot' is false
    Review result in Checkmarx One: Container Running As Root

Result #3:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
    File: /deploy/k8s/base/community/deployment.yaml[28,0]
    Expected value: metadata.name={{crapi-community}}.spec.template.spec.initContainers.name={{wait-for-java}}.securityContext.runAsUser is higher than 0 and/or 'runAsNonRoot' is true
    Actual value: metadata.name={{crapi-community}}.spec.template.spec.initContainers.name={{wait-for-java}}.securityContext.runAsUser is 0 and 'runAsNonRoot' is false
    Review result in Checkmarx One: Container Running As Root

Result #4:
Severity: MEDIUM
State: TO_VERIFY
Status: RECURRENT
    File: /deploy/k8s/base/community/deployment.yaml[22,0]
    Expected value: metadata.name={{crapi-community}}.spec.template.spec.initContainers.name={{wait-for-mongo}}.securityContext.runAsUser is higher than 0 and/or 'runAsNonRoot' is true
    Actual value: metadata.name={{crapi-community}}.spec.template.spec.initContainers.name={{wait-for-mongo}}.securityContext.runAsUser is 0 and 'runAsNonRoot' is false
    Review result in Checkmarx One: Container Running As Root

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant