# Kubeconfig Cannot be Retrieved With Multi-Factor Authentication (MFA) Enabled

## Problem

* In Clarity UI, under 'Infrastructure' tab, the *kubeconfig* cannot be retrieved for a cluster when multi-factor authentication (MFA) is enabled.

<figure><img src="/files/1PmumQ3QPYzznfV1HZkH" alt="Screen_Shot_2018-10-16_at_1.19.27_PM.png"><figcaption><p>Screen_Shot_2018-10-16_at_1.19.27_PM.png</p></figcaption></figure>

<figure><img src="/files/qh92qJRul1wAEce3wADN" alt="Screen_Shot_2018-10-16_at_1.20.05_PM.png"><figcaption><p>Screen_Shot_2018-10-16_at_1.20.05_PM.png</p></figcaption></figure>

## Environment

* Platform9 Managed Kubernetes - All Versions
* Multi-Factor Authentication (MFA)
* Keystone

## Cause

No field is exposed in the UI to allow for the MFA code to be entered.

## Resolution

N/A - No fix is currently available for this issue. The current workarounds are listed below.

* MFA may be disabled for the user(s) who require the ability to download the *kubeconfig* from the UI, or a separate user will have to be created without MFA enabled for this action.
* The built-in CLI exposed within Clarity UI may be used to perform operations on the cluster in addition to retrieving the *kubeconfig*.

<figure><img src="/files/evN3FeRKxrXj7dcc9uRo" alt="Screen_Shot_2018-10-16_at_1.35.51_PM.png"><figcaption><p>Screen_Shot_2018-10-16_at_1.35.51_PM.png</p></figcaption></figure>

## Additional Information

For guidance on how to configure and disable MFA, please refer to [Set Up Multi-Factor Authentication](https://docs.platform9.com/support/setup-multi-factor-authentication-with-platform9/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmk/solutions/kubeconfig-cannot-be-retrieved-with-multi-factor-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
