Skip to content

Commit 910861a

Browse files
carriecwkjwilliams-mongo
authored andcommitted
(DOCSP-45643) custom resource updates for federated auth support
(DOCSP-45643) clarifies that federated auth crd is optional (DOCSP-45643) resolving build errors (DOCSP-45643) resolving merge conflicts (DOCSP-45643) finalizing tech review (DOCSP-45643) custom resource updates for federated auth support (#164) * (DOCSP-45643) custom resource updates for federated auth support * (DOCSP-45643) clarifies that federated auth crd is optional * (DOCSP-45643) resolving build errors * (DOCSP-45643) tech feedback (DOCSP-46114) fixes a formatting error (#173)
1 parent ac42fee commit 910861a

5 files changed

+65
-4
lines changed

source/ak8so-configure-federated-authentication.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ specify and update the :ref:`atlasfederatedauth-custom-resource`.
2929

3030
.. include:: /includes/fact-ak8so-federated-auth.rst
3131

32+
The :ref:`atlasfederatedauth-custom-resource` is **not** required to
33+
map database users to an |idp|, both any existing authentication |idp| or
34+
workload and workforce |idp|. You can use the :ref:`AtlasDatabaseUser <atlasdatabaseuser-custom-resource>`
35+
custom resource to manage database users, in which you specify the
36+
authentication method used for a given database user. The
37+
:ref:`AtlasDatabaseUser <atlasdatabaseuser-custom-resource>` custom
38+
resource must be configured in conjunction with :ref:`federated authentication
39+
<atlas-federated-authentication>` to associate users and roles in the
40+
|idp| with users and groups in MongoDB.
41+
42+
The :ref:`atlasfederatedauth-custom-resource`
43+
is optional to use any :ref:`federated authentication
44+
<atlas-federated-authentication>`, provided that you have configured it
45+
elsewhere in {+service+}.
46+
3247
Prerequisites
3348
-------------
3449

@@ -77,6 +92,9 @@ To learn more, see :ref:`atlasfederatedauth-parameters`.
7792
namespace: mongodb-atlas-system
7893
spec:
7994
enabled: true
95+
dataAccessIdentityProviders:
96+
- 32b6e34b3d91647abb20e7b8
97+
- 42d8v92k5a34184rnv93f0c1
8098
connectionSecretRef:
8199
name: my-org-secret
82100
namespace: mongodb-atlas-system

source/atlascustomrole-custom-resource.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ To create this custom role within a given project, you must either:
3636
- Updates an existing custom database role.
3737

3838
Examples
39-
--------
39+
---------
4040

4141
.. _atlascustomrole-example-basic:
4242

source/atlasdatabaseuser-custom-resource.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,9 @@ to customize your specifications.
368368
If the database user authenticates with :ref:`X.509 <ak8so-x509>`,
369369
this value must be ``\$external``.
370370

371+
If the database user authenticates with :manual:`OpenID Connect
372+
</core/security-oidc>`, this value must be ``$external``.
373+
371374
.. setting:: spec.externalProjectRef.id
372375

373376
*Type*: string
@@ -398,6 +401,21 @@ to customize your specifications.
398401
If the database user authenticates with :manual:`OpenID Connect
399402
</core/security-oidc>`, this value must be ``IDP_GROUP``.
400403

404+
This parameter accepts:
405+
406+
.. list-table::
407+
:stub-columns: 1
408+
:widths: 20 80
409+
410+
* - NONE
411+
- User that doesn't use |oidc| authentication.
412+
413+
* - USER
414+
- User that uses |service|-managed |oidc|.
415+
416+
You must specify ``$external`` for the
417+
:setting:`spec.databaseName` parameter.
418+
401419
.. setting:: spec.passwordSecretRef
402420

403421
*Type*: string

source/atlasfederatedauth-custom-resource.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Examples
3838
namespace: mongodb-atlas-system
3939
spec:
4040
enabled: true
41+
dataAccessIdentityProviders:
42+
- 32b6e34b3d91647abb20e7b8
43+
- 42d8v92k5a34184rnv93f0c1
4144
connectionSecretRef:
4245
name: my-org-secret
4346
namespace: mongodb-atlas-system
@@ -116,6 +119,28 @@ API documentation to customize your specifications.
116119
Flag that determines whether to enable federated
117120
authentication for the organization. Defaults to ``false``.
118121

122+
.. _atlasfederatedauth-dateaccessidentityproviders-id:
123+
124+
``spec.dataAccessIdentityProviders``
125+
*Type*: list
126+
127+
*Optional*
128+
129+
List of string values that identify the identity providers that
130+
|ak8so| uses to configure federated authentication
131+
for the organization.
132+
133+
.. note::
134+
135+
The ``dataAccessIdentityProviders`` parameter defines one or
136+
more identity providers that are used for data access. This
137+
means that they are used to access the actual MongoDB database
138+
instances, as configured in the :ref:`AtlasDatabaseUser <atlasdatabaseuser-custom-resource>`
139+
resource. This is different from the existing options in the
140+
:ref:`AtlasFederatedAuth <atlasfederatedauth-custom-resource>`
141+
resource which is used to configure using identity providers for
142+
the {+service+} UI.
143+
119144
.. _atlasfederatedauth-connectionSecretRef-name:
120145

121146
``spec.connectionSecretRef.name``

source/includes/steps-ak8so-helm-quick-start.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ content: |
2929
helm repo add mongodb https://mongodb.github.io/helm-charts
3030
helm install atlas-operator --namespace=atlas-operator --create-namespace mongodb/mongodb-atlas-operator
3131
32-
- If you want |ak8so| to watch a particular set of |k8s-nss|, set the
33-
``--watchNamespaces`` flag to a comma-separated list of |k8s-nss| to be watched.
34-
For example, run the following command to watch only the ``atlas-operator`` namespace:
32+
- If you want |ak8so| to watch a particular set of |k8s-nss|, set the ``--watchNamespaces``
33+
flag to a comma-separated list of |k8s-nss| to be watched.
34+
For example, run the following command to watch only the ``atlas-operator``namespace:
3535
3636
.. code-block:: sh
3737

0 commit comments

Comments
 (0)