Open padmankosalaram opened 5 months ago
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 https://github.com/terraform-ibm-modules/terraform-ibm-mas/blob/6ed2eda03f34bd579c33b1318aa1b935877dbe50/chart/deploy-mas/templates/01-deploy-mas.yaml#L24
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
Check: CKV_K8S_35: "Prefer using secrets as files over secrets as environment variables"
Guide: https://docs.prismacloud.io/en/enterprise-edition/policy-reference/kubernetes-policies/kubernetes-policy-index/bc-k8s-33