Skip to content

Commit 2325314

Browse files
(DOCSP-10145): Disable auth with spec.security.authentication.enabled (#271)
* (DOCSP-10145): Disable auth with spec.security.authentication.enabled * Tech review * Copy review
1 parent 4f334e4 commit 2325314

File tree

3 files changed

+40
-10
lines changed

3 files changed

+40
-10
lines changed

source/includes/options-k8s-replica-set.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,13 @@ inherit:
324324
file: options-k8s-shared.yaml
325325
---
326326
program: k8sRsConf
327+
name: spec.security.authentication
328+
inherit:
329+
name: spec.security.authentication
330+
program: _shared
331+
file: options-k8s-shared.yaml
332+
---
333+
program: k8sRsConf
327334
name: spec.security.authentication.internalCluster
328335
inherit:
329336
name: spec.security.authentication.internalCluster

source/includes/options-k8s-shared.yaml

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -526,14 +526,29 @@ description: |
526526
Provide the name of the |k8s-secret| that store the |certauth|.
527527
---
528528
program: _shared
529+
name: spec.security.authentication
530+
type: collection
531+
directive: setting
532+
optional: true
533+
description: |
534+
Authentication specifications for your MongoDB deployment.
535+
---
536+
program: _shared
529537
name: spec.security.authentication.modes
530538
type: array
531539
directive: setting
532540
optional: true
533541
description: |
534-
Set to ``["X509"]`` to enable
535-
:ref:`X.509 internal cluster authentication
536-
<x509-internal-authentication>` for the |com| project.
542+
Specifies the authentication mechanism that your MongoDB deployment
543+
uses. Valid values are ``SCRAM`` and ``X509``.
544+
545+
To enable :ref:`X.509 internal cluster authentication
546+
<x509-internal-authentication>` for the |com| project, set this value
547+
to ``["X509"]`` and specify the following settings:
548+
549+
- :setting:`spec.security.authentication.internalCluster` ``: "X509"``
550+
- :setting:`spec.security.tls.enabled` ``: true``
551+
537552
---
538553
program: _shared
539554
name: spec.security.authentication.enabled
@@ -542,8 +557,11 @@ directive: setting
542557
optional: true
543558
default: "``false``"
544559
description: |
545-
Specifies whether x.509 authentication is enabled on the |com|
546-
project.
560+
Specifies whether authentication is enabled on the |com|
561+
project. Requires that you set an authentication mechanism in
562+
:setting:`spec.security.authentication.modes`.
563+
564+
To disable authentication in |com|, explicitly set to ``false``.
547565
---
548566
program: _shared
549567
name: spec.security.authentication.ignoreUnknownUsers
@@ -555,8 +573,7 @@ description: |
555573
Determines whether you can modify database users that were not
556574
configured through the |k8s-op-short| or the |com| UI.
557575
558-
Set to ``true`` if you need to manage database users directly through
559-
the |mongod| or |mongos|.
576+
To manage database users directly through the |mongod| or |mongos|, set to ``true``.
560577
---
561578
program: _shared
562579
name: spec.additionalMongodConfig.net.ssl.mode
@@ -576,9 +593,14 @@ type: string
576593
directive: setting
577594
optional: true
578595
description: |
579-
Set to ``X509`` to enable :ref:`X.509 internal cluster authentication
580-
<x509-internal-authentication>`. Requires |tls| on the resource by
581-
setting :setting:`spec.security.tls.enabled` to ``true``.
596+
Specifies whether :ref:`X.509 internal cluster authentication
597+
<x509-internal-authentication>` is enabled.
598+
599+
To enable X.509 internal cluster authentication, set to ``"X509"``.
600+
Requires that the following settings be specified:
601+
602+
- :setting:`spec.security.authentication.modes` ``: ["X509"]``
603+
- :setting:`spec.security.tls.enabled` ``: true``
582604
583605
.. important::
584606

source/reference/k8s-operator-specification.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ cluster resource types:
203203
.. include:: /includes/option/setting-k8sRsConf-spec.security.tls.enabled.rst
204204
.. include:: /includes/option/setting-k8sRsConf-spec.security.tls.ca.rst
205205
.. include:: /includes/option/setting-k8sRsConf-spec.additionalMongodConfig.net.ssl.mode.rst
206+
.. include:: /includes/option/setting-k8sRsConf-spec.security.authentication.rst
206207
.. include:: /includes/option/setting-k8sRsConf-spec.security.authentication.enabled.rst
207208
.. include:: /includes/option/setting-k8sRsConf-spec.security.authentication.modes.rst
208209
.. include:: /includes/option/setting-k8sRsConf-spec.security.authentication.internalCluster.rst

0 commit comments

Comments
 (0)