2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. luo1591184217439
|
2024-01-23 20:23:44 -03:00
|
|
|
.. _deprovision-ldap-server-authentication:
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2024-01-23 20:23:44 -03:00
|
|
|
======================================
|
|
|
|
Deprovision LDAP Server Authentication
|
|
|
|
======================================
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2024-01-23 20:23:44 -03:00
|
|
|
You can remove Windows Active Directory or |LDAP| authentication from
|
|
|
|
|prod-long|.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. rubric:: |proc|
|
|
|
|
|
|
|
|
#. Remove the configuration of kube-apiserver to use oidc-auth-apps for
|
|
|
|
authentication.
|
|
|
|
|
|
|
|
|
|
|
|
#. Determine the UUIDs of parameters used in the kubernetes **kube-apiserver** group.
|
|
|
|
|
2022-11-11 17:38:21 -03:00
|
|
|
These include oidc-client-id, oidc-groups-claim,
|
|
|
|
oidc-issuer-url and oidc-username-claim.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ system service-parameter-list
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Delete each parameter.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ system service-parameter-delete <UUID>
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Apply the changes.
|
|
|
|
|
|
|
|
.. 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
|
|
|
|
|
|
|
|
|
|
|
#. Uninstall oidc-auth-apps.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ system application-remove oidc-auth-apps
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Clear the helm-override configuration.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ system helm-override-update oidc-auth-apps dex kube-system --reset-values
|
|
|
|
~(keystone_admin)]$ system helm-override-show oidc-auth-apps dex kube-system
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ system helm-override-update oidc-auth-apps oidc-client kube-system --reset-values
|
|
|
|
~(keystone_admin)]$ system helm-override-show oidc-auth-apps oidc-client kube-system
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2024-01-23 20:23:44 -03:00
|
|
|
~(keystone_admin)]$ system helm-override-update oidc-auth-apps secret-observer kube-system --reset
|
|
|
|
~(keystone_admin)]$ system helm-override-show oidc-auth-apps secret-observer kube-system
|
|
|
|
|
|
|
|
#. Remove secrets that contain certificate data. Depending on your
|
|
|
|
configuration, some secrets listed below may not exist.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2024-01-23 20:23:44 -03:00
|
|
|
~(keystone_admin)]$ kubectl delete secret dex-ca-cert -n kube-system
|
|
|
|
~(keystone_admin)]$ kubectl delete secret oidc-auth-apps-certificate -n kube-system
|
|
|
|
~(keystone_admin)]$ kubectl delete secret wad-ca-cert -n kube-system
|
|
|
|
~(keystone_admin)]$ kubectl delete secret local-ldap-ca-cert -n kube-system
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ kubectl delete secret local-dex.tls -n kube-system
|
|
|
|
~(keystone_admin)]$ kubectl delete secret dex-client-secret -n kube-system
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Remove any |RBAC| RoleBindings added for |OIDC| users and/or groups.
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
$ kubectl delete clusterrolebinding testuser-rolebinding
|
|
|
|
$ kubectl delete clusterrolebinding billingdeptgroup-rolebinding
|
|
|
|
|
|
|
|
|
|
|
|
|