Dear Percona developers
I can’t enable audit log of mongos in mongodb-server deployed via helm chart
Version:
1.15.0
Additional Information:
Kubernetes 1.26
Steps to Reproduce:
1- helm install mongo-operator . -n mongo-ns
2- in valuse.yaml of mongo server helm chart:
2.1 sharding.enabled: true
2.2 uncomment sharding.mongos.auditLog block
3- helm install mongo-server . -n mongo-ns
There is no auditlog file among Pod files.
Even when I add path under sharding.mongos.auditLog block it gives the following warning:
W1210 08:04:18.562770  949624 warnings.go:70] unknown field "spec.sharding.mongos.auditLog.path"
I set the configuration for mongos in sharding.mongos.configuration as:
    configuration: |
      systemLog:
        verbosity: 1
        destination: file
        logAppend: true
        path: /var/log/mongo/mongod.log
      auditLog:
        destination: file
        format: BSON
        path: /data/db/auditlog.bson
        filter: '{}'
yet it doesn’t work.
I saw comments in other posts about how to persist auditLog via sidecar and why sometimes it doesn’t produce an auditLog file because of the processManagement block in mongodb.conf.
How can I add
setParameter: { auditAuthorizationSuccess: true }
to config files to get success auth too?
