K8SPSMDB-1359 control the disabling of the authorization through mongo config#2144
K8SPSMDB-1359 control the disabling of the authorization through mongo config#2144
Conversation
|
|
There was a problem hiding this comment.
are sleeps in this file really necessary? if yes, please use sleep_with_log and add a descriptive message about what we are waiting for
There was a problem hiding this comment.
the test is passing locally without the sleeps, let's hope that with jenkins is alright!
There was a problem hiding this comment.
I don't see the changes required to run handleReplsetInit with auth disabled, weren't they necessary?
There was a problem hiding this comment.
Yeap noticed that both in main and in this branch, we are getting the exact same error message when trying to create the mongo client for triggering the init logic. The issue that I observed that we didnt run the init processe mainly happened because of some other changes that I tried. I confirmed that the userAdmin is created in mongo by using mongosh.
commit: 1145f7a |
CHANGE DESCRIPTION
Problem:
The operator does not respect the configuration of the authentication when we pass it as conf, since it is hardcoding the option on the container arguments.
We need to be able to configure the
--authoption through the following configuration.In order for the authorization to be disabled, TLS and more specifically
clusterAuthModeshould be disabled. This requires pausing and unpausing the cluster.Cause:
Short explanation of the root cause of the issue if applicable.
Solution:
properly handle the provided configuration so that the
--authoption is controlled. Also update the unit and e2e tests so that we can ensure that everything is working without problems.CHECKLIST
Jira
Needs Doc) and QA (Needs QA)?Tests
compare/*-oc.yml)?Config/Logging/Testability