> ## Documentation Index
> Fetch the complete documentation index at: https://nocode-docs.zeroagent.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Secrets

Secrets are sensitive pieces of information that are vital for the secure functioning of your applications, such as API keys, database passwords, and access tokens. With Zeromagic, you can easily manage these secrets within your environment to ensure security and confidentiality.

## Create Secrets

1. To create a new secret, head to the **Secrets** section in the **project console**.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/sidebar-secrets.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=62736c8175fb2cf8b962a6774f967e14" alt="sidebar-secrets" width="233" height="208" data-path="assets/images/sidebar-secrets.png" />

2. Click `Create Secret` and will launch a form to define your secret details.
3. Identify the environment where you want to store the secret. You might need to select a specific environment from a list or menu.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/secret-env-name.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=35e2d8445293444e89e2a94b4d95cfcd" alt="secret-env-name" width="722" height="198" data-path="assets/images/secret-env-name.png" />

4. Choose a *"name"* that clearly identifies the purpose of the secret.
5. Input the *"value"* that the secret represents.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/secret-details.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=ff2070416a6ef617a6b2bcb88b5dedd7" alt="secret-details" width="722" height="189" data-path="assets/images/secret-details.png" />

6. Select the type of secret from the dropdown. You can check the available [**secret types here**](#available-secret-types).
7. Click on `Create Secret` and your secret will be created.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/secret-values.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=65cb1ffe84fdabb105d14922e2f26d58" alt="secret-values" width="722" height="159" data-path="assets/images/secret-values.png" />

## Delete Secret

To permanently delete a secret, click the **Delete** button next to the key you want to remove. This action cannot be undone.

<img src="https://mintcdn.com/zeromagiclabsprivatelimited/FNI2lo67ZZ_e31YS/assets/images/secret-key.png?fit=max&auto=format&n=FNI2lo67ZZ_e31YS&q=85&s=efd4914bd7159ed85d25767d77a8b687" alt="secret-key" width="1528" height="111" data-path="assets/images/secret-key.png" />

## Available Secret Types

1. **Password :** Passwords are used for user authentication purposes. They grant access to protected systems, databases, or applications.
2. **Token :** Tokens are short-lived pieces of data used for authentication or authorization. They often act as temporary credentials for accessing resources.
3. **API Key :** API keys are unique identifiers used to authenticate applications or users when interacting with APIs.
4. **Basic Auth :** Basic authentication is a simple authorization scheme that transmits credentials (username and password) directly within the request header.
