> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/data-science-lab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/data-science-lab/project/tabs-for-a-data-science-lab-project/tabs-for-pyspark-environment/notebook/notebook-page/notebook-operations/secrets.md).

# Secrets

Generate Environment Variables to save your confidential information from getting exposed.

You can generate Environment variables for the confidential information of your database using the Secret Management function. Thus, it saves your secret information from getting exposed to all the accessible users.

{% hint style="info" %}
*<mark style="color:green;">Pre-requisite</mark>: It is mandatory for the users to configure the* [***Secret Management*** ](https://docs.bdb.ai/administrative-settings/admin-panel-options/configurations/secret-management)*using the **Admin module** of the platform before attempting the Secret option inside the Data Science Lab module.*
{% endhint %}

## Accessing the Secrets tab under Notebook <a href="#accessing-the-secrets-tab-under-notebook" id="accessing-the-secrets-tab-under-notebook"></a>

Once the ***Secret Management*** has been configured from the Admin module it will have the Secret Key and related fields as displayed below:

<figure><img src="https://1025450693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Figrg2b2URgwMO5YmejDu%2Fuploads%2FaSnRHXLiazQWj1ukQD0e%2Fimage.png?alt=media&amp;token=aef83928-c5d7-47d0-b316-3f540013ed75" alt=""><figcaption></figcaption></figure>

* Navigate to a Notebook inside the Data Science Lab module.
* Open the ***Secrets*** tab from the right-side.
* The newly created ***Secret Key*** gets listed below.
* Click the drop-down icon next to the Secret Key name.
* The details of the selected Secret Key gets opened.​​

<figure><img src="https://1025450693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Figrg2b2URgwMO5YmejDu%2Fuploads%2F37JxzHKbOlhgzxBMP77r%2Fimage.png?alt=media&amp;token=d6b1e0e7-b5f5-4921-956d-b92c973dba87" alt=""><figcaption></figcaption></figure>

* Add a new Code cell.
* Select the ***Secret Keys*** by using the given check boxes.
* The selected details get entered in the code cell.

<figure><img src="https://1025450693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Figrg2b2URgwMO5YmejDu%2Fuploads%2FoYFqfT8nTgaz0newhGuf%2Fimage.png?alt=media&amp;token=a7ecf221-09d1-4d62-8d35-e41692023efc" alt=""><figcaption><p>The encrypted secret key details gets accessible inside a code cell.</p></figcaption></figure>

{% hint style="info" %}
*<mark style="color:green;">Please Note:</mark>*&#x20;

* *The following image indicates how we can verify whether the database is connected successfully or not by using the encrypted credentials:*

![](https://1025450693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Figrg2b2URgwMO5YmejDu%2Fuploads%2FGPMZWHvwX0qfBDW2okNM%2Fimage.png?alt=media\&token=0197b021-7697-40d2-8851-172c44977449) &#x20;

* *Refer the **Data Science Lab Quick Start Flow** page to get an overview of the **Data Science Lab** module in nutshell.* [***Click here***](https://docs.bdb.ai/data-science-lab/data-science-lab-quick-start-flow) *to get redirected to the quick start flow page.*
  {% endhint %}
