2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. ydd1583939542169
|
|
|
|
.. _configure-kubernetes-for-oidc-token-validation-after-bootstrapping-the-system:
|
|
|
|
|
|
|
|
=============================================================================
|
|
|
|
Configure Kubernetes for OIDC Token Validation after Bootstrapping the System
|
|
|
|
=============================================================================
|
|
|
|
|
|
|
|
You must configure the Kubernetes cluster's **kube-apiserver** to use the
|
|
|
|
**oidc-auth-apps** |OIDC| identity provider for validation of tokens in
|
|
|
|
Kubernetes API requests, which use |OIDC| authentication.
|
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
|
|
|
As an alternative to performing this configuration at bootstrap time as
|
|
|
|
described in :ref:`Configure Kubernetes for OIDC Token Validation while
|
|
|
|
Bootstrapping the System
|
|
|
|
<configure-kubernetes-for-oidc-token-validation-while-bootstrapping-the-system>`,
|
|
|
|
you can do so at any time using service parameters.
|
|
|
|
|
|
|
|
.. rubric:: |proc|
|
|
|
|
|
|
|
|
|
|
|
|
.. _configure-kubernetes-for-oidc-token-validation-after-bootstrapping-the-system-steps-vlw-k2p-zkb:
|
|
|
|
|
|
|
|
#. Set the following service parameters using the :command:`system
|
2023-02-28 14:02:05 +00:00
|
|
|
service-parameter-add kubernetes kube_apiserver` command.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
~(keystone_admin)]$ system service-parameter-add kubernetes kube_apiserver oidc-client-id=stx-oidc-client-app
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
- oidc-client-id=<client>
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
The value of this parameter may vary for different group
|
|
|
|
configurations in your Windows Active Directory server.
|
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
- oidc-groups-claim=<groups>
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
- oidc-issuer-url=https://<oam-floating-ip>:<oidc-auth-apps-dex-service-NodePort>/dex
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
For IPv6 deployments, ensure that the IPv6 OAM floating address
|
2023-02-28 14:02:05 +00:00
|
|
|
is, https://\[<oam-floating-ip>\]:30556/dex (that is, in lower
|
|
|
|
case, and wrapped in square brackets).
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
- oidc-username-claim=<email>
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
The values of this parameter may vary for different user
|
|
|
|
configurations in your Windows Active Directory server.
|
|
|
|
|
|
|
|
|
|
|
|
The valid combinations of these service parameters are:
|
|
|
|
|
|
|
|
|
|
|
|
- none of the parameters
|
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
- oidc-issuer-url, oidc-client-id, and oidc-username-claim
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
- oidc-issuer-url, oidc-client-id, oidc-username-claim, and oidc-groups-claim
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
.. note::
|
|
|
|
Historical service parameters for |OIDC| with underscores are still
|
|
|
|
accepted: oidc_client_id, oidc_issuer_url, oidc_username_claim and
|
|
|
|
oidc_groups_claim. These are equivalent to: oidc-client-id, oidc-issuer-url,
|
|
|
|
oidc-username-claim and oidc-groups-claim.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Apply the service parameters.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ system service-parameter-apply kubernetes
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
For more information on |OIDC| Authentication for subclouds, see
|
|
|
|
:ref:`Centralized OIDC Authentication Setup for Distributed Cloud
|
|
|
|
<centralized-oidc-authentication-setup-for-distributed-cloud>`.
|
|
|
|
|
|
|
|
|