Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to turn off authentication #1619

Open
aqeelat opened this issue Aug 16, 2024 · 1 comment
Open

No way to turn off authentication #1619

aqeelat opened this issue Aug 16, 2024 · 1 comment
Labels

Comments

@aqeelat
Copy link

aqeelat commented Aug 16, 2024

Report

We cannot disable authentication even if we pass this as a conf

security:
  authorization: "disabled"

More about the problem

--auth is being passed, which overrides the mongod.conf

args := []string{
"--bind_ip_all",
"--auth",
"--dbpath=" + MongodContainerDataDir,
"--port=" + strconv.Itoa(int(api.DefaultMongodPort)),
"--replSet=" + replset.Name,
"--storageEngine=" + string(replset.Storage.Engine),
"--relaxPermChecks",
}

Steps to reproduce

Deploy with:

spec:
  ...
  replsets:
    - name: rs0
      size: 3
      configuration: |
        security:
          authorization: "disabled"

Versions

  1. Kubernetes: 1.28
  2. Operator: 1.16.1
  3. Database: 7.0.8-5

Anything else?

This would be fine if there'a a way to create users using the crd.

@aqeelat aqeelat added the bug label Aug 16, 2024
@spron-in
Copy link
Collaborator

spron-in commented Sep 3, 2024

@aqeelat thank you for raising this.
@egegunes do you know if it is possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants