Encrypting sensitive data
You can encrypt any sonar property stored in the values.yaml file and some Helm parameters, such as jdbcPassword, that will be managed as sonar properties.
Prerequisites
Step 1: Create the encryption key
Step 2: Create a Kubernetes secret to store the encryption key
kubectl create secret generic --from-literal sonar-secret.txt=<encryptionKeyValue> <encryptionKeySecretName>kubectl create secret generic --from-literal sonar-secret.txt=EgycYJc4Ek4uj2pH39e3+bnnk15IrVu4dxtfjDyN1y8= myEncryptionKeySecretStep 3: Enable the encryption in the Helm chart
Step 4: Encrypt the sensitive data

Last updated
Was this helpful?

