# Manage Secret

**SECRETS**

Secrets are key-value pairs that can have a global value or environment specific value, based on your use case .They are stored securely in a vault and Ozone injects them into the pipeline runtime on-demand. The secrets are cleaned up once the pipeline run ends.

### **Steps to create a secret** <a href="#steps-to-create-a-variable" id="steps-to-create-a-variable"></a>

1. Once you log in to Ozone, select **Resources** on the left sidebar under **Setup**

<figure><img src="/files/Zdr0sVLz1Vv4KaaGOtjf" alt=""><figcaption></figcaption></figure>

2. After clicking on Resources a menu appears, click on Secrets to get the Secrets page

<figure><img src="/files/ZuKmWKDIbYnzorx8xrp3" alt=""><figcaption></figcaption></figure>

3. After this users can click on the **+ New Secret** button to open the modal window for variable creation

<figure><img src="/files/GoW1DMhnsPhOxBttkmkS" alt=""><figcaption></figcaption></figure>

4. This will open the modal window for **secret creation**

<figure><img src="/files/Feyx4250r7huck0hffXh" alt=""><figcaption></figcaption></figure>

5. Users can choose the scope of the secrets to either be global or environment-specific according to their use case\
   \
   a. **Global Secret**\
   \
   By default a global variable is set at initial, the user can set any value to the secret which will be accessible throughout all the Environments

<figure><img src="/files/I9gwZB8GpTim2czK5YyW" alt=""><figcaption></figcaption></figure>

&#x20;    **b. Local secret**\
\
To create a local variable, simply toggle the switch as shown below. Users can enter the value for the variables according to the Environments they desire<br>

<figure><img src="/files/sDKke4gXHNBRrI3NDSK0" alt=""><figcaption></figcaption></figure>

6. Once the user is done entering the values, they can click on the **Create** Button to create the variable
7. Once the Variables have Successfully been created it will be shown in the form of a tabular list, as shown below. In the table list, you can see what the type of secret is created

<figure><img src="/files/x21wugUifUMg9MgSrML6" alt=""><figcaption></figcaption></figure>

### **Steps to edit/view a secret** <a href="#steps-to-edit-view-a-variable" id="steps-to-edit-view-a-variable"></a>

1. Click on the pen icon highlighted below to Edit/view the secret details

<figure><img src="/files/zR3wp619JCqZF2cCskZx" alt=""><figcaption></figcaption></figure>

2. This will open the modal window with the existing details of the secrets. The user can edit or change the details accordingly\
   \
   The secret name can't be edited after it's created

<figure><img src="/files/fKVI5DPzQx3gev6O8USs" alt=""><figcaption></figcaption></figure>

3. Once the user has Edited the necessary details, Click on **Save**.
4. The user will be able to see the changes in the table as shown below

<figure><img src="/files/iUEpX8Se1gvvmyRU9vCr" alt=""><figcaption></figcaption></figure>


---

# 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://docs.ozone.one/ozone-end-user-guide/documentation/setup/manage-secret.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.
