As of today, there is no direct way to modify the Access configuration file (access.config.latest.yml), using our Helm Chart.
What we can do, is we can mount the access.config.patch.yml file, as a configMap, or as a secret.
Before continuing, we heavily recommend you refer to our Access YAML configuration documentation, to further understand it works.
First, we can start by creating our access.config.patch.yml file, and insert the configurations that we would like to add/modify. For example, to add the following settings:
security: user-lock-policy: attempts: 2 seconds-to-unlock: 3
Note: This won’t overwrite the access.config.latest file, but rather add or modify the values. If you’d like to completely overwrite it, use access.config.import.yml instead of access.config.patch.yml.
Now, create the ConfigMap which contains the file:
kubectl create configmap access-config -n your-namespace --from-file=”access.config.patch.yml”
Finally, add the following values to your values.yaml:
artifactory: customVolumes: | - name: access-config-volume configMap: name: access-config customVolumeMounts: | - name: access-config-volume mountPath: /tmp/access-config/ copyOnEveryStartup: - source: /tmp/access-config/* target: etc/access
Redeploy using the new values.yaml, and scale down the statefulset to 0 then to the number of nodes that you have.