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

Checkov: CKV_K8S_35: "Prefer using secrets as files over secrets as environment variables" #98

Open
padmankosalaram opened this issue May 8, 2024 · 1 comment
Assignees

Comments

@padmankosalaram
Copy link
Contributor

Check: CKV_K8S_35: "Prefer using secrets as files over secrets as environment variables"

FAILED for resource: Job.mas-inst1-pipelines.mas-deploy-job
File: /chart/deploy-mas/mas-deploy/templates/01-deploy-mas.yaml:95-327

Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-33

@padmankosalaram padmankosalaram self-assigned this May 8, 2024
@padmankosalaram
Copy link
Contributor Author

This issue can not be fixed. Please find below the reason.

The helm chart accepts 2 secret variables ( entitlement_key & authorized_entitlement ) from terraform found in this line

entitlement_key: {{ .Values.mas_entitlement_key }}

These secrets are important for installing MAS. Also their values are already base64 encode in terraform and passed to helm chart. Helm chart will store them as k8s secret and further inject into POD

Hence it is important to have the secret as environment variables in this line

entitlement_key: {{ .Values.mas_entitlement_key }}

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