MCK 1.11.0 Release Notes
New Features
- MongoDBUser: Added optional
spec.connectionStringDatabaseto populate the database segment of the connection string URI path.spec.dbcontinues to set theauthSourceparameter. For example, withspec.dbofadminandspec.connectionStringDatabaseofmyapp, the generated secret ismongodb://user:pass@host/myapp?authSource=admin&.... - kubectl-mongodb plugin: Added a
--member-cluster-caflag tokubectl mongodb multicluster setupandkubectl mongodb multicluster recover, taking a<member-cluster-name>=<path-to-pem-file>pair and repeatable once per cluster. The supplied PEM bundle replaces thecertificate-authority-dataentry that the generated KubeConfig would otherwise take from that cluster's ServiceAccount token secret. Use it when TLS is terminated differently on the network path the Operator takes to reach a member cluster's API server. Both commands now warn when they are about to replace a CA that does not come from the cluster's ServiceAccount token secret, so a custom CA is never dropped silently.
Bug Fixes
- Escape the organization ID read from the project ConfigMap when building Ops Manager API request paths, preventing request forgery to arbitrary Ops Manager endpoints.
- MongoDBUser: Fixed a bug in which
connectionString.standardSrvsecrets for clusters without TLS did not includessl=false, causing SRV connection strings to assume TLS by default and fail to connect to non-TLS clusters. BothconnectionString.standardandconnectionString.standardSrvnow explicitly setssl=falsewhen TLS is disabled. - MongoDBUser: Fixed the generated connection string secret carrying a SCRAM
authMechanism(for exampleSCRAM-SHA-256) for users withspec.db: "$external"on deployments that enable SCRAM alongside external authentication. The secret now omitsauthMechanismso clients supply the appropriate external mechanism at connect time. - MongoDBUser: The connection string secret no longer contains an empty
passwordkey for users withspec.db: "$external". The key is omitted rather than written empty. - Changing
metadata.labelson aMongoDBOpsManagerresource no longer leaves it stuck inFailedstate. The labels at theMongoDBOpsManagerlevel are no longer propagating to thePersistentVolumeClaimsof the AppDB and Backup Daemon StatefulSets.