> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/ai-hub/how-to-manage-secrets.md).

# How to Manage Secrets

**What are Secrets?**

Secrets are a secure way to store sensitive credentials such as API tokens or container registry passwords within the platform. This ensures your credentials are never exposed in plain text across your services.

## a. How to Create a Secret?

{% stepper %}
{% step %}

### [Log in](https://customer.acecloudhosting.com/app/login) to Your Account.

{% endstep %}

{% step %}

### From the left-hand menu, select **AI HUB** and then choose **Secrets**.

<figure><img src="https://3583118809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7qtmvknXddwSLcCYKFC%2Fuploads%2FLsAa0an447qWJA5Gz4iW%2Fimage.png?alt=media&amp;token=c3cd2fd6-68ee-4320-b8c4-0d19de90ae66" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create Secret

Click on **Create Secret**.

<figure><img src="https://3583118809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7qtmvknXddwSLcCYKFC%2Fuploads%2FwHEsHLci7gvPNaq0zP5y%2Fimage.png?alt=media&amp;token=9d92954b-a721-48bc-8108-a4a3f4cb10d9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## Enter Secret Details

Enter the secret name, choose the Secret Type, and add a description (optional).

<figure><img src="https://3583118809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7qtmvknXddwSLcCYKFC%2Fuploads%2FhnexyROPFhBYZDaMJIal%2Fimage.png?alt=media&amp;token=6777e473-58a9-44a7-b294-637634b23e29" alt=""><figcaption></figcaption></figure>

| **Secret Type**   | **Target** | **Steps**                                                                                                                                    |
| ----------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
| HuggingFace Token | Endpoints  | Enter your HuggingFace token. For more details refer to [User access tokens · Hugging Face](https://huggingface.co/docs/hub/security-tokens) |
| {% endstep %}     |            |                                                                                                                                              |

{% step %}

## Save the Secret

Click **Create** to save.

<figure><img src="https://3583118809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7qtmvknXddwSLcCYKFC%2Fuploads%2FGC3zdoSys3xDBRMXEeB2%2Fimage.png?alt=media&amp;token=dc23a2d3-7e0f-481e-88b5-8dba231c9943" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## b. How to Delete a Secret?

{% stepper %}
{% step %}

### Click the **Actions** menu next to the secret you want to delete and select **Delete Secret**.

<figure><img src="https://3583118809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7qtmvknXddwSLcCYKFC%2Fuploads%2FBAFFmYHxxXOBElNU9Hyx%2Fimage.png?alt=media&amp;token=2deb366d-51f6-4cab-80d3-45de6dce98ce" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Confirm Deletion

A confirmation dialog will appear. Click **Delete Secret** to confirm.

<figure><img src="https://3583118809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fx7qtmvknXddwSLcCYKFC%2Fuploads%2F64YoLVIRR23xGTWWRr6j%2Fimage.png?alt=media&amp;token=e6bc0fa8-113d-42fa-8228-6bc79c3c083e" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Deleting a secret is permanent and cannot be undone. Any endpoints or notebooks that use this secret will no longer be able to access it and may fail to function as expected.
{% endhint %}
