> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmk/solutions/kubeconfig-cannot-be-retrieved-with-multi-factor-authentication.md).

# 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="https://978681485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzyQCMA9ICq40g4F8hWJi%2Fuploads%2Fgit-blob-dca5c054fac5adcceb45cdf7283cda12cb14ba36%2F1623345362.png?alt=media" 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="https://978681485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzyQCMA9ICq40g4F8hWJi%2Fuploads%2Fgit-blob-72ea0b394ca7dc1f4e224d5c4c5012e50a5c4464%2F1623345364.png?alt=media" 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="https://978681485-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzyQCMA9ICq40g4F8hWJi%2Fuploads%2Fgit-blob-39a4f380e10c1dfdb16aa34f4eb68a1dd74db762%2F1623345366.png?alt=media" 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
