> ## Documentation Index
> Fetch the complete documentation index at: https://gcore-doc-1046.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Secrets Manager

Secrets Manager allows you to store encrypted values for use across our global edge network.

## Creating a secret

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **Secrets Manager**.

2\. In the top-right corner of the screen, click **Add secret**.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/secret-manager/add-secret.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=eca8fdcd90a1a05d3df6039a5f29a9df"
    alt="FastEdge Secrets
Manager"
    width="1060"
    height="314"
    data-path="images/docs/fastedge/secret-manager/add-secret.png"
  />
</Frame>

3\. Enter a name for your secret and provide a description if needed.

4\. Provide a slot number (default 0), and your secret value to be encrypted.

<Frame>
  <img
    src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/secret-manager/create-secret.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=cae6d5ce9b2d86263126ff35c3166f8e"
    alt="FastEdge Secrets
Creation"
    width="1059"
    height="459"
    data-path="images/docs/fastedge/secret-manager/create-secret.png"
  />
</Frame>

5\. Check all the settings. If everything is configured correctly, click **Save changes**.

<Warning>
  **Warning**

  Once you save the secret, you won’t be able to view the original unencrypted value. You will only be able to replace it.
</Warning>

We store all encrypted variables in a separate table in the database to protect your information from potential security breaches or unauthorized access.

## Editing a secret

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **Secrets Manager**.

2\. Find the secret you want to edit and click its name to open it.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/secret-manager/secret-list.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=ead8d5a1ccd3b6e5edb59159621e3e2e" alt="FastEdge Secrets List" width="1059" height="384" data-path="images/docs/fastedge/secret-manager/secret-list.png" />
</Frame>

3\. You can replace an encrypted secret by clicking the edit button.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/secret-manager/edit-secret.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=93c497a4dd6b8bc1b8efbe9e6716c9b1" alt="FastEdge Secrets Edit" width="1063" height="445" data-path="images/docs/fastedge/secret-manager/edit-secret.png" />
</Frame>

4\. Check all the settings. If everything is configured correctly, click **Save changes**.

## Deleting a secret

1\. In the [Gcore Customer Portal](https://portal.gcore.com/accounts/reports/dashboard), navigate to **FastEdge** and choose the relevant page: **Secrets Manager**.

2\. Find the secret you want to delete. click the three-dot icon next to the secret and select delete.

<Frame>
  <img src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/secret-manager/delete-list.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=4d8d49e29d304548c08d18692d4f27b0" alt="FastEdge Delete List" width="1066" height="389" data-path="images/docs/fastedge/secret-manager/delete-list.png" />
</Frame>

3\. Confirm deletion

<Info>
  **Info**

  You can only delete secrets **NOT** in use. If the Secret is assigned to an application it will prompt you to remove it.

  <Frame>
    <img
      src="https://mintcdn.com/gcore-doc-1046/NmzDUjLxfmvDFPXn/images/docs/fastedge/secret-manager/delete-detachment.png?fit=max&auto=format&n=NmzDUjLxfmvDFPXn&q=85&s=67831354c3c884d9d8316ec932b4947e"
      alt="FastEdge Delete
Detachment"
      width="482"
      height="245"
      data-path="images/docs/fastedge/secret-manager/delete-detachment.png"
    />
  </Frame>
</Info>

## Accessing Secrets in applications

For more information regarding Secrets usage in applications see the [JavaScript SDK](https://g-core.github.io/FastEdge-sdk-js/reference/fastedge/secret/get-secret/) and the [Rust SDK](https://docs.rs/fastedge/latest/fastedge/secret/index.html)

<Info>
  **Info**

  In order to use Secrets in an application it must first be linked to the application. See [Managing Applications - Secrets](/fastedge/manage-apps#secrets)
</Info>
